Skip to content

Commit 54e93b5

Browse files
committed
Ch. 38 Challenge jonasschmedtmann#2
1 parent 7446675 commit 54e93b5

File tree

3 files changed

+135
-1
lines changed

3 files changed

+135
-1
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<title>Challenge #2</title>
6+
<link href="style.css" rel="stylesheet" />
7+
</head>
8+
<body>
9+
<article class="product">
10+
<h2>Converse Chuck Taylor All Star Low top</h2>
11+
<img
12+
src="https://i.ibb.co/Jr7Wh1d/challenges.jpg"
13+
alt="sneakers"
14+
height="250"
15+
width="250"
16+
/>
17+
<article class="product-pricing">
18+
<p><strong class="price">$65.00</strong></p>
19+
<p class="shipping">Free shipping</p>
20+
</article>
21+
22+
<article class="product-description">
23+
<p>
24+
Ready to dress up or down, these classic canvas Chucks are an everyday
25+
wardrobe staple.
26+
</p>
27+
<a href="#">More information &rightarrow;</a>
28+
</article>
29+
30+
<article class="product-details">
31+
<h3>Product details</h3>
32+
<ul>
33+
<li><p>Lightweight, durable cavas sneaker</p></li>
34+
<li><p>Lightly padded footbed for added comfort</p></li>
35+
<li><p>Iconic Chuck Taylor ankle patch.</p></li>
36+
</ul>
37+
</article>
38+
<button>Add to cart</button>
39+
</article>
40+
</body>
41+
</html>
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
body {
2+
font-family: sans-serif;
3+
line-height: 1.4;
4+
}
5+
6+
* {
7+
margin: 0;
8+
padding: 0;
9+
}
10+
11+
ul, ol {
12+
margin-left: 22px;
13+
}
14+
15+
p {
16+
margin-bottom: 10px;
17+
}
18+
19+
.product {
20+
border: 4px solid #000;
21+
width: 825px;
22+
margin: 50px auto;
23+
}
24+
25+
h2 {
26+
text-transform: uppercase;
27+
text-align: center;
28+
background-color: #d3d3d3;
29+
}
30+
31+
.price {
32+
font-size: 22px;
33+
}
34+
35+
.shipping {
36+
font-size: 12px;
37+
text-transform: uppercase;
38+
font-weight: bold;
39+
color: #777;
40+
}
41+
42+
a:link,
43+
a:visited,
44+
a:hover,
45+
a:active {
46+
color: #000;
47+
}
48+
49+
a:hover {
50+
text-decoration: none;
51+
}
52+
53+
ul li {
54+
list-style: square;
55+
}
56+
57+
button {
58+
background-color: #000;
59+
border: none;
60+
color: #fff;
61+
cursor: pointer;
62+
font-size: 20px;
63+
text-transform: uppercase;
64+
width: 100%;
65+
}
66+
67+
h2, button {
68+
padding: 10px;
69+
}
70+
71+
h3 {
72+
padding: 8px;
73+
}
74+
75+
button:hover {
76+
background-color: #fff;
77+
color: #000;
78+
border-top: 4px solid #000;
79+
}
80+
81+
.product-pricing, .product-description {
82+
margin-bottom: 20px;
83+
}

starter/03-CSS-Fundamentals/notes/index.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ <h2 class="chapter-heading">Ch. 32 CSS Theory #2: Inheritance and the Universal
175175
</p>
176176
</article>
177177

178+
<article class="chapter">
179+
<h2 class="chapter-heading">Ch. 33 Challenge #1</h2>
180+
<a href="../challenge/1/">Challenge #1</a>
181+
</article>
182+
178183
<article class="chapter">
179184
<h2 class="chapter-heading">Ch. 34 CSS Theory #3: The CSS Box Model</h2>
180185
<p class="chapter-sub-section">
@@ -254,7 +259,7 @@ <h2 class="chapter-heading">Ch. 37 Centering Our Page</h2>
254259
a container, then set that container's width to a constant value and set the
255260
left and right margin to auto:
256261
</p>
257-
262+
258263
<code>
259264
<pre>
260265
&lt;head&gt;
@@ -276,5 +281,10 @@ <h2 class="chapter-heading">Ch. 37 Centering Our Page</h2>
276281
There is no specific element that semantically represents this container, so <code>&lt;div&gt;</code> is fine
277282
</p>
278283
</article>
284+
285+
<article class="chapter">
286+
<h2 class="chapter-heading">Ch. 38 Challenge #2</h2>
287+
<a href="../challenge/2/">Challenge #2</a>
288+
</article>
279289
</body>
280290
</html>

0 commit comments

Comments
 (0)