diff --git a/app/components/landing/Hero.vue b/app/components/landing/Hero.vue index 43df183..6b098ed 100644 --- a/app/components/landing/Hero.vue +++ b/app/components/landing/Hero.vue @@ -164,6 +164,8 @@ defineProps<{ width="234" height="234" class="aspect-square object-cover transition-all duration-300 ease-out group-hover:blur-[2px]" + :class="projectImageAnchorClass(project.imageAnchor)" + :modifiers="projectImageAnchorModifiers(project.imageAnchor)" :light="project.image!" :dark="project.imageDark || project.image!" :alt="project.title" diff --git a/app/pages/projects.vue b/app/pages/projects.vue index bd73ada..c457395 100644 --- a/app/pages/projects.vue +++ b/app/pages/projects.vue @@ -107,6 +107,7 @@ defineOgImage('Portfolio', { title, description }) :dark="project.imageDark || project.image!" :alt="project.title" class="object-cover w-full h-48 transition-all duration-300 ease-out group-hover:blur-[2px]" + :class="projectImageAnchorClass(project.imageAnchor)" />
z.object({ @@ -58,6 +59,7 @@ export default defineContentConfig({ description: z.string().nonempty(), image: z.string().editor({ input: 'media' }).optional(), imageDark: z.string().editor({ input: 'media' }).optional(), + imageAnchor: z.enum(projectImageAnchors).optional(), url: z.string().nonempty(), tags: z.array(z.string()), year: z.number() diff --git a/content/projects/whats-the-point.yml b/content/projects/whats-the-point.yml index b17742d..108de7c 100644 --- a/content/projects/whats-the-point.yml +++ b/content/projects/whats-the-point.yml @@ -7,6 +7,7 @@ description: icon: i-lucide-spade image: /projects/whats-the-point-light.png imageDark: /projects/whats-the-point-dark.png +imageAnchor: left url: "https://wtp.godden.dev/" tags: ["UI Design", "Front-End Dev"] year: 2025