style: add line to titles

This commit is contained in:
MAZE 2023-10-31 19:53:08 +03:30
parent ef825cae68
commit ec1def0419
4 changed files with 44 additions and 12 deletions

View File

@ -1,6 +1,11 @@
.about { .about {
padding: 80px 0; padding: 80px 0;
& .titleWrapper {
display: flex;
align-items: center;
column-gap: 15px;
& .title { & .title {
margin-bottom: 12px; margin-bottom: 12px;
font-family: var(--font-display); font-family: var(--font-display);
@ -8,6 +13,14 @@
font-weight: 600; font-weight: 600;
} }
& .line {
height: 1px;
flex-grow: 1;
background: linear-gradient(90deg, var(--color-neutral-300), transparent);
transform: translateY(-0.188rem);
}
}
& .desc { & .desc {
color: var(--color-foreground-subtle); color: var(--color-foreground-subtle);
line-height: 1.7; line-height: 1.7;

View File

@ -19,7 +19,10 @@ export function About() {
return ( return (
<div className={styles.about}> <div className={styles.about}>
<Container> <Container>
<div className={styles.titleWrapper}>
<h2 className={styles.title}>What is Moodist?</h2> <h2 className={styles.title}>What is Moodist?</h2>
<div className={styles.line} />
</div>
<p className={styles.desc}> <p className={styles.desc}>
Moodist is your gateway to a world of serenity and focus. It&apos;s a Moodist is your gateway to a world of serenity and focus. It&apos;s a
free online ambient sound generator offering <span>{count}</span>{' '} free online ambient sound generator offering <span>{count}</span>{' '}

View File

@ -1,6 +1,11 @@
.why { .why {
padding-bottom: 80px; padding-bottom: 80px;
& .titleWrapper {
display: flex;
align-items: center;
column-gap: 15px;
& .title { & .title {
margin-bottom: 12px; margin-bottom: 12px;
font-family: var(--font-display); font-family: var(--font-display);
@ -8,6 +13,14 @@
font-weight: 600; font-weight: 600;
} }
& .line {
height: 1px;
flex-grow: 1;
background: linear-gradient(90deg, var(--color-neutral-300), transparent);
transform: translateY(-0.188rem);
}
}
& .reasons { & .reasons {
display: grid; display: grid;
margin-top: 24px; margin-top: 24px;

View File

@ -30,7 +30,10 @@ export function Why() {
return ( return (
<div className={styles.why}> <div className={styles.why}>
<Container> <Container>
<div className={styles.titleWrapper}>
<h2 className={styles.title}>Why use Moodist?</h2> <h2 className={styles.title}>Why use Moodist?</h2>
<div className={styles.line} />
</div>
<div className={styles.reasons}> <div className={styles.reasons}>
{reasons.map(reason => ( {reasons.map(reason => (