-
Notifications
You must be signed in to change notification settings - Fork 1
/
website-layout-structure.html
254 lines (206 loc) · 5.92 KB
/
website-layout-structure.html
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>My NRMA Website Layout Structure</title>
</head>
<style>
@import url(foundation-styles.css);
*
{
box-sizing: border-box;
margin: 0;
}
html, body
{
font-family: 'GT Eesti Text', sans-serif;
}
.content h1, .content h2, .content h3, .content h4, .content p
{
margin-block-end: 1.6ch;
}
.header
{
display: flex;
flex-direction: column;
}
.header > div
{
display: flex;
justify-content: space-between;
padding: 1rem;
border-bottom: 1px solid #C6C6D0;
}
.content-wrapper
{
display: flex;
justify-content: center;
align-items: flex-start;
padding-block: var(--my-size-6);
}
.content
{
width: min(1140px, calc(100% - var(--my-size-6)));
}
[class*="columns-"]
{
display: grid;
grid-template-columns: 1fr;
grid-gap: var(--my-size-2);
margin-bottom: var(--my-size-3);
}
div[class*="columns-"] > div
{
flex-basis: calc(25% - 1rem);
border: 1px solid #C6C6D0;
padding: var(--my-size-3);
background: white;
border-radius: var(--my-size-0-5);
}
.columns-2
{
grid-template-columns: repeat(2, 1fr);
}
.columns-3
{
grid-template-columns: repeat(3, 1fr);
}
.columns-4
{
grid-template-columns: repeat(4, 1fr);
}
.columns-5
{
grid-template-columns: repeat(5, 1fr);
}
.columns-6
{
grid-template-columns: repeat(6, 1fr);
}
.columns-33-66
{
grid-template-columns: 1fr 2fr;
}
.columns-66-33
{
grid-template-columns: 2fr 1fr;
}
/* Updated Breakpoint from 1024px = lg breakpoint */
@media screen and (max-width: 1140px){
.columns-4, .columns-5, .columns-6
{
grid-template-columns: repeat(3, 1fr);
}
}
/* Tailwind - 768 = md */
@media screen and (max-width: 768px){
.columns-2, .columns-3, .columns-4, .columns-5, .columns-5, .columns-33-66, .columns-66-33
{
grid-template-columns: repeat(2, 1fr);
}
}
/* Tailwind breakpoint sm - 640 = sm */
@media screen and (max-width: 640px){
.columns-2, .columns-3, .columns-4, .columns-5, .columns-6, .columns-33-66, .columns-66-33
{
grid-template-columns: repeat(1, 1fr);
}
}
.content-wrapper.example
{
background: #E5F8FF;
}
.footer
{
background: #313135;
color: white;
padding: var(--my-size-10);
}
.sticky
{
position: sticky;
top: 0px;
display: flex;
justify-content: center;
gap: var(--my-size-2);
flex-wrap: wrap;
width: min(1140px, 100%);
background: var(--my-white);
padding-block: var(--my-size-2);
z-index: 999;
border-bottom: 1px solid var(--my-border);
}
</style>
<body>
<div class="header">
<div>
<p>Logo</p>
<p>Search | Contact | Sign In</p>
</div>
<div class="menu-div">
<p>Menu Item | Menu Item | Menu Item</p>
<p>Business Link</p>
</div>
</div>
<div class="content-wrapper">
<div class="content">
<h2>Main Content Area</h2>
<p>Max Width = 1140px. Below 1140px</p>
<p>Responsive: Breakppint lg = 100% - 48px (size variable 6)</p>
<p><br></p>
<div class="sticky">
On This Page
<a href="#">Anchor Link</a><a href="#">Anchor Link Medium</a><a href="#">Small Link</a><a href="#">Anchor Link Much Longer</a><a href="#">Anchor Link</a><a href="#">Anchor Link Medium</a>
</div>
<p><br></p>
<h3>Columns</h3>
<p>Default column gap is 16px or spacing-1. Gap large is 32px or spcaing-2.</p>
<p><strong>2 Columns</strong></p>
<div class="columns-2">
<div>Column <br>Desktop 562px</p></div><div>Column <br>Desktop 562px</div>
</div>
<p><strong>3 Columns</strong></p>
<div class="columns-3">
<div>Column <br>Desktop 369px</div><div>Column <br>Desktop 369px</div><div>Column <br>Desktop 369px</div>
</div>
<p><strong>4 Columns</strong></p>
<div class="columns-4">
<div>Column <br>Desktop 273px</div><div>Column <br>Desktop 273px</div><div>Column <br>Desktop 273px</div><div>Column <br>Desktop 273px</div>
</div>
<p><strong>5 Columns</strong></p>
<div class="columns-5">
<div>Column <br>Desktop 215px</div><div>Column <br>Desktop 215px</div><div>Column <br>Desktop 215px</div><div>Column <br>Desktop 215px</div><div>Column <br>Desktop 215px</div>
</div>
<p><strong>6 Columns</strong></p>
<div class="columns-6">
<div>Column <br>Desktop 176px</div><div>Column <br>Desktop 176px</div><div>Column <br>Desktop 176px</div><div>Column <br>Desktop 176px</div><div>Column <br>Desktop 176px</div><div>Column <br>Desktop 176px</div>
</div>
<p><strong>33/66 Columns</strong></p>
<div class="columns-33-66">
<div>Column <br>Desktop 374px</div><div>Column <br>Desktop 749px</div>
</div>
<p><strong>66/33 Columns</strong></p>
<div class="columns-66-33">
<div>Column <br>Desktop 749px</div><div>Column <br>Desktop 374px</div>
</div>
</div>
</div>
<div class="content-wrapper example">
<div class="content">
<h3>Section Example</h3>
<p>Example content area.</p>
<p><strong>3 Columns</strong></p>
<div class="columns-3">
<div>Column <br>Desktop 369px</div><div>Column <br>Desktop 369px</div><div>Column <br>Desktop 369px</div>
</div>
</div>
</div>
<div class="footer">
<div class="content-wrapper">
<div class="content">
<p>Footer Content</p>
</div>
</div>
</div>
</body>
</html>