-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjumbotron-layout.html
More file actions
158 lines (147 loc) · 4.61 KB
/
jumbotron-layout.html
File metadata and controls
158 lines (147 loc) · 4.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html>
<html lang="en">
<head>
<title>Nav Layout</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body, html {
margin: 0;
height: 100%;
background-color: #212529 !important;
display: flex;
flex-direction: column;
}
.wrapper {
height: 100%;
position: relative;
}
header {
height: 50px;
width: 100%;
position: sticky;
margin-top: 0;
color: #FFF;
background-color: #8F00B3;
display: flex;
align-items: center;
justify-content: space-between;
}
#main {
width: 95%;
margin-top: 50px;
margin-left: auto;
margin-right: auto;
/* This pushes the footer to the bottom without stretching the div background */
margin-bottom: auto;
padding: 2rem;
text-align: center;
color: #FFF;
background-color: #2B3035;
}
footer {
flex-shrink: 0;
/* Use min-height instead of 20% for better stability during resize */
min-height: 150px;
width: 100%;
background-color: #2B3035;
color: #FFF;
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
border-top: 1px solid #444;
/* Ensure no stray margins are pushing the footer up */
margin: 0;
}
.item {
flex: 1;
min-width: 150px;
margin: 10px;
}
.jumbotron {
width: 95%;
margin-left: auto;
margin-right: auto;
margin-top: 50px;
margin-bottom: 50px;
text-align: center;
color: #FFF;
padding: 2rem;
background-color: #2B3035;
}
.avatar {
background-color: #FFF;
border-radius: 25px;
color: #000;
width: 30px;
height: 30px;
text-align: center;
margin-right: 25px;
}
.searchContent {
display: flex;
align-items: center;
}
.skipLink {
position: absolute;
display: inline-block;
padding: .375rem .75rem;
line-height: 1;
font-size: 1.25rem;
background-color: black;
color: white;
/* Ensure the Y position is set to zero and any movement on the transform property */
transform: translateY(0);
transition: transform 250ms ease-in;
z-index: 1000;
}
.skipLink:not(:focus) {
transform: translateY(-2rem);
}
</style>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
</head>
<body>
<a href="#main" class="skipLink">Skip to main content</a>
<header>
<div class="searchContent">
<input style="width: 150px; height: 40px; margin-left: 20px; margin-right: 5px;" class="form-control" type="search" placeholder="Search" aria-label="Search">
<button style="height: 40px;" type="button" class="btn btn-light" type="Submit">Search</button>
</div>
<div class="avatar">RM</div>
</header>
<div id="main" class="jumbotron p-5 rounded-4" tabindex="-1">
<h1 class="display-4" style="font-weight: 500;">Hello, world!</h1>
<p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
<hr class="my-4">
<p>It uses utility classes for typography and spacing to space content out within the larger container.</p>
<a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a><br />
<a href="http://robertjmccaffery.com/examples.html">Back to Examples</a> | <a href="http://robertjmccaffery.com/">Home</a>
</div>
<footer>
<div class="item"><h2>Robert<br />McCaffery</h2></div>
<div class="item"><h3>About Us</h3>
<ul>
<li>Some Link 1</li>
<li>Some Link 2</li>
<li>Some Link 3</li>
</ul>
</div>
<div class="item"><h3>Resources</h3>
<ul>
<li>Some Link 1</li>
<li>Some Link 2</li>
<li>Some Link 3</li>
</ul>
</div>
<div class="item"><h3>Contact Us</h3>
<ul>
<li>Some Link 1</li>
<li>Some Link 2</li>
<li>Some Link 3</li>
</ul>
</div>
<div class="item">© 2026 Robert McCaffery</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
</body>
</html>