diff --git a/astro.config.ts b/astro.config.ts index 1eb7f9f..b03b105 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -2,13 +2,16 @@ import { defineConfig, passthroughImageService } from "astro/config"; import sitemap from "@astrojs/sitemap"; import rehypeExternalLinks from "rehype-external-links"; import mdx from "@astrojs/mdx"; -import tailwind from "@astrojs/tailwind"; +import tailwindcss from "@tailwindcss/vite"; import icon from "astro-icon"; // https://astro.build/config export default defineConfig({ site: "https://troylusty.com", - integrations: [sitemap(), mdx(), tailwind(), icon()], + integrations: [sitemap(), mdx(), icon()], + vite: { + plugins: [tailwindcss()], + }, output: "static", markdown: { rehypePlugins: [ diff --git a/bun.lockb b/bun.lockb index a3bac85..bcd69c4 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index b943b07..5853f92 100644 --- a/package.json +++ b/package.json @@ -12,24 +12,24 @@ }, "dependencies": { "@astrojs/check": "0.9.4", - "@astrojs/mdx": "^4.0.6", + "@astrojs/mdx": "^4.0.7", "@astrojs/rss": "^4.0.11", "@astrojs/sitemap": "3.2.1", - "@astrojs/tailwind": "^5.1.4", "@fontsource-variable/outfit": "^5.1.1", "@fontsource-variable/red-hat-mono": "^5.1.1", "@fontsource/borel": "^5.1.1", - "astro": "^5.1.7", + "@tailwindcss/vite": "^4.0.0", + "astro": "^5.1.9", "astro-icon": "^1.1.5", "rehype-external-links": "^3.0.0", - "tailwindcss": "^3.4.17", + "tailwindcss": "^4.0.0", "typescript": "^5.7.3" }, "devDependencies": { - "@iconify-json/mdi": "^1.2.2", - "@iconify-json/simple-icons": "^1.2.20", + "@iconify-json/mdi": "^1.2.3", + "@iconify-json/simple-icons": "^1.2.21", "@tailwindcss/typography": "^0.5.16", - "@types/node": "^22.10.7", + "@types/node": "^22.10.9", "prettier": "^3.4.2", "prettier-plugin-astro": "^0.14.1", "prettier-plugin-tailwindcss": "^0.6.10" diff --git a/src/components/Accordion.astro b/src/components/Accordion.astro index bfee392..61d727e 100644 --- a/src/components/Accordion.astro +++ b/src/components/Accordion.astro @@ -16,18 +16,18 @@ const { institution, qualification, grades, isOpen = false } = Astro.props; -

+

{qualification}

-

+

{institution}

    diff --git a/src/components/Article.astro b/src/components/Article.astro index 6a611b6..e2338d9 100644 --- a/src/components/Article.astro +++ b/src/components/Article.astro @@ -30,14 +30,14 @@ const listFormatter = new Intl.ListFormat("en-GB", { >

    {article.data.title}{article.data.description}{article.data.description}

    @@ -79,7 +79,7 @@ const listFormatter = new Intl.ListFormat("en-GB", { }
    -
    +
    diff --git a/src/components/Button.astro b/src/components/Button.astro index aa1c22f..122acd0 100644 --- a/src/components/Button.astro +++ b/src/components/Button.astro @@ -9,7 +9,7 @@ const { href, link } = Astro.props;
    {link}
    diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 54cf814..45a3f04 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -4,27 +4,31 @@ import Link from "@components/Link.astro"; import { Icon } from "astro-icon/components"; --- -