-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
238 lines (228 loc) · 8.44 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- displays site properly based on user's device -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@400;700&display=swap"
rel="stylesheet"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon-32x32.png"
/>
<title>Frontend Mentor | FAQ Accordion Card</title>
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
veryDarkBlue: "hsl(238, 29%, 16%)",
softRed: "hsl(14, 88%, 65%)",
veryDarkGrayishBlue: "hsl(247, 12%, 33%)",
darkGrayishBlue: "hsl(240, 6%, 50%)",
lightGrayishBlue: "hsl(240, 5%, 91%)",
},
fontFamily: {
sans: ["Kumbh Sans", "sans-serif"],
},
},
},
};
</script>
<style type="text/tailwindcss">
.attribution {
font-family: "lexend Deca", "sans-serif";
font-size: 11px;
text-align: center;
}
.attribution a {
color: hsl(277, 64%, 61%);
}
.filter-purple {
filter: brightness(61%) sepia(64%) hue-rotate(227deg) saturate(650%)
contrast(85%);
}
details > summary {
list-style: none;
}
.background {
background-image: linear-gradient(
to bottom,
hsl(273, 75%, 66%),
hsl(240, 73%, 65%)
);
}
@media only screen and (min-width: 1024px) {
.illustration {
background-image: url("./images/illustration-woman-online-desktop.svg"),
url("./images/bg-pattern-desktop.svg");
background-position: -17% 50%, left -571px bottom -145px;
}
}
</style>
</head>
<body>
<div class="background flex min-h-screen items-center justify-center">
<div
class="illustration group relative my-44 mx-3 mb-32 flex w-[923px] max-w-fit flex-col items-center justify-center space-y-9 rounded-3xl bg-white bg-[url('./images/bg-pattern-mobile.svg')] bg-top bg-no-repeat px-8 py-20 pt-20 shadow-lg lg:my-0 lg:mb-0 lg:h-[512px] lg:max-w-full lg:flex-row lg:space-y-0 lg:pt-20"
>
<img
src="./images/illustration-woman-online-mobile.svg"
class="absolute -top-36 w-80 scale-75 lg:hidden"
alt="mobile"
/>
<img
src="./images/illustration-box-desktop.svg"
class="absolute top-48 -left-[94px] hidden origin-center duration-300 group-hover:-left-32 lg:block"
alt="box"
/>
<div
class="hidden bg-[url('./images/bg-pattern-desktop.svg')] bg-contain lg:block lg:w-1/2"
></div>
<div
class="flex flex-col items-center lg:items-start justify-center space-y-5 lg:w-1/2 lg:px-9"
>
<h1 class="text-3xl font-bold uppercase">Faq</h1>
<div
class="text-veryDarkGrayishBlue flex w-[280px] flex-col items-stretch lg:w-[90%]"
>
<!-- ITME 1 -->
<details
id="1"
class="border-lightGrayishBlue group flex flex-col justify-center border-b py-3 duration-300"
>
<summary
class="cursor-pointer bg-inherit group-open:font-bold group-open:text-veryDarkBlue"
>
<div class="flex items-center justify-between">
<h2 class="text-sm">How many team member can i invite?</h2>
<img
src="./images/icon-arrow-down.svg"
class="group-open:rotate-180"
/>
</div>
</summary>
<div
class="max-w-[90%] py-3 text-start text-xs text-darkGrayishBlue"
>
You can invite up to 2 additional users on the Free plan. There
is no limit on team members for the Premium plan.
</div>
</details>
<!-- ITME 2 -->
<details
id="2"
class="border-lightGrayishBlue group flex flex-col justify-center border-b py-3 duration-300"
open
>
<summary
class="cursor-pointer bg-inherit group-open:font-bold group-open:text-veryDarkBlue"
>
<div class="flex items-center justify-between">
<h2 class="text-sm">What is the maximum file upload size?</h2>
<img
src="./images/icon-arrow-down.svg"
class="group-open:rotate-180"
/>
</div>
</summary>
<div
class="max-w-[90%] py-3 text-start text-xs text-darkGrayishBlue"
>
No more than 2GB. All files in your account must fit your
allotted storage space.
</div>
</details>
<!-- ITME 3 -->
<details
class="border-lightGrayishBlue group flex flex-col justify-center border-b py-3 duration-300"
id="3"
>
<summary
class="cursor-pointer bg-inherit group-open:font-bold group-open:text-veryDarkBlue"
>
<div class="flex items-center justify-between">
<h2 class="text-sm">How do I reset my password?</h2>
<img
src="./images/icon-arrow-down.svg"
class="group-open:rotate-180"
/>
</div>
</summary>
<div
class="max-w-[90%] py-3 text-start text-xs text-darkGrayishBlue"
>
Click “Forgot password” from the login page or “Change password”
from your profile page. A reset link will be emailed to you.
</div>
</details>
<!-- ITME 4 -->
<details
class="border-lightGrayishBlue group flex flex-col justify-center border-b py-3 duration-300"
id="4"
>
<summary
class="cursor-pointer bg-inherit group-open:font-bold group-open:text-veryDarkBlue"
>
<div class="flex items-center justify-between">
<h2 class="text-sm">Can I cancel my subscription?</h2>
<img
src="./images/icon-arrow-down.svg"
class="group-open:rotate-180"
/>
</div>
</summary>
<div
class="max-w-[90%] py-3 text-start text-xs text-darkGrayishBlue"
>
Yes! Send us a message and we’ll process your request no
questions asked.
</div>
</details>
<!-- ITME 5 -->
<details
class="border-lightGrayishBlue group flex flex-col justify-center border-b py-3 duration-300"
id="5"
>
<summary
class="cursor-pointer bg-inherit group-open:font-bold group-open:text-veryDarkBlue"
>
<div class="flex items-center justify-between">
<h2 class="text-sm">Do you provide additional support?</h2>
<img
src="./images/icon-arrow-down.svg"
class="group-open:rotate-180"
/>
</div>
</summary>
<div
class="max-w-[90%] py-3 text-start text-xs text-darkGrayishBlue"
>
Chat and email support is available 24/7. Phone lines are open
during normal business hours.
</div>
</details>
</div>
</div>
</div>
</div>
<script>
const details = document.querySelectorAll("details");
details.forEach((detail) =>
detail.addEventListener("click", () =>
details.forEach(
(d) => d.id !== detail.id && d.removeAttribute("open")
)
)
);
</script>
</body>
</html>