Skip to content

Commit faff578

Browse files
committed
refactor: use Tailwind classes for FAQ.tsx
1 parent 9ead535 commit faff578

File tree

3 files changed

+4
-31
lines changed

3 files changed

+4
-31
lines changed

apps/site/src/app/(home)/page.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ export default function Home() {
1111
) : (
1212
<>
1313
<Landing />
14-
{/* @ts-expect-error Async Server Component */}
15-
<FAQ type="single" />
14+
<FAQ/>
1615
</>
1716
);
1817
}

apps/site/src/app/(home)/sections/FAQ/FAQ.module.scss

-26
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,11 @@
1-
.faq {
2-
position: relative;
3-
display: flex;
4-
flex-direction: column;
5-
width: 80%;
6-
7-
padding-bottom: 1.875rem;
8-
}
9-
101
.container {
11-
padding-top: 6rem;
12-
padding-bottom: 6rem;
13-
display: flex;
14-
justify-content: center;
152
background-image: url("~@/assets/backgrounds/faq-background-mobile.svg");
16-
background-position: center top;
17-
background-size: cover;
18-
background-repeat: no-repeat;
193
}
204

215
.title {
22-
color: #fffce2;
23-
margin-top: 1.5rem;
24-
margin-bottom: 1.5rem;
25-
font-size: 2.25rem;
26-
text-align: center;
276
text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.75);
287
}
298

30-
.body {
31-
margin-left: 40px;
32-
margin-right: 10px;
33-
}
34-
359
@media (min-width: 640px) {
3610
.container {
3711
background-image: url("~@/assets/backgrounds/faq-background.svg");

apps/site/src/app/(home)/sections/FAQ/FAQ.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ const FAQ = async () => {
1313
}));
1414

1515
return (
16-
<section className={styles.container}>
17-
<div className={styles.faq}>
16+
<section className={`${styles.container} py-24 flex justify-center bg-no-repeat bg-cover bg-center bg-top`}>
17+
<div className="relative flex flex-col w-4/5 pb-7">
1818
<h2
19-
className={`font-display sm:!text-[4.5rem] ${styles.title}`}
19+
className={`${styles.title} my-6 font-display sm:!text-[4.5rem] text-[#fffce2] text-4xl text-center`}
2020
>
2121
FAQ
2222
</h2>

0 commit comments

Comments
 (0)