From 63900676f5fcd2a6df2cc215df7f213f17572ac7 Mon Sep 17 00:00:00 2001 From: Ave Aristov Date: Wed, 7 Aug 2024 10:08:35 +0700 Subject: [PATCH] feat: content table --- src/components/AboutMe.astro | 2 +- src/components/Cyberware/Cyberware.astro | 2 +- src/components/Experince/Experince.astro | 11 +++- src/components/Main.astro | 11 +++- src/components/Portifillo/Contact.astro | 4 +- src/components/Portifillo/Profile.astro | 4 +- src/components/Portifillo/Project.astro | 6 +- src/components/TableOfContents.tsx | 72 ++++++++++++++++++++++++ src/layouts/Layout.astro | 3 +- src/lib/utils.ts | 16 +++++- tailwind.config.mjs | 2 +- 11 files changed, 120 insertions(+), 13 deletions(-) create mode 100644 src/components/TableOfContents.tsx diff --git a/src/components/AboutMe.astro b/src/components/AboutMe.astro index fc64d56..54033af 100644 --- a/src/components/AboutMe.astro +++ b/src/components/AboutMe.astro @@ -3,7 +3,7 @@ import Text from "@/components/Text"; ---
- + Meet Ave Aristov, Navigating the Cyberspace diff --git a/src/components/Cyberware/Cyberware.astro b/src/components/Cyberware/Cyberware.astro index ab4acc9..d52b04a 100644 --- a/src/components/Cyberware/Cyberware.astro +++ b/src/components/Cyberware/Cyberware.astro @@ -4,7 +4,7 @@ import TechnologyLinks from "./TechnologyLinks"; ---
- Cyberware Loadout + Cyberware Loadout Dive into the eclectic array of cybernetic tools that fuel their odyssey through the algorithmic maze of the digital underworld diff --git a/src/components/Experince/Experince.astro b/src/components/Experince/Experince.astro index 404e4dd..812344a 100644 --- a/src/components/Experince/Experince.astro +++ b/src/components/Experince/Experince.astro @@ -1,5 +1,6 @@ --- import Text from "@/components/Text"; +import { slugify } from "@/lib/utils"; const jobExperiences = [ { @@ -27,7 +28,11 @@ const jobExperiences = [ ]; --- -
+
Job Experience
(
- {job.title} + + {job.title} + {job.period} diff --git a/src/components/Main.astro b/src/components/Main.astro index ea2b4a9..70c8811 100644 --- a/src/components/Main.astro +++ b/src/components/Main.astro @@ -1,6 +1,7 @@ --- import { cn } from "@/lib/utils"; import type { TransitionAnimationPair } from "astro"; +import TableOfContents from "./TableOfContents"; const { class: additionalClasses } = Astro.props; @@ -30,12 +31,20 @@ const viewTransition = { id="main-content" class={cn( "container mx-auto px-4 py-4 sm:px-6 sm:py-6 md:px-8 md:py-8", + "flex flex-col lg:flex-row gap-8", additionalClasses )} transition:animate={viewTransition} transition:name="main" > - +
+ +
+