feat: final refactor of sections
All checks were successful
test-build / guarddog (push) Successful in 35s
test-build / build (push) Successful in 1m1s
renovate / renovate (push) Successful in 2m15s

This commit is contained in:
2026-02-15 23:38:55 -06:00
parent 5271be52a2
commit a74cc775d0
17 changed files with 232 additions and 245 deletions

View File

@@ -3,8 +3,8 @@ import { readSingleton } from '@directus/sdk';
import directus from '@lib/directus';
import BaseLayout from '@layouts/BaseLayout.astro';
import GoBack from '@/components/buttons/GoBack.astro';
import GoHome from '@/components/buttons/GoHome.astro';
import GoBackButton from '@/components/buttons/GoBackButton.astro';
import GoHomeButton from '@/components/buttons/GoHomeButton.astro';
const global = await directus.request(readSingleton('site_global'));
---
@@ -61,8 +61,8 @@ const global = await directus.request(readSingleton('site_global'));
<div
class="smooth-reveal mt-10 flex flex-col items-center justify-center gap-4 sm:flex-row"
>
<GoBack/>
<GoHome url={global.site_url} />
<GoBackButton/>
<GoHomeButton url={global.site_url} />
</div>
</div>
</div>

View File

@@ -4,10 +4,10 @@ import { readSingleton } from '@directus/sdk';
import directus from '@lib/directus';
import BaseLayout from '@layouts/BaseLayout.astro';
import HeroSection from '@components/sections/HeroSection.astro';
import Experience from '@components/sections/Experience.astro';
import ExperienceSection from '@components/sections/ExperienceSection.astro';
import EducationSection from '@components/sections/EducationSection.astro';
import ProjectSection from '@components/sections/ProjectSection.astro';
import SkillsSlider from '@components/sections/SkillsSlider.astro';
import SkillsSliderSection from '@components/sections/SkillsSliderSection.astro';
import portraitImg from '@images/portrait.avif';
@@ -44,10 +44,10 @@ const global = await directus.request(readSingleton('site_global'));
<section class="mx-auto max-w-7xl px-4 py-10 sm:px-6 lg:px-8 lg:py-14">
<div class="flex flex-col gap-y-24 md:gap-y-32">
<Experience className="smooth-reveal" />
<ExperienceSection className="smooth-reveal" />
<EducationSection className="smooth-reveal" />
<ProjectSection className="smooth-reveal" />
<SkillsSlider className="smooth-reveal" />
<SkillsSliderSection className="smooth-reveal" />
</div>
</section>

View File

@@ -10,7 +10,7 @@ import { createHighlighter } from 'shiki';
import { getDirectusImageURL } from '@lib/directusFunctions';
import BaseLayout from '@layouts/BaseLayout.astro';
import Image from '@components/ui/images/Image.astro';
import SocialShare from '@components/buttons/SocialShare.astro';
import SocialShareButton from '@components/buttons/SocialShareButton.astro';
import { formatDateTime } from '@support/time';
export async function getStaticPaths() {
@@ -163,7 +163,7 @@ const content = marked.parse(post.content);
))
}
</div>
<SocialShare
<SocialShareButton
pageTitle={post.title}
/>
</div>

View File

@@ -6,7 +6,7 @@ import BaseLayout from '@layouts/BaseLayout.astro';
import HeroSection from '@components/sections/HeroSection.astro';
import FeaturesSection from '@components/sections/FeaturesSection.astro';
import WeatherSection from '@components/sections/WeatherSection.astro';
import LatestPosts from '@components/sections/LatestPosts.astro';
import LatestPostsSection from '@components/sections/LatestPostsSection.astro';
import GiteaSection from '@components/sections/GiteaSection.astro';
import homeImg from '@images/autumn_mountain.png';
@@ -54,7 +54,7 @@ const weather = await directus.request(readSingleton('site_weather'));
>
</WeatherSection>
<LatestPosts />
<LatestPostsSection />
<GiteaSection
title="Follow me on Gitea"