diff --git a/README.md b/README.md index f5db2a2..3fd95b8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Nuxt 3 Minimal Starter +# Portfolio 2023 -Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more. +A portfolio site built in [Nuxt.js](https://nuxtjs.org) and [Tailwind CSS](https://tailwindcss.com). ## Setup diff --git a/components/project/ProjectShow.vue b/components/project/ProjectShow.vue index d729b09..f8da19f 100644 --- a/components/project/ProjectShow.vue +++ b/components/project/ProjectShow.vue @@ -40,7 +40,7 @@
-

{{ project.title }}

+

{{ project.title }}

Date created

@@ -143,7 +143,6 @@ const props = defineProps({ }) const {getFullUrl} = useApiData(); -const {jsonToHtml} = useSerialize(); const formatDate = (date: string) => { return new Date(date).toLocaleDateString('en-GB', { year: 'numeric', month: 'short' }); diff --git a/pages/about.vue b/pages/about.vue index 766ce1b..682d1d9 100644 --- a/pages/about.vue +++ b/pages/about.vue @@ -3,6 +3,17 @@

+ +
+
+ +
+
+
+ + Error fetching about section + +
@@ -40,11 +51,16 @@ import {FavouriteSection} from "~/types/Favourites"; import {usePageSetup} from "~/composables/usePageSetup"; import {useApiData} from "~/composables/useApiData"; -const { fetchData} = useApiData(); +const { fetchData, fetchItem} = useApiData(); const { setupPageHead, fetchPageData } = usePageSetup(); +type aboutSection = { + intro_html: string; +} + // Fetch about content const { data: allSections, error: error} = await fetchData('/favourite-sections'); +const { data: aboutData, error: aboutError} = await fetchItem('/globals/about'); // Fetch page content const {pageData, pageError} = await fetchPageData(); diff --git a/tailwind.config.js b/tailwind.config.js index 6f26be8..1d29b6d 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -75,7 +75,7 @@ export default { typography: ({ theme }) => ({ polo: { css: { - '--tw-prose-body': theme('colors.zinc[800]'), + '--tw-prose-body': theme('colors.zinc[700]'), '--tw-prose-headings': theme('colors.evening-sea[900]'), '--tw-prose-lead': theme('colors.zinc[700]'), '--tw-prose-links': theme('colors.lunar[700]'),