This commit is contained in:
2023-08-11 00:49:30 +02:00
parent 9703d24784
commit 3dcd5f1ef6
33 changed files with 4010 additions and 2699 deletions

13
src/pages/about.vue Normal file
View File

@@ -0,0 +1,13 @@
<script setup>
</script>
<template>
<div>
ABOUT
</div>
</template>
<style>
</style>

View File

@@ -1,13 +1,13 @@
<script setup lang="ts">
import { useThemeStore } from '~/store/theme'
const { swapColor } = useThemeStore()
onMounted(() => swapColor())
const days = ref(0)
useHead({
title: 'Arthur Danjou • Software Engineer and Maths Lover',
})
</script>
<template>
<section>
Hey
<Announcement />
<MainBanner />
<NewsletterCard />
</section>
</template>

View File

@@ -1,42 +0,0 @@
<script setup lang="ts">
import { useThemeStore } from '~/store/theme'
const { getColor, getTheme, swapColor, nextTheme } = useThemeStore()
const { getThemeTextColor, getThemeBackgroundColor } = useTheme()
onMounted(() => swapColor())
const color = useColorMode()
const { query } = useRoute()
const { $trpc } = useNuxtApp()
const user = await $trpc.hello.query({ name: query.name?.toString() })
</script>
<template>
<section>
<h1 mt-16 :class="`${getThemeTextColor}`" duration="1500">
Main page
</h1>
<h1 :class="`${getThemeBackgroundColor}`" duration="1500">
Main Page
</h1>
<div>
Current color : {{ getColor }}
</div>
<div my-12>
<div>Theme symbol : {{ getTheme.symbol }}</div>
<div>Theme Name : {{ getTheme.name }}</div>
<div>Theme colors : {{ getTheme.colors.map((color) => color.charAt(0).toUpperCase() + color.slice(1)).join(', ') }}</div>
</div>
<div @click="nextTheme()">
setNextTheme()
</div>
<div @click="color.preference = color.value === 'dark' ? 'light' : 'dark'">
toggleDarkMode()
</div>
<div my-48 h-32>
{{ user.greeting }}
</div>
</section>
</template>