From 8777b286af9832de002a601fab11c3a3517ea395 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Mon, 4 Sep 2023 13:39:08 +0200 Subject: [PATCH] add announcement --- src/components/Announcement.vue | 25 +++++++++++++++++++++++++ src/pages/index.vue | 1 + src/pages/talents.vue | 26 ++++++-------------------- src/pages/work.vue | 6 ++---- src/pages/writing/index.vue | 6 ++---- 5 files changed, 36 insertions(+), 28 deletions(-) create mode 100644 src/components/Announcement.vue diff --git a/src/components/Announcement.vue b/src/components/Announcement.vue new file mode 100644 index 0000000..6443474 --- /dev/null +++ b/src/components/Announcement.vue @@ -0,0 +1,25 @@ + + + + + diff --git a/src/pages/index.vue b/src/pages/index.vue index e229b48..bc461e0 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -6,6 +6,7 @@ useHead({ diff --git a/src/pages/talents.vue b/src/pages/talents.vue index 3719ae5..ddb434c 100644 --- a/src/pages/talents.vue +++ b/src/pages/talents.vue @@ -9,9 +9,7 @@ const { getCategories, talents, isFavorite, toggleFavorite, switchCategory, pend getCategories.value?.forEach(category => categories.value.push({ label: category.name, slug: category.slug })) const appConfig = useAppConfig() -function getColor() { - return `text-${appConfig.ui.primary}-500` -} +const getColor = computed(() => `text-${appConfig.ui.primary}-500`) - diff --git a/src/pages/work.vue b/src/pages/work.vue index 19166be..d2461ba 100644 --- a/src/pages/work.vue +++ b/src/pages/work.vue @@ -1,8 +1,6 @@