From 26d0c1a306e40c34e0556f80219a623dd61138c5 Mon Sep 17 00:00:00 2001 From: Lightling Date: Fri, 15 Mar 2024 02:21:34 -0400 Subject: [PATCH] begin working on project viewer breaks stylesheet loading currently, need to determine better way to handle configuring dynamic routes like this --- src/components/projects/project-tile.vue | 8 +++- src/routes.ts | 10 +++++ src/views/project-list.vue | 2 +- src/views/project-view.vue | 47 ++++++++++++++++++++++++ 4 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 src/views/project-view.vue diff --git a/src/components/projects/project-tile.vue b/src/components/projects/project-tile.vue index 2c863a1..8f13b19 100644 --- a/src/components/projects/project-tile.vue +++ b/src/components/projects/project-tile.vue @@ -4,12 +4,15 @@ import { marked } from 'marked' import { getFormattedPeriod } from 'src/utilities/dom' import type { ProjectListingInfo } from 'src/types/projects/project' +import { getCurrentRoute } from 'src/utilities/vuetils' const props = defineProps<{ id: string info: ProjectListingInfo }>() +const currentRoute = getCurrentRoute() + const { thumbnailBackground, thumbnailBackgroundSize } = props.info const period = computed(() => (!!props.info.period ? getFormattedPeriod(props.info.period) @@ -22,8 +25,9 @@ const title = computed(() => marked.parse(props.info.title || ''))