mirror of
https://github.com/remvze/moodist.git
synced 2025-09-29 15:30:49 -04:00
Merge branch 'main' into develop
This commit is contained in:
commit
a5d2ba45f8
@ -1,61 +1,39 @@
|
|||||||
.about {
|
.about {
|
||||||
margin-top: 80px;
|
& .effect {
|
||||||
|
position: sticky;
|
||||||
& .iconContainer {
|
top: 0;
|
||||||
display: flex;
|
height: 80px;
|
||||||
flex-direction: column;
|
background: linear-gradient(var(--color-neutral-50), transparent);
|
||||||
align-items: center;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
|
|
||||||
& .tail {
|
|
||||||
width: 1px;
|
|
||||||
height: 75px;
|
|
||||||
background: linear-gradient(transparent, var(--color-neutral-300));
|
|
||||||
}
|
|
||||||
|
|
||||||
& .icon {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
width: 45px;
|
|
||||||
height: 45px;
|
|
||||||
font-size: var(--font-md);
|
|
||||||
background-color: var(--color-neutral-100);
|
|
||||||
border: 1px solid var(--color-neutral-300);
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
& .title {
|
& .paragraph {
|
||||||
margin-bottom: 8px;
|
padding: 30px 0;
|
||||||
font-family: var(--font-display);
|
|
||||||
font-size: var(--font-lg);
|
|
||||||
font-weight: 600;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
& .desc {
|
|
||||||
width: 100%;
|
|
||||||
max-width: 450px;
|
|
||||||
margin: 0 auto;
|
|
||||||
line-height: 1.6;
|
|
||||||
color: var(--color-foreground-subtle);
|
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
&:not(:last-of-type) {
|
|
||||||
margin-bottom: 24px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
& .divider {
|
|
||||||
width: 80px;
|
|
||||||
height: 1px;
|
|
||||||
margin: 0 auto 24px;
|
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
90deg,
|
|
||||||
transparent,
|
transparent,
|
||||||
var(--color-neutral-300),
|
var(--color-neutral-50) 10%,
|
||||||
|
var(--color-neutral-50) 90%,
|
||||||
transparent
|
transparent
|
||||||
);
|
);
|
||||||
|
|
||||||
|
& .counter {
|
||||||
|
width: max-content;
|
||||||
|
padding: 6px 16px;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
font-size: var(--font-xsm);
|
||||||
|
color: var(--color-foreground-subtle);
|
||||||
|
background: linear-gradient(var(--color-neutral-100), transparent);
|
||||||
|
border: 1px solid var(--color-neutral-300);
|
||||||
|
border-radius: 20px 20px 20px 8px;
|
||||||
|
|
||||||
|
& span {
|
||||||
|
font-weight: 500;
|
||||||
|
color: var(--color-foreground);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
& .desc {
|
||||||
|
line-height: 1.6;
|
||||||
|
color: var(--color-foreground-subtle);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
import { FaQuestion } from 'react-icons/fa6/index';
|
|
||||||
import { Balancer } from 'react-wrap-balancer';
|
|
||||||
|
|
||||||
import { Container } from '@/components/container';
|
import { Container } from '@/components/container';
|
||||||
import { count as soundCount } from '@/lib/sounds';
|
import { count as soundCount } from '@/lib/sounds';
|
||||||
|
|
||||||
@ -18,26 +15,17 @@ export function About() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<section className={styles.about}>
|
<section className={styles.about}>
|
||||||
<Container>
|
<div className={styles.effect} />
|
||||||
<div className={styles.iconContainer}>
|
|
||||||
<div className={styles.tail} />
|
|
||||||
<div className={styles.icon}>
|
|
||||||
<FaQuestion />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h1 className={styles.title}>Free Ambient Sounds</h1>
|
|
||||||
|
|
||||||
|
<Container tight>
|
||||||
{paragraphs.map((paragraph, index) => (
|
{paragraphs.map((paragraph, index) => (
|
||||||
<>
|
<div className={styles.paragraph} key={index}>
|
||||||
<p className={styles.desc} key={index}>
|
<div className={styles.counter}>
|
||||||
<Balancer>{paragraph}</Balancer>
|
<span>0{index + 1}</span> / 0{paragraphs.length}
|
||||||
</p>
|
</div>
|
||||||
|
|
||||||
{index < paragraphs.length - 1 && (
|
<p className={styles.desc}>{paragraph}</p>
|
||||||
<div className={styles.divider} />
|
</div>
|
||||||
)}
|
|
||||||
</>
|
|
||||||
))}
|
))}
|
||||||
</Container>
|
</Container>
|
||||||
</section>
|
</section>
|
||||||
|
@ -2,4 +2,8 @@
|
|||||||
width: 90%;
|
width: 90%;
|
||||||
max-width: 600px;
|
max-width: 600px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
||||||
|
&.tight {
|
||||||
|
max-width: 450px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,8 +5,13 @@ import styles from './container.module.css';
|
|||||||
interface ContainerProps {
|
interface ContainerProps {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
className?: string;
|
className?: string;
|
||||||
|
tight?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function Container({ children, className }: ContainerProps) {
|
export function Container({ children, className, tight }: ContainerProps) {
|
||||||
return <div className={cn(styles.container, className)}>{children}</div>;
|
return (
|
||||||
|
<div className={cn(styles.container, className, tight && styles.tight)}>
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
.source {
|
.source {
|
||||||
/* margin-top: 80px; */
|
/* margin-top: 80px; */
|
||||||
|
|
||||||
margin-top: 40px;
|
margin-top: 20px;
|
||||||
|
|
||||||
& .wrapper {
|
& .wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user