|
4 | 4 | <script type="text/javascript" src="html-energy-webring/onionring/widget.js" defer></script> |
5 | 5 | </svelte:head> |
6 | 6 |
|
7 | | -<aside class="border-b-4 border-black bg-lime-400 p-2 text-black"> |
| 7 | +<aside class="aside-banner"> |
8 | 8 | <p> |
9 | 9 | This page was made during <a |
10 | 10 | href="https://www.gabriel-export.earth/html-day-austin-2025" |
|
13 | 13 | </p> |
14 | 14 | </aside> |
15 | 15 | <main> |
16 | | - <div |
17 | | - style="width: fit-content; background: lightgray; border-radius: 20px; padding: 2rem; border: 5px solid black;" |
18 | | - > |
| 16 | + <div class="main-content-box"> |
19 | 17 | <h1>What is a Pattern?</h1> |
20 | 18 | <p>There's actually a lot of different kinds out there...</p> |
21 | 19 |
|
22 | 20 | <h2>Textiles, Fabrics, and Tiles</h2> |
23 | | - <div style="display: flex; gap: 4rem;"> |
| 21 | + <div class="flex-container"> |
24 | 22 | <div> |
25 | 23 | <p>Maybe you think of plaid?</p> |
26 | 24 | <img |
27 | | - src="patterns/plaid.gif" |
28 | | - style="width: 10rem;" |
| 25 | + src="/patterns/plaid.gif" |
| 26 | + class="small-image" |
29 | 27 | alt="a dog in a picnic basekt with a plaid blanket" |
30 | 28 | /> |
31 | 29 | </div> |
32 | 30 |
|
33 | 31 | <div> |
34 | 32 | <p>or houndstooth?</p> |
35 | | - <img src="patterns/houndstooth.gif" style="width: 10rem;" alt="houndstooth pattern" /> |
| 33 | + <img src="/patterns/houndstooth.gif" class="small-image" alt="houndstooth pattern" /> |
36 | 34 | </div> |
37 | 35 |
|
38 | 36 | <div> |
39 | 37 | <p>or some bathroom tiles?</p> |
40 | | - <img src="patterns/tiles.jpg" style="width: 10rem;" alt="houndstooth pattern" /> |
| 38 | + <img src="/patterns/tiles.jpg" class="small-image" alt="houndstooth pattern" /> |
41 | 39 | </div> |
42 | 40 | </div> |
43 | 41 |
|
44 | 42 | <h2>Nature</h2> |
45 | | - <p style="padding-bottom: 1rem;">Maybe you might think of patterns in nature.</p> |
46 | | - <div style="display: flex; gap: 4rem;"> |
| 43 | + <p class="nature-intro">Maybe you might think of patterns in nature.</p> |
| 44 | + <div class="flex-container"> |
47 | 45 | <div> |
48 | 46 | <p>Like the ripples in dunes...</p> |
49 | 47 | <img |
50 | | - src="patterns/dunes.jpg" |
| 48 | + src="/patterns/dunes.jpg" |
51 | 49 | alt="sand dunes with ripples in the sand" |
52 | | - style="width: 20rem;" |
| 50 | + class="large-image" |
53 | 51 | /> |
54 | 52 | </div> |
55 | 53 |
|
56 | 54 | <div> |
57 | 55 | <p>or the waves of the sea</p> |
58 | | - <img |
59 | | - src="patterns/waves.gif" |
60 | | - alt="a gif of waves in the sea" |
61 | | - style="width: 20rem; height: 3rem;" |
62 | | - /> |
| 56 | + <img src="/patterns/waves.gif" alt="a gif of waves in the sea" class="wave-image" /> |
63 | 57 | <p> |
64 | 58 | or the spirals in shells <img |
65 | | - src="patterns/shell.webp" |
| 59 | + src="/patterns/shell.webp" |
66 | 60 | alt="a nautilus shell with the golden ratio spiral" |
67 | | - style="width: 20rem;" |
| 61 | + class="large-image" |
68 | 62 | /> |
69 | 63 | </p> |
70 | 64 | </div> |
71 | 65 |
|
72 | 66 | <div> |
73 | 67 | <p> |
74 | 68 | or how lightning, tree roots, tree branches, and human veins all look the same. <span |
75 | | - style="background-color: yellow;">wtf is up with that</span |
| 69 | + class="highlight-text">wtf is up with that</span |
76 | 70 | > |
77 | 71 | </p> |
78 | 72 | <img |
79 | | - src="patterns/fractals.jpg" |
| 73 | + src="/patterns/fractals.jpg" |
80 | 74 | alt="examples of fractals in nature looking the same like tree roots, tree branches, rivers, lightning, and leaf veins" |
81 | | - style="width: 20rem;" |
| 75 | + class="large-image" |
82 | 76 | /> |
83 | 77 | </div> |
84 | 78 | </div> |
|
89 | 83 | <style> |
90 | 84 | main { |
91 | 85 | padding: 3rem; |
92 | | - background-image: url('patterns/bg.gif'); |
| 86 | + background-image: url('/patterns/bg.gif'); |
93 | 87 | } |
94 | 88 |
|
95 | 89 | h1 { |
|
107 | 101 | margin: 0 auto; |
108 | 102 | margin-top: 2rem; |
109 | 103 | } |
| 104 | +
|
| 105 | + .aside-banner { |
| 106 | + border-bottom-width: 4px; |
| 107 | + border-bottom-color: black; |
| 108 | + background-color: #a3e635; /* lime-400 equivalent */ |
| 109 | + padding: 0.5rem; /* p-2 equivalent */ |
| 110 | + color: black; |
| 111 | + } |
| 112 | +
|
| 113 | + .main-content-box { |
| 114 | + width: fit-content; |
| 115 | + background: lightgray; |
| 116 | + border-radius: 20px; |
| 117 | + padding: 2rem; |
| 118 | + border: 5px solid black; |
| 119 | + } |
| 120 | +
|
| 121 | + .flex-container { |
| 122 | + display: flex; |
| 123 | + gap: 4rem; |
| 124 | + } |
| 125 | +
|
| 126 | + .small-image { |
| 127 | + width: 10rem; |
| 128 | + } |
| 129 | +
|
| 130 | + .large-image { |
| 131 | + width: 20rem; |
| 132 | + } |
| 133 | +
|
| 134 | + .wave-image { |
| 135 | + width: 20rem; |
| 136 | + height: 3rem; |
| 137 | + } |
| 138 | +
|
| 139 | + .nature-intro { |
| 140 | + padding-bottom: 1rem; |
| 141 | + } |
| 142 | +
|
| 143 | + .highlight-text { |
| 144 | + background-color: yellow; |
| 145 | + } |
110 | 146 | </style> |
0 commit comments