feat: move improved components out of ui folder

This commit is contained in:
2026-02-14 23:10:43 -06:00
parent a09a4ee240
commit 47a637353c
34 changed files with 30 additions and 30 deletions

View File

@@ -1,6 +1,6 @@
---
import BrandLogo from '@components/ui/logos/BrandLogo.astro';
import ThemeToggle from '@components/ui/buttons/ThemeToggle.astro';
import ThemeToggle from '@components/buttons/ThemeToggle.astro';
import { NavigationLinks } from '@/config';
const pathname = new URL(Astro.request.url).pathname;

View File

@@ -1,5 +1,5 @@
---
import GoLinkPrimary from '@components/ui/buttons/GoLinkPrimary.astro';
import GoLinkPrimary from '@components/buttons/GoLinkPrimary.astro';
import Image from '@components/ui/images/Image.astro';
interface Props {

View File

@@ -1,5 +1,5 @@
---
import GoLinkPrimary from '@components/ui/buttons/GoLinkPrimary.astro';
import GoLinkPrimary from '@components/buttons/GoLinkPrimary.astro';
import Image from '@components/ui/images/Image.astro';
interface Props {

View File

@@ -4,7 +4,7 @@ import { readItems } from '@directus/sdk';
import type { Application } from '@lib/directusTypes';
import directus from '@lib/directus';
import HighlightsCard from '@components/ui/cards/HighlightsCard.astro';
import HighlightsCard from '@components/cards/HighlightsCard.astro';
const applications = ((await directus.request(
readItems('site_applications' as any, {

View File

@@ -5,7 +5,7 @@ import type { Education, Certificate} from '@lib/directusTypes';
import directus from '@lib/directus';
import { getDirectusImageURL } from '@lib/directusFunctions';
import EducationCard from '@components/ui/cards/EducationCard.astro';
import EducationCard from '@components/cards/EducationCard.astro';
const educations = ((await directus.request(
readItems('site_education' as any, {

View File

@@ -2,7 +2,7 @@
import { readSingleton } from '@directus/sdk';
import directus from '@lib/directus';
import FeaturesCard from '@components/ui/cards/FeaturesCard.astro';
import FeaturesCard from '@components/cards/FeaturesCard.astro';
const global = await directus.request(readSingleton('site_global'));
---

View File

@@ -1,5 +1,5 @@
---
import GiteaButton from '@components/ui/buttons/GiteaButton.astro';
import GiteaButton from '@components/buttons/GiteaButton.astro';
const { title, subTitle, url } = Astro.props;
const btnTitle = 'Continue to Gitea';

View File

@@ -1,5 +1,5 @@
---
import GoLinkPrimary from '@components/ui/buttons/GoLinkPrimary.astro';
import GoLinkPrimary from '@components/buttons/GoLinkPrimary.astro';
interface Props {
title: string;

View File

@@ -1,6 +1,6 @@
---
import GoLinkPrimary from '@components/ui/buttons/GoLinkPrimary.astro';
import GoLinkSecondary from '@components/ui/buttons/GoLinkSecondary.astro';
import GoLinkPrimary from '@components/buttons/GoLinkPrimary.astro';
import GoLinkSecondary from '@components/buttons/GoLinkSecondary.astro';
import Image from '@components/ui/images/Image.astro';
const { title, subTitle, primaryBtn, primaryBtnURL, secondaryBtn, secondaryBtnURL, src, alt } =

View File

@@ -4,7 +4,7 @@ import { readItems } from '@directus/sdk';
import type { Project } from '@lib/directusTypes';
import directus from '@lib/directus';
import HighlightsCard from '@components/ui/cards/HighlightsCard.astro';
import HighlightsCard from '@components/cards/HighlightsCard.astro';
const projects = ((await directus.request(
readItems('site_projects' as any, {

View File

@@ -1,5 +1,5 @@
---
import WeatherCard from '@components/ui/cards/WeatherCard.astro';
import WeatherCard from '@components/cards/WeatherCard.astro';
import { getFiveDayForecast } from '@support/weather';
const { latitude = "44.95", longitude = "-93.09", cityName = "St. Paul, Minnesota", timezone = "America/Chicago" } = Astro.props;

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/ui/buttons/GoBack.astro';
import GoHome from '@/components/ui/buttons/GoHome.astro';
import GoBack from '@/components/buttons/GoBack.astro';
import GoHome from '@/components/buttons/GoHome.astro';
const global = await directus.request(readSingleton('site_global'));
---

View File

@@ -3,11 +3,11 @@ import { readSingleton } from '@directus/sdk';
import directus from '@lib/directus';
import BaseLayout from '@layouts/BaseLayout.astro';
import HeroSection from '@components/ui/sections/HeroSection.astro';
import Experience from '@components/ui/sections/Experience.astro';
import EducationSection from '@components/ui/sections/EducationSection.astro';
import ProjectSection from '@components/ui/sections/ProjectSection.astro';
import SkillsSlider from '@components/ui/sections/SkillsSlider.astro';
import HeroSection from '@components/sections/HeroSection.astro';
import Experience from '@components/sections/Experience.astro';
import EducationSection from '@components/sections/EducationSection.astro';
import ProjectSection from '@components/sections/ProjectSection.astro';
import SkillsSlider from '@components/sections/SkillsSlider.astro';
import portraitImg from '@images/portrait.avif';

View File

@@ -3,8 +3,8 @@ import { readSingleton } from '@directus/sdk';
import directus from '@lib/directus';
import BaseLayout from '@layouts/BaseLayout.astro';
import HeroSection from '@components/ui/sections/HeroSection.astro';
import ApplicationSection from '@components/ui/sections/ApplicationSection.astro';
import HeroSection from '@components/sections/HeroSection.astro';
import ApplicationSection from '@components/sections/ApplicationSection.astro';
import applicationImg from '@images/cedar_tree.png';

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/ui/buttons/SocialShare.astro';
import SocialShare from '@components/buttons/SocialShare.astro';
import { formatDateTime } from '@support/time';
export async function getStaticPaths() {

View File

@@ -7,7 +7,7 @@ import directus from '@lib/directus';
import BaseLayout from '@layouts/BaseLayout.astro';
import BlogSelectedArticles from '@components/blog/BlogSelectedArticles.astro';
import BlogRecentArticles from '@components/blog/BlogRecentArticles.astro';
import HeroSection from '@components/ui/sections/HeroSection.astro';
import HeroSection from '@components/sections/HeroSection.astro';
import blogImg from '@images/autumn_tree.png';
const global = await directus.request(readSingleton('site_global'));

View File

@@ -6,7 +6,7 @@ import directus from '@lib/directus';
import type { Post } from '@lib/directusTypes';
import BaseLayout from '@layouts/BaseLayout.astro';
import BlogCard from '@components/blog/BlogCard.astro';
import HeaderSection from '@components/ui/sections/HeaderSection.astro';
import HeaderSection from '@components/sections/HeaderSection.astro';
export async function getStaticPaths() {
const categories = await getCollection('categories');

View File

@@ -7,7 +7,7 @@ import type { Post } from '@lib/directusTypes';
import directus from '@lib/directus';
import BaseLayout from '@layouts/BaseLayout.astro';
import BlogCategoryCard from '@components/blog/BlogCategoryCard.astro';
import HeroSection from '@components/ui/sections/HeroSection.astro';
import HeroSection from '@components/sections/HeroSection.astro';
import { timeago } from '@support/time';
import categoryImg from '@images/autumn_bench.png';

View File

@@ -3,11 +3,11 @@ import { readSingleton } from '@directus/sdk';
import directus from '@lib/directus';
import BaseLayout from '@layouts/BaseLayout.astro';
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 GiteaSection from '@components/ui/sections/GiteaSection.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 GiteaSection from '@components/sections/GiteaSection.astro';
import homeImg from '@images/autumn_mountain.png';