From c1ece582f445906308a0d856181ebaca464ec25a Mon Sep 17 00:00:00 2001 From: MAZE Date: Fri, 30 Aug 2024 16:42:41 +0330 Subject: [PATCH] feat: add new logo --- public/logo.svg | 17 +++++----- src/components/hero.astro | 69 ++++++++++++++++----------------------- 2 files changed, 37 insertions(+), 49 deletions(-) diff --git a/public/logo.svg b/public/logo.svg index fedcc84..0b6a0b0 100644 --- a/public/logo.svg +++ b/public/logo.svg @@ -1,11 +1,10 @@ - - - - - - - - - + + + + + + + + diff --git a/src/components/hero.astro b/src/components/hero.astro index 7623cd7..074c8ba 100644 --- a/src/components/hero.astro +++ b/src/components/hero.astro @@ -20,12 +20,7 @@ const count = soundCount(); width={45} /> -
-
-

Moodist

-
-
- +

Moodist

Ambient sounds for focus and calm.

@@ -50,48 +45,32 @@ const count = soundCount(); & .logo { display: block; width: 45px; - margin: 0 auto 12px; + margin: 0 auto 16px; + animation-name: logo; + animation-duration: 30s; + animation-timing-function: linear; + animation-iteration-count: infinite; } & .title { - display: flex; - column-gap: 15px; - align-items: center; + font-family: var(--font-display); + font-size: var(--font-2xlg); + font-weight: 600; + line-height: 1; - & div { - flex-grow: 1; - height: 1px; - - &.left { - background: linear-gradient( - 90deg, - transparent, - transparent, - var(--color-neutral-200), - var(--color-neutral-300) - ); - } - - &.right { - background: linear-gradient( - 90deg, - var(--color-neutral-300), - var(--color-neutral-200), - transparent, - transparent - ); - } - } - - & h2 { - font-family: var(--font-display); - font-size: var(--font-2xlg); - font-weight: 600; + & span { + background: linear-gradient( + 135deg, + var(--color-foreground), + var(--color-foreground-subtle) + ); + background-clip: text; + -webkit-text-fill-color: transparent; } } & .desc { - margin-top: 5px; + margin-top: 4px; line-height: 1.6; color: var(--color-foreground-subtle); } @@ -140,4 +119,14 @@ const count = soundCount(); } } } + + @keyframes logo { + 0% { + transform: rotate(0); + } + + 100% { + transform: rotate(360deg); + } + }