From e025ec27967411e236c8434dcdac37459aa3bdc6 Mon Sep 17 00:00:00 2001 From: "Zaid Arshad (Nico)" Date: Tue, 23 Jan 2024 15:56:58 -0500 Subject: [PATCH] feat: style changes --- src/pages/index.astro | 52 ++++++++++++++++++++++++++++++------------ src/styles/globals.css | 4 ++-- 2 files changed, 40 insertions(+), 16 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 0f9126c..a9ffe03 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -15,10 +15,25 @@ import { getCollection } from "astro:content"; import Link from "../components/Link"; import { colors } from "../utils/links"; -const project_sections: Record = { - "Websites & Fullstack": "sites", - "Backend & Bots": "backends", - Libraries: "libraries", +const project_sections: Record< + string, + { slug: keyof typeof projects_data; description: string } +> = { + "Websites & Fullstack": { + slug: "sites", + description: + "These are full-stack or frontend-only projects that I've created. For full-stack, these will include a backend and database in the project as well.", + }, + "Backend & Bots": { + slug: "backends", + description: + "These are backend-only projects that I've created. Some are chat-bots, APIs, proxies, or other.", + }, + Libraries: { + slug: "libraries", + description: + "These are open-source libraries that I've created. These are used by myself and others to make it easier to build their projects.", + }, }; const allPosts = await getCollection("posts"); @@ -112,7 +127,7 @@ const allPosts = await getCollection("posts");
-

Coding Stats

+

Coding Stats

{ Object.keys(wakatime_data).map((year) => (
-
-

Featured Projects

+
+
+

Featured Projects

+

+ These are the projects that I believe display a large amount + of knowlege I've accumulate over the years. +

+
{ Object.entries(project_sections).map( ([title, json_section]) => ( - <> -

{title}

-
- {projects_data[json_section].map((project) => ( - - ))} +
+

{title}

+

{json_section.description}

+
+ {projects_data[json_section.slug].map( + (project) => ( + + ), + )}
- +
), ) } diff --git a/src/styles/globals.css b/src/styles/globals.css index 0b9b532..b1dc0bb 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -12,14 +12,14 @@ } h3 { - @apply text-white text-2xl font-bold + @apply text-white text-2xl font-semibold } p { @apply text-lg font-normal } - a { + a { @apply underline underline-offset-2 hover:text-white transition-colors }