Skip to content

Commit

Permalink
fix: remove extra headings
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Feb 29, 2024
1 parent 0eb47ba commit 7390a9b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/categories/donate/donate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function Donate() {
</div>
</div>

<h2 className={styles.title}>Support Me</h2>
<div className={styles.title}>Support Me</div>
<p className={styles.desc}>Help me keep Moodist ad-free.</p>
<SpecialButton
className={styles.button}
Expand Down
2 changes: 1 addition & 1 deletion src/components/category/category.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function Category({
<div className={styles.icon}>{icon}</div>
</div>

<h2 className={styles.title}>{title}</h2>
<div className={styles.title}>{title}</div>

<Sounds functional={functional} id={id} sounds={sounds} />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/hero/hero.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
}
}

& h1 {
& h2 {
font-family: var(--font-display);
font-size: var(--font-2xlg);
font-weight: 600;
Expand Down
7 changes: 2 additions & 5 deletions src/components/hero/hero.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useMemo } from 'react';
import { Balancer } from 'react-wrap-balancer';
import { BsSoundwave } from 'react-icons/bs/index';

import { Container } from '@/components/container';
Expand All @@ -25,13 +24,11 @@ export function Hero() {

<div className={styles.title}>
<div className={styles.left}></div>
<h1>Moodist</h1>
<h2>Moodist</h2>
<div className={styles.right}></div>
</div>

<h2 className={styles.desc}>
<Balancer>Ambient sounds for focus and calm.</Balancer>
</h2>
<h1 className={styles.desc}>Ambient sounds for focus and calm.</h1>

<p className={styles.sounds}>
<span className={styles.icon}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/sound/sound.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
}
}

& h3 {
& .label {
margin-top: 8px;
font-family: var(--font-heading);
font-size: var(--font-sm);
Expand Down
4 changes: 3 additions & 1 deletion src/components/sound/sound.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ export function Sound({
icon
)}
</div>
<h3 id={id}>{label}</h3>
<div className={styles.label} id={id}>
{label}
</div>
<Range id={id} />
</div>
);
Expand Down

0 comments on commit 7390a9b

Please sign in to comment.