Skip to content

Commit 28c164b

Browse files
committed
img
1 parent da93f8a commit 28c164b

5 files changed

Lines changed: 28 additions & 10 deletions

File tree

practice/dinobg.png

3.33 MB
Loading

practice/top_chef.html

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width,initial-scale=1" />
66
<meta name="description" content="Dinosauria — a simple base layout for a dinosaur website" />
7-
<title>Dinosauria — Explore the Giants</title>
7+
<title>Ethan dumbo dino</title>
88
<style>
99

1010
@font-face {
@@ -26,10 +26,11 @@
2626

2727
"header header"
2828
"main sidebar"
29+
"exhibits sidebar"
2930
"footer footer";
3031
/* make the nav row small and let header size itself */
3132
grid-template-columns: 3fr 1fr;
32-
grid-template-rows: auto 1fr auto;
33+
grid-template-rows: auto 1fr auto auto;
3334
gap: 0;
3435
}
3536

@@ -45,10 +46,13 @@
4546
}
4647

4748
main {
48-
background-color: rgb(102, 238, 65);
49+
background-image: url(dinobg.png);
50+
background-size: cover;
51+
background-position: right;
52+
background-attachment: fixed;
4953
grid-area: main;
5054
padding: 1rem;
51-
height: 40vh;
55+
height: 60vh;
5256
display: flex;
5357
flex-direction: column;
5458
justify-content: center;
@@ -60,7 +64,7 @@
6064
background-color: #f8f8f8;
6165
padding: 1rem;
6266
border-top: 1px solid #eee;
63-
height: 20vh;
67+
height: 5vh;
6468
}
6569

6670
aside {
@@ -107,13 +111,14 @@
107111
}
108112

109113

110-
@media (max-width: 700px) {
114+
@media (max-width: 70000px) {
111115
body {
112116
grid-template-columns: 1fr;
113117
grid-template-areas:
114118
"header"
115119
"main"
116120
"sidebar"
121+
"exhibits"
117122
"footer";
118123
}
119124
aside {
@@ -122,6 +127,13 @@
122127
}
123128
}
124129

130+
exhibits{
131+
align-content: center;
132+
background-color: #46d158;
133+
height: auto;
134+
padding: 1rem;
135+
}
136+
125137
</style>
126138
</head>
127139
<body>
@@ -157,7 +169,7 @@ <h3>Explore</h3>
157169
<div style="margin-top:0.75rem;">
158170
<h3 style="font-size:1rem; margin:0 0 0.5rem 0; text-align:center;">Featured Dino</h3>
159171
<figure style="margin:0;">
160-
<img src="trex-thumb.png" alt="T-Rex" style="width:100%;border-radius:6px;display:block;">
172+
<img src="trex.png" alt="T-Rex" style="width:100%;border-radius:6px;display:block;">
161173
<figcaption style="font-size:0.85rem;text-align:center;padding-top:0.5rem;color:#0b3b11;">Tyrannosaurus rex — the king</figcaption>
162174
</figure>
163175
</div>
@@ -169,11 +181,17 @@ <h3 style="font-size:1rem;margin:0 0 0.25rem 0;text-align:center;">Visit</h3>
169181
</div>
170182
</aside>
171183
<main>
172-
<h2 style="font-size: 2.5rem;">Welcome to Ethan's Dumb Dinos Museum</h2>
173-
<p>Discover the fascinating world of dinosaurs with us. From the mighty T-Rex to the gentle Brachiosaurus, explore their history, habitats, and more!</p>
184+
<h2 style="font-size: 5vw;">Welcome to Ethan's Dumb Dinos Museum</h2>
185+
<p style="font-size: 3vw; text-align: center;">Discover the fascinating world of dinosaurs with us. From the mighty T-Rex to the gentle Brachiosaurus, explore their history, habitats, and more!</p>
174186
</main>
187+
<exhibits>
188+
<h2 style="font-size: 2rem; text-align: center; margin: 1rem 0;">Exhibits</h2>
189+
<p style="text-align: center;">Explore our amazing dinosaur exhibits, featuring life-sized models, interactive displays, and more!</p>
190+
<img src="vcrap.png" alt="Velociraptor" style="align-self:center; width: 100%;border-radius:6px;display:block;">
191+
<h2 style="font-size: clamp(2rem, 4vw, 6rem); text-align: center;">Visit our VELOCIRAPTOR!</h2>
192+
</exhibits>
175193
<footer>
176-
194+
<p style="text-align: center; font-size: 0.9rem; color: #666;">&copy; 2024 Ethan's Dumb Dinos Museum. All rights reserved.</p>
177195
</footer>
178196
</body>
179197
</html>

practice/trex.png

1.13 MB
Loading

practice/vcr.png

387 KB
Loading

practice/vcrap.png

1.3 MB
Loading

0 commit comments

Comments
 (0)