mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2025-12-15 19:22:21 +01:00
29 lines
982 B
Vue
29 lines
982 B
Vue
<template>
|
|
|
|
<div class="flex text-sm">
|
|
<div class="flex items-center justify-center">
|
|
<div class="w-10 h-10 flex items-center justify-center overflow-hidden">
|
|
<img :src="image" alt="" class="h-full w-full" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex-1 ml-2">
|
|
<p class="font-bold text-base">{{ t("dark.title") }}</p>
|
|
<p v-if="!light_unlocked">{{ t("dark.description") }}</p>
|
|
<p v-if="light_unlocked">{{ t("dark_either.description") }}</p>
|
|
</div>
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { ref } from "vue";
|
|
import { useI18n } from "vue-i18n";
|
|
import image from "@/assets/images/moon.png";
|
|
import { getFoundEasterEggs } from "@/utilities/easteregg_handler";
|
|
import locale from "@/locales/easteregg";
|
|
|
|
const { t } = useI18n({ messages: locale });
|
|
|
|
const light_unlocked = ref(getFoundEasterEggs().includes("picture-bright"));
|
|
</script> |