feat: add Moodist description to tools

This commit is contained in:
MAZE 2024-08-30 22:26:57 +03:30
parent bee391acfe
commit 5b3972b347
2 changed files with 23 additions and 2 deletions

View file

@ -6,19 +6,20 @@ interface SpecialButtonProps {
children: React.ReactNode; children: React.ReactNode;
className?: string; className?: string;
href: string; href: string;
internal?: boolean;
} }
export function SpecialButton({ export function SpecialButton({
children, children,
className, className,
href, href,
internal,
}: SpecialButtonProps) { }: SpecialButtonProps) {
return ( return (
<a <a
className={cn(styles.button, className)} className={cn(styles.button, className)}
href={href} href={href}
rel="noreferrer" {...(!internal ? { rel: 'noreferrer', target: '_blank' } : {})}
target="_blank"
> >
{children} {children}
</a> </a>

View file

@ -1,5 +1,6 @@
--- ---
import { Container } from '../container'; import { Container } from '../container';
import { SpecialButton } from '../special-button';
interface Props { interface Props {
text: string; text: string;
@ -12,6 +13,17 @@ const { text } = Astro.props;
<Container tight> <Container tight>
<h3 class="title">About This Tool</h3> <h3 class="title">About This Tool</h3>
<p class="text">{text}</p> <p class="text">{text}</p>
<h3 class="title">About Moodist</h3>
<p class="text">
Immerse yourself in tranquility with Moodist, a simple ambient sound
generator. Create the perfect atmosphere for relaxation, focus, or sleep
by customizing soothing soundscapes to match your mood.
</p>
<div class="button">
<SpecialButton href="/" internal>Use Moodist</SpecialButton>
</div>
</Container> </Container>
</div> </div>
@ -25,10 +37,18 @@ const { text } = Astro.props;
font-family: var(--font-heading); font-family: var(--font-heading);
font-size: var(--font-md); font-size: var(--font-md);
font-weight: 600; font-weight: 600;
&:not(:first-of-type) {
margin-top: 40px;
}
} }
.text { .text {
line-height: 1.6; line-height: 1.6;
color: var(--color-foreground-subtle); color: var(--color-foreground-subtle);
} }
.button {
margin-top: 24px;
}
</style> </style>