Skip to content

Commit 79638cf

Browse files
committed
table component
1 parent 35a7f93 commit 79638cf

File tree

2 files changed

+101
-2
lines changed

2 files changed

+101
-2
lines changed

starter/06-Components/02-carousel.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252
transform: scale(1.5);
5353
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
5454
}
55-
.testimonial {
56-
}
5755
.testimonial-test {
5856
font-size: 18px;
5957
font-weight: 500;

starter/06-Components/03-table.html

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

0 commit comments

Comments
 (0)