Skip to content

Commit

Permalink
chore: Update header hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
flozia committed Jan 13, 2025
1 parent 89ca25e commit 322d990
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,8 @@
}
}

h1 {
font: tokens.$text-title-sm;
}

h2,
h3 {
font: tokens.$text-title-xs;
}

h1,
h2,
h3 {
font-family: var(--font-inter);
font-weight: 400;
line-height: 1.25em;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ export const CtaBanner = (props: LandingPageProps) => {
return (
<div className={styles.banner}>
<div className={styles.bannerHeader}>
<h2>
<h3>
<b>
{props.l10n.getFragment("landing-redesign-banner-cta-header", {
elems: { b: <strong /> },
})}
</b>
</h2>
</h3>
<p>{props.l10n.getString("landing-redesign-banner-cta-subheader")}</p>
</div>
{props.eligibleForPremium && props.scanLimitReached ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const CtaInputBanner = (props: LandingPageProps) => {
<div className={styles.banner}>
<div className={styles.bannerContent}>
<div className={styles.bannerHeader}>
<h2>
<h3>
<b>
{props.l10n.getFragment(
"landing-redesign-cta-input-banner-header",
Expand All @@ -21,7 +21,7 @@ export const CtaInputBanner = (props: LandingPageProps) => {
},
)}
</b>
</h2>
</h3>
<p>
{props.l10n.getString(
"landing-redesign-cta-input-banner-subheader",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ export const Faq = () => {

return (
<div className={styles.content}>
<h2>
<h3>
<b>{l10n.getString("landing-redesign-faq-section-title")}</b>
</h2>
</h3>
<dl id="faq" className={styles.faqList}>
{faqItems.map(
({ question, answer, isExpanded, id, onExpandAnswer }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@
padding: 0 tokens.$layout-md;
}

h2 {
font: tokens.$text-title-sm;
font-family: var(--font-inter);
font-weight: 400;
line-height: 1.25em;
}

p {
font: tokens.$text-body-lg;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export const Hero = (props: LandingPageProps) => {
<header className={styles.hero}>
<div className={styles.heroContent}>
<div className={styles.heroTitle}>
<h1>
<h2>
{props.l10n.getFragment("landing-redesign-hero-title", {
elems: { b: <b /> },
})}
</h1>
</h2>
<p>{props.l10n.getString("landing-redesign-hero-lead")}</p>
</div>
<div className={styles.heroCta}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ export const LogoBlock = ({ l10n }: { l10n: ExtendedReactLocalization }) => {
return (
<div className={styles.content}>
<div className={styles.header}>
<h2>
<h3>
<b>{l10n.getString("landing-redesign-logo-block-title")}</b>
</h2>
</h3>
<p>{l10n.getString("landing-redesign-logo-block-description")}</p>
</div>
<div className={styles.logosWrapper}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ export const PricingPlans = (props: LandingPageProps) => {
return (
<div className={styles.content}>
<div className={styles.header}>
<h2 id={headingId}>
<h3 id={headingId}>
<b>
{props.l10n.getString(
"landing-redesign-pricing-plans-section-title",
)}
</b>
</h2>
</h3>
<p>
{props.l10n.getString(
"landing-redesign-pricing-plans-section-description",
Expand Down

0 comments on commit 322d990

Please sign in to comment.