Skip to content

Commit 772834f

Browse files
committed
ch. 91: Building a Table Component - Part 1
1 parent fc533e8 commit 772834f

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

starter/06-Components/03-table.html

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Table Component</title>
8+
<link rel="preconnect" href="https://fonts.googleapis.com" />
9+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
10+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" rel="stylesheet" />
11+
<style>
12+
/*
13+
SPACING SYSTEM (px)
14+
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
15+
16+
FONT SIZE SYSTEM (px)
17+
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
18+
*/
19+
20+
/*
21+
MAIN COLOR: #087f5b
22+
GREY COLOR: #343a40
23+
*/
24+
25+
* {
26+
margin: 0;
27+
padding: 0;
28+
box-sizing: border-box;
29+
}
30+
31+
/* ------------------------ */
32+
/* GENERAL STYLES */
33+
/* ------------------------ */
34+
body {
35+
font-family: "Inter", sans-serif;
36+
color: #343a40;
37+
line-height: 1;
38+
}
39+
</style>
40+
</head>
41+
42+
<body>
43+
<table>
44+
<thead>
45+
<tr>
46+
<th>Chair</th>
47+
<th>The Laid Back</th>
48+
<th>The Worker Bee</th>
49+
<th>The Chair 4/2</th>
50+
</tr>
51+
</thead>
52+
<tbody>
53+
<tr>
54+
<th>Width</th>
55+
<td>80 cm</td>
56+
<td>60 cm</td>
57+
<td>220 cm</td>
58+
</tr>
59+
<tr>
60+
<th>Height</th>
61+
<td>100 cm</td>
62+
<td>110 cm</td>
63+
<td>90 cm</td>
64+
</tr>
65+
<tr>
66+
<th>Depth</th>
67+
<td>70 cm</td>
68+
<td>65 cm</td>
69+
<td>80 cm</td>
70+
</tr>
71+
<tr>
72+
<th>Weight</th>
73+
<td>16 kg</td>
74+
<td>22 kg</td>
75+
<td>80 kg</td>
76+
</tr>
77+
</tbody>
78+
</table>
79+
</body>
80+
81+
</html>

0 commit comments

Comments
 (0)