-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrid.html
275 lines (274 loc) · 6.69 KB
/
grid.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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
html,
body {
border: 0;
margin: 0;
}
.grid-container {
display: grid;
grid-template-areas: "header header header"
"menu content panel"
"footer footer footer";
grid-template-columns: 10em 1fr 15em;
grid-template-rows: minmax(4em, auto) 1fr auto;
min-height: 100vh;
}
.grid-container > div {
box-sizing: border-box;
position: relative;
}
.grid-header {
background-color: #ccc;
grid-area: header;
padding: 1em;
text-align: center;
}
.grid-menu {
background-color: #c0c0c0;
grid-area: menu;
padding: 1em;
}
.grid-menu ul,
.grid-panel ul,
.grid-footer ul {
list-style: none;
margin: 0;
padding: 0;
}
.grid-content {
grid-area: content;
padding: 3em 3em 4em;
}
.grid-panel {
border-left: 1px solid rgba(0,0,0,0.1);
grid-area: panel;
padding: 4em 2em 4em 3em;
}
.grid-footer {
background-color: #ddd;
grid-area: footer;
padding: 4em 1em;
text-align: center;
}
.grid-footer li {
display: inline-block;
}
.grid-expand {
background-color: rgba(255,255,255,0.8);
box-shadow: 0 0 20px 0 rgba(0,0,0,0.3);
grid-column: content;
grid-row: header-start / footer-end;
z-index: 2;
}
.grid-banner {
align-self: start;
background-color: rgba(168,214,247,0.9);
grid-column: content-start / panel-end;
grid-row-start: content-start;
padding: 1em;
position: sticky;
top: 0;
z-index: 10;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
grid-auto-rows: minmax(10em,1fr);
grid-gap: 1em;
}
.grid > div {
border: 1px solid #000;
}
.grid-feature {
grid-column: span 2;
}
</style>
</head>
<body>
<div class="grid-container">
<header class="grid-header">
I am a Header
</header>
<nav class="grid-menu">
I am a Menu
<ul>
<li>
<a href="">
Menu item
</a>
</li>
<li>
<a href="">
Menu item
</a>
</li>
<li>
<a href="">
Menu item
</a>
</li>
</ul>
</nav>
<article class="grid-content">
<h1>
I am Content
</h1>
<div class="grid">
<div>
<h2>Big news today</h2>
Quick sync win-win-win or workflow ecosystem.
</div>
<div class="grid-feature">
<h2>We are really excited to announce that we will soon have an exciting
announcement!</h2>
We're ahead of the curve on that one we just need to put these last
issues to bed where do we stand on the latest client ask.
</div>
<div>
<h2>Currying favor performance review bench mark</h2>
No need to talk to users, just base it on the space calculator lift and
shift.
</div>
<div>
<h2>Level the playing field</h2>
Take five, punch the tree, and come back in here with a clear head. We
need to follow protocol obviously, rock Star/Ninja encourage & support
business growth yet curate.
</div>
<div>
<h2>Usability closing these latest prospects </h2>
Customer centric where do we stand on the latest client ask back of the
net 4-blocker fast track make it look like digital, like putting socks
on an octopus.
</div>
<div>
1
</div>
<div>
2
</div>
<div>
3
</div>
<div>
4
</div>
<div>
5
</div>
<div>
6
</div>
<div>
7
</div>
<div>
8
</div>
</div>
</article>
<aside class="grid-panel">
I am Info
<ul>
<li>
<a href="">
Panel link
</a>
</li>
<li>
<a href="">
Panel link
</a>
</li>
<li>
<a href="">
Panel link
</a>
</li>
</ul>
<p>
Call me Ishmael. Some years ago–never mind how long
precisely–having little or no money in my purse, and nothing
particular to interest me on shore, I thought I would sail about a
little and see the watery part of the world. It is a way I have of
driving off the spleen and regulating the circulation.
</p>
</aside>
<footer class="grid-footer">
I am a Footer
<ul>
<li>
<a href="">
Footer link
</a>
</li>
<li>
<a href="">
Footer link
</a>
</li>
</ul>
</footer>
<div class="grid-banner">
I am a banner
</div>
</div>
</body>
</html>
<!-- <div class="grid">
<div>
<h2>Big news today</h2>
Quick sync win-win-win or workflow ecosystem.
</div>
<div class="grid-feature">
<h2>We are really excited to announce that we will soon have an exciting
announcement!</h2>
We're ahead of the curve on that one we just need to put these last issues
to bed where do we stand on the latest client ask.
</div>
<div>
<h2>Currying favor performance review bench mark</h2>
No need to talk to users, just base it on the space calculator lift and
shift.
</div>
<div>
<h2>Level the playing field</h2>
Take five, punch the tree, and come back in here with a clear head. We need
to follow protocol obviously, rock Star/Ninja encourage & support
business growth yet curate.
</div>
<div>
<h2>Usability closing these latest prospects </h2>
Customer centric where do we stand on the latest client ask back of the net
4-blocker fast track make it look like digital, like putting socks on an
octopus.
</div>
<div>
1
</div>
<div>
2
</div>
<div>
3
</div>
<div>
4
</div>
<div>
5
</div>
<div>
6
</div>
<div>
7
</div>
<div>
8
</div>
</div> -->