diff --git a/app/components/Settings/BottomScreen/Menus/User/Birthday.vue b/app/components/Settings/BottomScreen/Menus/User/Birthday.vue index 682d5b3..15983cd 100644 --- a/app/components/Settings/BottomScreen/Menus/User/Birthday.vue +++ b/app/components/Settings/BottomScreen/Menus/User/Birthday.vue @@ -5,10 +5,6 @@ import gsap from "gsap"; const store = useSettingsStore(); const confirmationModal = useConfirmationModal(); -const BIRTHDAY_DAY = 25; -const BIRTHDAY_MONTH = 4; -const BIRTHDAY_YEAR = 2002; - const isAnimating = ref(true); const bLabel = ref($t("common.goBack")); diff --git a/app/pages/gallery.vue b/app/pages/gallery.vue index 776d163..45fcd72 100644 --- a/app/pages/gallery.vue +++ b/app/pages/gallery.vue @@ -6,7 +6,17 @@ import gsap from "gsap"; const { t } = useI18n(); useHead({ - title: computed(() => `${t("screens.gallery")} | Pihkaal - Developper`), + title: computed(() => `${t("screens.gallery")} | Pihkaal - Developer`), + link: [{ rel: "canonical", href: "https://pihkaal.me/gallery" }], +}); +const GALLERY_DESCRIPTION = + "Macro photography by Pihkaal: plants, insects and arachnids from Brittany, France."; +useSeoMeta({ + description: GALLERY_DESCRIPTION, + ogDescription: GALLERY_DESCRIPTION, + twitterDescription: GALLERY_DESCRIPTION, + ogUrl: "https://pihkaal.me/gallery", + ogTitle: computed(() => `${t("screens.gallery")} | Pihkaal - Developer`), }); const { data: images } = await useAsyncData( diff --git a/app/spa-loading-template.html b/app/spa-loading-template.html new file mode 100644 index 0000000..b063b6e --- /dev/null +++ b/app/spa-loading-template.html @@ -0,0 +1,38 @@ +
+

Stevan Corre (pihkaal) - Full-Stack Developer

+

+ Developer from Brittany, France. I love programming and taking photos. This + portfolio is an interactive 3D Nintendo DS. +

+

Projects and experiences

+ +

Contact

+ +
diff --git a/app/utils/birthday.ts b/app/utils/birthday.ts new file mode 100644 index 0000000..16c625e --- /dev/null +++ b/app/utils/birthday.ts @@ -0,0 +1,10 @@ +export const BIRTHDAY_DAY = 25; +export const BIRTHDAY_MONTH = 4; +export const BIRTHDAY_YEAR = 2002; + +export const getAge = (now = new Date()) => { + const hadBirthdayThisYear = + now.getMonth() > BIRTHDAY_MONTH - 1 || + (now.getMonth() === BIRTHDAY_MONTH - 1 && now.getDate() >= BIRTHDAY_DAY); + return now.getFullYear() - BIRTHDAY_YEAR - (hadBirthdayThisYear ? 0 : 1); +}; diff --git a/nuxt.config.ts b/nuxt.config.ts index c660d42..4b695a5 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,6 +1,7 @@ +import { getAge } from "./app/utils/birthday"; + const TITLE = "Pihkaal - Developer"; -const DESCRIPTION = - "23yo developer from Brittany. I love programming and taking photos."; +const DESCRIPTION = `${getAge()}yo developer from Brittany. I love programming and taking photos.`; const URL = "https://pihkaal.me"; const IMAGE = `${URL}/thumbnail.png`; @@ -27,7 +28,7 @@ export default defineNuxtConfig({ ], meta: [ { name: "description", content: DESCRIPTION }, - { name: "author", content: "pihkaal" }, + { name: "author", content: "Stevan Corre" }, { name: "robots", content: "index, follow" }, { name: "theme-color", content: "#181818" }, { property: "og:type", content: "website" }, @@ -56,7 +57,8 @@ export default defineNuxtConfig({ innerHTML: JSON.stringify({ "@context": "https://schema.org", "@type": "Person", - name: "pihkaal", + name: "Stevan Corre", + alternateName: "pihkaal", url: URL, email: "hello@pihkaal.me", jobTitle: "Full-Stack Developer", @@ -76,7 +78,7 @@ export default defineNuxtConfig({ name: TITLE, url: URL, description: DESCRIPTION, - author: { "@type": "Person", name: "pihkaal", url: URL }, + author: { "@type": "Person", name: "Stevan Corre", url: URL }, }), }, ], diff --git a/public/robots.txt b/public/robots.txt index 0ad279c..8817af9 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,2 +1,4 @@ User-Agent: * Disallow: + +Sitemap: https://pihkaal.me/sitemap.xml diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..49a8b61 --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,9 @@ + + + + https://pihkaal.me/ + + + https://pihkaal.me/gallery + +