x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<div class="header-layout"> <header id="header"> <div>Header</div> </header> <main id="main"> <section class="mbe-auto flex flex-col" style="row-gap: 1rem"> <div class="rounded-lg bg-shade" style="min-block-size: 3rem"></div> <div class="rounded-lg bg-shade" style="min-block-size: 3rem"></div> <div class="rounded-lg bg-shade" style="min-block-size: 3rem"></div> <div class="rounded-lg bg-shade" style="min-block-size: 3rem"></div> <div class="rounded-lg bg-shade" style="min-block-size: 3rem"></div> </section> <footer> <div class="rounded-lg bg-shade" style="min-block-size: 3rem"></div> </footer> </main></div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<div class="header-layout"> <header id="header"> <div>Header</div> </header> <main id="main"> <section class="mbe-auto flex flex-col" style="row-gap: 1rem"> <% 5.times do %><div class="rounded-lg bg-shade" style="min-block-size: 3rem"></div><% end %> </section> <footer> <div class="rounded-lg bg-shade" style="min-block-size: 3rem"></div> </footer> </main></div>
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
.sidebar-layout { display: grid; grid-template-areas: "header header" "sidebar main"; grid-template-columns: var(--sidebar-width, 0) 1fr; grid-template-rows: auto 1fr; block-size: 100dvh; @media (width >= 48rem) { --sidebar-border-width: var(--border); --sidebar-padding: var(--size-2); --sidebar-width: 220px; } @media (width >= 64rem) { --sidebar-border-width: var(--border); --sidebar-padding: var(--size-2); --sidebar-width: 280px; }}.header-layout { display: grid; grid-template-areas: "header" "main"; grid-template-rows: auto 1fr; block-size: 100dvh;}.centered-layout { display: grid; place-items: center; block-size: 100dvh;}.container { inline-size: 100%; margin-inline: auto; max-inline-size: var(--container-width, 64rem);}#header { align-items: center; background-color: rgb(from var(--color-border-light) r g b / .5); border-block-end-width: var(--border); block-size: var(--size-16); display: flex; gap: var(--size-2); grid-area: header; padding-inline: var(--size-4);}#sidebar { background-color: rgb(from var(--color-border-light) r g b / .5); border-inline-end-width: var(--sidebar-border-width, 0); display: flex; flex-direction: column; grid-area: sidebar; gap: var(--size-2); overflow-x: hidden; padding: var(--sidebar-padding, 0);}#main { display: flex; flex-direction: column; gap: var(--size-4); grid-area: main; overflow: auto; padding: var(--size-4);}
Java Script is not required or multiple files are needed, check the notes.
No notes provided.