Skip to content

Commit

Permalink
fix(Elements Misaligned on Homepage) freeCodeCamp#54726
Browse files Browse the repository at this point in the history
  • Loading branch information
PatricAngly committed May 14, 2024
1 parent 3f92fc6 commit 7d3309d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import BigCallToAction from './big-call-to-action';
const Certifications = (): JSX.Element => {
return (
<Col
className='certification-section'
className='landing-page-content-container'
md={8}
mdOffset={2}
sm={10}
Expand Down
9 changes: 8 additions & 1 deletion client/src/components/landing/components/faq.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ const Faq = (): JSX.Element => {
const faqItems = t<string, string & FaqItem[]>('landing.faqs');

return (
<Col sm={8} smOffset={2} xs={10} xsOffset={1}>
<Col
className='landing-page-content-container'
md={8}
mdOffset={2}
sm={10}
smOffset={1}
xs={12}
>
<h2 className='big-heading'>{t('landing.faq')}</h2>
<Spacer size='small' />
{faqItems.map((faq, i) => (
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/landing/landing.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ figcaption.caption {

.landing-top,
.as-seen-in,
.certification-section,
.landing-page-content-container,
.testimonials {
padding-block: 4vw;
}

.certification-section {
.landing-page-content-container {
padding-inline: 4vw;
}

Expand Down

0 comments on commit 7d3309d

Please sign in to comment.