diff --git a/src/lib/types.ts b/src/lib/types.ts index 797762f..d080142 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -8,6 +8,7 @@ export type Post = { categories: Categories[] published: boolean readTime: number + socialPreview?: string } export type WorkEntry = { diff --git a/src/posts/2024-03-07_apple-vision-pro.md b/src/posts/2024-03-07_apple-vision-pro.md index d92d411..ebe2b46 100644 --- a/src/posts/2024-03-07_apple-vision-pro.md +++ b/src/posts/2024-03-07_apple-vision-pro.md @@ -8,6 +8,7 @@ categories: - XR - Apple published: true +socialPreview: /apple-vision-pro/apple-vision-pro.webp --- ![Apple Vision Pro](/apple-vision-pro/apple-vision-pro.webp) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index fbf7fe1..06f6ff1 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -7,6 +7,10 @@ export let data; + + + +
{#each ['bg-red-400 dark:bg-red-600', 'bg-yellow-400 dark:bg-yellow-600', 'bg-green-400 dark:bg-green-600', 'bg-violet-400 dark:bg-violet-600'] as color}
 
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 2e61c84..80f9dcc 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -4,11 +4,18 @@ + About Me - Andrew Lee - About Me - Andrew Lee + + + + + + +
diff --git a/src/routes/blog/+page.svelte b/src/routes/blog/+page.svelte index 4abe3fc..0a8f288 100644 --- a/src/routes/blog/+page.svelte +++ b/src/routes/blog/+page.svelte @@ -4,7 +4,7 @@ import utc from 'dayjs/plugin/utc'; import timezone from 'dayjs/plugin/timezone'; // dependent on utc plugin import { andrewTz } from '$lib/posts'; - + dayjs.extend(utc); dayjs.extend(timezone); @@ -15,8 +15,12 @@ Blog - Andrew Lee + + + +
diff --git a/src/routes/blog/[slug]/+page.svelte b/src/routes/blog/[slug]/+page.svelte index 3ab25d7..243db84 100644 --- a/src/routes/blog/[slug]/+page.svelte +++ b/src/routes/blog/[slug]/+page.svelte @@ -2,17 +2,24 @@ import dayjs from 'dayjs'; import utc from 'dayjs/plugin/utc'; import timezone from 'dayjs/plugin/timezone'; // dependent on utc plugin + import { andrewTz } from '$lib/posts'; dayjs.extend(utc); dayjs.extend(timezone); - const andrewTz = 'America/Denver'; - export let data; {data.meta.title} - Andrew Lee - + + + +
diff --git a/src/routes/work/+page.svelte b/src/routes/work/+page.svelte index 369f3e4..b0a00ec 100644 --- a/src/routes/work/+page.svelte +++ b/src/routes/work/+page.svelte @@ -124,11 +124,18 @@ + Work - Andrew Lee - Work - Andrew Lee + + + +
diff --git a/static/candrewlee14-social-preview.png b/static/candrewlee14-social-preview.png new file mode 100644 index 0000000..5b3f235 Binary files /dev/null and b/static/candrewlee14-social-preview.png differ