feat: refactor buttons, except for theme

This commit is contained in:
2026-02-14 22:09:49 -06:00
parent 2cdef1a553
commit 342ae8900a
21 changed files with 280 additions and 318 deletions

View File

@@ -3,8 +3,8 @@ import { readSingleton } from '@directus/sdk';
import directus from '@lib/directus';
import BaseLayout from '@layouts/BaseLayout.astro';
import PrimaryCTA from '@components/ui/buttons/PrimaryCTA.astro';
import GoBack from '@/components/ui/buttons/GoBack.astro';
import GoHome from '@/components/ui/buttons/GoHome.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 title="Go Back" />
<PrimaryCTA title="Return Home" url={global.site_url} noArrow addHome />
<GoBack/>
<GoHome url={global.site_url} />
</div>
</div>
</div>

View File

@@ -10,6 +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/ui/buttons/SocialShare.astro';
import { formatDateTime } from '@support/time';
export async function getStaticPaths() {
@@ -162,6 +163,9 @@ const content = marked.parse(post.content);
))
}
</div>
<SocialShare
pageTitle={post.title}
/>
</div>
</div>
</div>

View File

@@ -7,7 +7,8 @@ import HeroSection from '@components/ui/sections/HeroSection.astro';
import FeaturesSection from '@components/ui/sections/FeaturesSection.astro';
import WeatherSection from '@components/ui/sections/WeatherSection.astro';
import LatestPosts from '@components/ui/sections/LatestPosts.astro';
import HeroSectionAlt from '@components/ui/sections/HeroSectionAlt.astro';
import GiteaSection from '@components/ui/sections/GiteaSection.astro';
import homeImg from '@images/autumn_mountain.png';
const global = await directus.request(readSingleton('site_global'));
@@ -55,7 +56,7 @@ const weather = await directus.request(readSingleton('site_weather'));
<LatestPosts />
<HeroSectionAlt
<GiteaSection
title="Follow me on Gitea"
subTitle="I love open source and have my code availabile on my Gitea server."
url="https://gitea.alexlebens.dev"