From 817beebb7e2da3f997e114bba3b3ef117df7c682 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 14 Oct 2026 01:40:49 -0400 Subject: switching to alee14.ca; privacy policy tweaks; discord compon. embeds --- astro.config.mjs | 5 +++++ bun.lockb | Bin 256188 -> 285871 bytes package.json | 11 ++++++----- src/components/discord/index.tsx | 18 +++++++++++++++++ src/components/discord/page.tsx | 19 ++++++++++++++++++ src/data/contacts.json | 41 +++++++++++++++++++++++---------------- src/layouts/Default.astro | 30 ++++++++++++++++++++++++++-- src/pages/blog/index.astro | 2 +- src/pages/contacts.astro | 4 ++-- src/pages/index.astro | 23 ++++++++++++---------- src/pages/privacy.md | 21 ++++++++++++-------- src/styles/index.css | 8 ++++---- 12 files changed, 133 insertions(+), 49 deletions(-) create mode 100644 src/components/discord/index.tsx create mode 100644 src/components/discord/page.tsx diff --git a/astro.config.mjs b/astro.config.mjs index 491ac54..24d101a 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -31,4 +31,9 @@ export default defineConfig({ transformers: [] } } + // vite: { + // server: { + // allowedHosts: true + // } + // } }); diff --git a/bun.lockb b/bun.lockb index c2bc450..17f1b3b 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 0bf7919..c251c74 100644 --- a/package.json +++ b/package.json @@ -10,20 +10,21 @@ "astro": "astro" }, "dependencies": { - "@astrojs/react": "6.0.1", + "@astrojs/react": "7.0.1", "@astrojs/rss": "4.0.19", "@astrojs/svelte": "9.0.1", - "@astrojs/vercel": "11.0.2", - "@iconify-json/fa6-brands": "^1.2.6", - "@iconify-json/fa6-solid": "^1.2.4", + "@astrojs/vercel": "11.0.14", + "@iconify-json/fa7-brands": "^1.2.4", + "@iconify-json/fa7-solid": "^1.2.5", "@iconify-json/simple-icons": "^1.2.71", "@react-three/drei": "^10.7.7", "@react-three/fiber": "^9.5.0", "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@types/three": "^0.180.0", - "astro": "7.0.6", + "astro": "7.3.8", "astro-icon": "^1.1.5", + "discord-component-embed": "^1.0.0", "dompurify": "^3.3.1", "markdown-it": "^14.1.1", "marked": "^15.0.12", diff --git a/src/components/discord/index.tsx b/src/components/discord/index.tsx new file mode 100644 index 0000000..eb0890a --- /dev/null +++ b/src/components/discord/index.tsx @@ -0,0 +1,18 @@ +import { Container, Section, TextDisplay, Thumbnail, Separator } from 'discord-component-embed' + +export function HomeEmbed() { + return ( + +
}> + + ## Andrew Lee + + + Hey, I am Andrew Lee, a person who has a passion with computers. + +
+ + ### [LinkedIn](https://linkedin.alee14.ca/) • [GitHub](https://github.alee14.ca/) • [YouTube](https://youtube.alee14.ca/) • [Mastodon](https://mstdn.ca/@alee) • [Instagram](https://instagram.alee14.ca/) +
+ ) +} diff --git a/src/components/discord/page.tsx b/src/components/discord/page.tsx new file mode 100644 index 0000000..55cfa4f --- /dev/null +++ b/src/components/discord/page.tsx @@ -0,0 +1,19 @@ +import { Container, Section, TextDisplay, Thumbnail } from 'discord-component-embed' + +export function PageEmbed() { + return ( + +
}> + + ## PageTitle + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vitae varius risus, non suscipit orci. Integer dictum libero eros, vestibulum gravida dui tincidunt quis. Suspendisse fermentum, lacus at pretium lacinia, orci nisi finibus elit, posuere egestas mi dui at diam. Sed in bibendum mi, quis lacinia odio. Proin eu lacus dui. Morbi viverra tincidunt pharetra. + + + -# Andrew Lee + +
+
+ ) +} diff --git a/src/data/contacts.json b/src/data/contacts.json index ccc6415..1092fa2 100644 --- a/src/data/contacts.json +++ b/src/data/contacts.json @@ -1,65 +1,72 @@ [ { "platform": "LinkedIn", - "icon": "fa6-brands:linkedin", + "icon": "fa7-brands:linkedin", "username": "AndrewLeeCAN", - "url": "https://linkedin.alee14.me", + "url": "https://linkedin.alee14.ca", "mouseover": "LinkedIn" }, { "platform": "GitHub", - "icon": "fa6-brands:github", + "icon": "fa7-brands:github", "username": "Alee14", - "url": "https://github.alee14.me", + "url": "https://github.alee14.ca", + "mouseover": "GitHub" + }, + { + "platform": "Codeberg", + "icon": "fa7-brands:codeberg", + "username": "Alee14", + "url": "https://codeberg.org/Alee14", "mouseover": "GitHub" }, { "platform": "YouTube", - "icon": "fa6-brands:youtube", + "icon": "fa7-brands:youtube", "username": "AndrewLeeCAN", - "url": "https://youtube.alee14.me", + "url": "https://youtube.alee14.ca", "mouseover": "YouTube" }, { "platform": "Bluesky", - "icon": "fa6-brands:bluesky", - "username": "alee14.me", - "url": "https://bsky.app/profile/alee14.me", + "icon": "fa7-brands:bluesky", + "username": "alee14.ca", + "url": "https://bsky.app/profile/alee14.ca", "mouseover": "Bluesky" }, { "platform": "Mastodon", - "icon": "fa6-brands:mastodon", + "icon": "fa7-brands:mastodon", "username": "alee@mstdn.ca", "url": "https://mstdn.ca/@alee", "mouseover": "Mastodon" }, { "platform": "Instagram", - "icon": "fa6-brands:instagram", + "icon": "fa7-brands:instagram", "username": "alee14498", - "url": "https://instagram.alee14.me", + "url": "https://instagram.alee14.ca", "mouseover": "Instagram" }, { "platform": "Reddit", - "icon": "fa6-brands:reddit", + "icon": "fa7-brands:reddit", "username": "alee1449", - "url": "https://reddit.alee14.me", + "url": "https://reddit.alee14.ca", "mouseover": "Reddit" }, { "platform": "Steam", - "icon": "fa6-brands:steam", + "icon": "fa7-brands:steam", "username": "Alee14498", "url": "https://steamcommunity.com/id/Alee14498", "mouseover": "Steam" }, { "platform": "Discord", - "icon": "fa6-brands:discord", + "icon": "fa7-brands:discord", "username": "Andrew Lee Projects", - "url": "https://discord.alee14.me", + "url": "https://discord.alee14.ca", "mouseover": "Discord" }, { diff --git a/src/layouts/Default.astro b/src/layouts/Default.astro index 0d8633e..5f5208a 100644 --- a/src/layouts/Default.astro +++ b/src/layouts/Default.astro @@ -6,6 +6,9 @@ interface Props { const { title = "Andrew Lee", description = "Andrew Lee Website" } = Astro.props; import { ClientRouter } from "astro:transitions"; +import { toComponentEmbedScript } from 'discord-component-embed'; +import { HomeEmbed } from '../components/discord/index.tsx'; +import { PageEmbed } from '../components/discord/page.tsx'; import Navbar from '../components/Navbar.svelte'; const date = new Date(); --- @@ -30,12 +33,22 @@ const date = new Date(); - + + + + {Astro.url.pathname == "/" && + + } + + {Astro.url.pathname !== "/" && + + } +