Skip to content

Commit 406752b

Browse files
accordion
1 parent c338012 commit 406752b

File tree

1 file changed

+106
-0
lines changed

1 file changed

+106
-0
lines changed
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Accordion Component</title>
8+
<link
9+
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap"
10+
rel="stylesheet"
11+
/>
12+
<style>
13+
/*
14+
SPACING SYSTEM (px)
15+
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
16+
17+
FONT SIZE SYSTEM (px)
18+
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
19+
*/
20+
21+
/* main color: #087f5b
22+
Gray 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+
}
38+
.accordion {
39+
width: 700px;
40+
margin: 100px auto;
41+
}
42+
.item {
43+
}
44+
.number,
45+
.text {
46+
font-size: 24px;
47+
font-weight: 500;
48+
color: #087f5b;
49+
}
50+
.icon {
51+
width: 24px;
52+
height: 24px;
53+
stroke: #087f5b;
54+
}
55+
.hidden-box {
56+
}
57+
.hidden-box p {
58+
line-height: 1.6;
59+
margin-bottom: 24px;
60+
}
61+
.hidden-box ul {
62+
color: #868e96;
63+
margin-left: 18px;
64+
display: flex;
65+
flex-direction: column;
66+
gap: 12px;
67+
}
68+
</style>
69+
</head>
70+
<body>
71+
<div class="accordion">
72+
<div class="item">
73+
<p class="number">02</p>
74+
<p class="text">How long do I have to return my chair?</p>
75+
<svg
76+
xmlns="http://www.w3.org/2000/svg"
77+
class="icon"
78+
fill="none"
79+
viewBox="0 0 24 24"
80+
stroke="currentColor"
81+
>
82+
<path
83+
stroke-linecap="round"
84+
stroke-linejoin="round"
85+
stroke-width="2"
86+
d="M19 9l-7 7-7-7"
87+
/>
88+
</svg>
89+
<div class="hidden-box">
90+
<p>
91+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Veritatis
92+
perferendis, reiciendis, cum perspiciatis voluptatibus repellat
93+
iusto, molestias blanditiis eligendi numquam commodi consequatur
94+
nisi iure tempore? Ipsam tempora dicta quam esse.
95+
</p>
96+
<ul>
97+
<li>Lorem ipsum dolor sit amet consectetur adipisicing elit.</li>
98+
<li>Velit molestiae quis nostrum quisquam dolor fugit ad nisi.</li>
99+
<li>Harum nemo nisi perferendis voluptas nostrum!</li>
100+
<li>Quisquam, recusandae quidem nisi optio commodi qui.</li>
101+
</ul>
102+
</div>
103+
</div>
104+
</div>
105+
</body>
106+
</html>

0 commit comments

Comments
 (0)