Skip to content

Commit 3cbafc1

Browse files
fix(UI): fix faq section misaligned on homepage freeCodeCamp#54726 (freeCodeCamp#55891)
1 parent 3a5c9f1 commit 3cbafc1

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

client/src/components/landing/components/faq.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,14 @@ const Faq = (): JSX.Element => {
1515
const faqItems = t<string, string & FaqItem[]>('landing.faqs');
1616

1717
return (
18-
<Col sm={8} smOffset={2} xs={10} xsOffset={1}>
18+
<Col
19+
md={8}
20+
mdOffset={2}
21+
sm={10}
22+
smOffset={1}
23+
xs={12}
24+
className='faq-section'
25+
>
1926
<h2 className='big-heading'>{t('landing.faq')}</h2>
2027
<Spacer size='small' />
2128
{faqItems.map((faq, i) => (

client/src/components/landing/landing.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ figcaption.caption {
181181
padding: 4vw 15px;
182182
}
183183

184-
.certification-section {
184+
.certification-section,
185+
.faq-section {
185186
padding-inline: 4vw;
186187
}
187188

0 commit comments

Comments
 (0)