From f4e09bd8e665c66c679b561f087e9660a18d5718 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 17 Sep 2022 19:57:22 +0200 Subject: [PATCH] style: typography and colors --- src/components/Card.astro | 2 + src/components/Footer.astro | 23 ++--- src/layouts/Layout.astro | 2 +- src/pages/index.astro | 186 ++++++++++++++++++++---------------- src/pages/social.astro | 43 ++++----- 5 files changed, 133 insertions(+), 123 deletions(-) diff --git a/src/components/Card.astro b/src/components/Card.astro index a87ab72..3d46ad1 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -73,4 +73,6 @@ const { href, title, body } = Astro.props; will-change: transform; transform: translateX(2px); } + + diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 0d0c1b7..a4ff6c6 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,15 +1,13 @@ diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 095ee87..c4c7346 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -37,7 +37,7 @@ import Footer from '../components/Footer.astro'; font-size: var(--font-size-base); color: var(--color-text); background-color: var(--color-bg); - } + } body { margin: 0; diff --git a/src/pages/index.astro b/src/pages/index.astro index 5df2496..490787f 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,99 +1,117 @@ --- -import Layout from '../layouts/Layout.astro'; -import Card from '../components/Card.astro'; -import Footer from '../components/Footer.astro'; +import Layout from "../layouts/Layout.astro"; +import Card from "../components/Card.astro"; +import Footer from "../components/Footer.astro"; --- -
-

Hi, I am Ayo!

-
    -
  • 👨🏻‍💻 Software Extraordinaire
  • -
  • 🕵🏻‍♂️ Frontend Detective Consultant
  • -
  • 📚 BS Computer Science
  • -
- -
-
+
+

Hi, I'm Ayo!

+
    +
  • 👨🏻‍💻 Software Extraordinaire
  • +
  • 🕵🏻‍♂️ Frontend Detective Consultant
  • +
  • 📚 BS Computer Science
  • +
+ +
+
diff --git a/src/pages/social.astro b/src/pages/social.astro index c2a7d84..de54b62 100644 --- a/src/pages/social.astro +++ b/src/pages/social.astro @@ -8,25 +8,23 @@ import Footer from '../components/Footer.astro';

Social Links

-
-
    - - - -
-
+
@@ -36,10 +34,6 @@ import Footer from '../components/Footer.astro'; --astro-gradient: linear-gradient(0deg, #4f39fa, #da62c4); } - div.content { - margin-left: -40px; - } - h1 { margin: 2rem 0; } @@ -53,12 +47,12 @@ import Footer from '../components/Footer.astro'; .text-gradient { font-weight: 900; background-image: var(--astro-gradient); + animation: pulse 4s ease-in-out infinite; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-size: 100% 200%; background-position-y: 100%; border-radius: 0.4rem; - animation: pulse 4s ease-in-out infinite; } @keyframes pulse { @@ -89,7 +83,6 @@ import Footer from '../components/Footer.astro'; .link-card-grid { display: grid; - grid-template-columns: repeat(auto-fit, minmax(24ch, 1fr)); gap: 1rem; padding: 0; }