mirror of
https://github.com/remvze/moodist.git
synced 2025-09-29 15:30:49 -04:00
feat: change alignments
This commit is contained in:
parent
38da02a0d3
commit
1a01a00866
@ -1,4 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
import { Balancer } from 'react-wrap-balancer';
|
||||||
|
import { FaQuestion } from 'react-icons/fa/index';
|
||||||
|
|
||||||
import { Container } from '@/components/container';
|
import { Container } from '@/components/container';
|
||||||
import { count as soundCount } from '@/lib/sounds';
|
import { count as soundCount } from '@/lib/sounds';
|
||||||
|
|
||||||
@ -7,17 +10,21 @@ const count = soundCount();
|
|||||||
|
|
||||||
<div class="about">
|
<div class="about">
|
||||||
<Container>
|
<Container>
|
||||||
<div class="titleWrapper">
|
<div class="iconContainer">
|
||||||
<h2 class="title">What is Moodist?</h2>
|
<div class="tail"></div>
|
||||||
<div class="line"></div>
|
<div class="icon">
|
||||||
|
<FaQuestion />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2 class="title">What is Moodist?</h2>
|
||||||
<p class="desc">
|
<p class="desc">
|
||||||
Welcome to Moodist – your free, open-source ambient sound generator. With <span
|
<Balancer>
|
||||||
>{count} curated sounds</span
|
Moodist is a free and open-source ambient sound generator featuring <span
|
||||||
>, effortlessly create your custom mix for focus or relaxation. No
|
class="counter">{count} carefully curated sounds</span
|
||||||
accounts, no hassle – just pure tranquility. Explore nature's calm
|
>. Create your ideal atmosphere for relaxation, focus, or creativity
|
||||||
and urban rhythms. Elevate your ambiance with Moodist, where simplicity
|
with this versatile tool.
|
||||||
meets serenity.
|
</Balancer>
|
||||||
</p>
|
</p>
|
||||||
</Container>
|
</Container>
|
||||||
</div>
|
</div>
|
||||||
@ -26,35 +33,48 @@ const count = soundCount();
|
|||||||
.about {
|
.about {
|
||||||
padding: 80px 0;
|
padding: 80px 0;
|
||||||
|
|
||||||
& .titleWrapper {
|
& .iconContainer {
|
||||||
display: flex;
|
display: flex;
|
||||||
column-gap: 12px;
|
flex-direction: column;
|
||||||
align-items: center;
|
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-base);
|
||||||
|
background-color: var(--color-neutral-100);
|
||||||
|
border: 1px solid var(--color-neutral-300);
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
& .title {
|
& .title {
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
font-family: var(--font-display);
|
font-family: var(--font-display);
|
||||||
font-size: var(--font-lg);
|
font-size: var(--font-lg);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
text-align: center;
|
||||||
|
|
||||||
& .line {
|
|
||||||
flex-grow: 1;
|
|
||||||
height: 1px;
|
|
||||||
background: linear-gradient(
|
|
||||||
90deg,
|
|
||||||
var(--color-neutral-300),
|
|
||||||
transparent
|
|
||||||
);
|
|
||||||
transform: translateY(-0.25rem);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
& .desc {
|
& .desc {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 450px;
|
||||||
|
margin: 0 auto;
|
||||||
line-height: 1.7;
|
line-height: 1.7;
|
||||||
color: var(--color-foreground-subtle);
|
color: var(--color-foreground-subtle);
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
& span {
|
& .counter {
|
||||||
color: var(--color-foreground);
|
color: var(--color-foreground);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@ import { BiMoney, BiUserCircle, BiLogoGithub } from 'react-icons/bi/index';
|
|||||||
import { BsSoundwave, BsStars } from 'react-icons/bs/index';
|
import { BsSoundwave, BsStars } from 'react-icons/bs/index';
|
||||||
import { RxMixerHorizontal } from 'react-icons/rx/index';
|
import { RxMixerHorizontal } from 'react-icons/rx/index';
|
||||||
import { IoShareSocialSharp } from 'react-icons/io5/index';
|
import { IoShareSocialSharp } from 'react-icons/io5/index';
|
||||||
|
import { FaQuestion } from 'react-icons/fa/index';
|
||||||
|
|
||||||
import { Balancer } from 'react-wrap-balancer';
|
import { Balancer } from 'react-wrap-balancer';
|
||||||
|
|
||||||
@ -63,10 +64,14 @@ const reasons = [
|
|||||||
|
|
||||||
<div class="why">
|
<div class="why">
|
||||||
<Container>
|
<Container>
|
||||||
<div class="titleWrapper">
|
<div class="iconContainer">
|
||||||
<h2 class="title">Why use Moodist?</h2>
|
<div class="tail"></div>
|
||||||
<div class="line"></div>
|
<div class="icon">
|
||||||
|
<FaQuestion />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2 class="title">Why use Moodist?</h2>
|
||||||
|
|
||||||
<div class="reasons">
|
<div class="reasons">
|
||||||
{
|
{
|
||||||
@ -81,7 +86,7 @@ const reasons = [
|
|||||||
</p>
|
</p>
|
||||||
{reason.link && (
|
{reason.link && (
|
||||||
<a class="link" href={reason.link.url}>
|
<a class="link" href={reason.link.url}>
|
||||||
{reason.link.label} →
|
{reason.link.label}
|
||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
@ -95,28 +100,37 @@ const reasons = [
|
|||||||
.why {
|
.why {
|
||||||
padding-bottom: 80px;
|
padding-bottom: 80px;
|
||||||
|
|
||||||
& .titleWrapper {
|
& .iconContainer {
|
||||||
display: flex;
|
display: flex;
|
||||||
column-gap: 12px;
|
flex-direction: column;
|
||||||
align-items: center;
|
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-base);
|
||||||
|
background-color: var(--color-neutral-100);
|
||||||
|
border: 1px solid var(--color-neutral-300);
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
& .title {
|
& .title {
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
font-family: var(--font-display);
|
font-family: var(--font-display);
|
||||||
font-size: var(--font-lg);
|
font-size: var(--font-lg);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
text-align: center;
|
||||||
|
|
||||||
& .line {
|
|
||||||
flex-grow: 1;
|
|
||||||
height: 1px;
|
|
||||||
background: linear-gradient(
|
|
||||||
90deg,
|
|
||||||
var(--color-neutral-300),
|
|
||||||
transparent
|
|
||||||
);
|
|
||||||
transform: translateY(-0.25rem);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
& .reasons {
|
& .reasons {
|
||||||
@ -132,7 +146,7 @@ const reasons = [
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
margin-bottom: 12px;
|
margin: 0 auto 12px;
|
||||||
font-size: var(--font-md);
|
font-size: var(--font-md);
|
||||||
color: var(--color-foreground-subtle);
|
color: var(--color-foreground-subtle);
|
||||||
background: linear-gradient(var(--color-neutral-100), transparent);
|
background: linear-gradient(var(--color-neutral-100), transparent);
|
||||||
@ -144,11 +158,16 @@ const reasons = [
|
|||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
font-family: var(--font-heading);
|
font-family: var(--font-heading);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
& .body {
|
& .body {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 250px;
|
||||||
|
margin: 0 auto;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
color: var(--color-foreground-subtle);
|
color: var(--color-foreground-subtle);
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
& .link {
|
& .link {
|
||||||
@ -157,6 +176,7 @@ const reasons = [
|
|||||||
font-size: var(--font-sm);
|
font-size: var(--font-sm);
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: var(--color-foreground);
|
color: var(--color-foreground);
|
||||||
|
text-align: center;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user