This commit is contained in:
2024-08-14 15:34:06 +02:00
parent 34937fc3c9
commit 2d64c753cc
8 changed files with 191 additions and 20 deletions

View File

@@ -3,15 +3,28 @@ useHead({
link: [{ rel: 'icon', type: 'image/png', href: '/favicon.ico' }],
title: 'Spanish Learning Process • By Arthur Danjou',
})
const mode = useCookie('mode')
mode.value = mode.value || 'Spanish'
</script>
<template>
<div>
<NuxtLoadingIndicator />
<UContainer>
<div class="bg-neutral-900 rounded-lg max-h-[96vh] h-[96vh] overflow-scroll p-4">
<div class="my-4 flex items-center justify-between">
<p>Mode: {{ mode }}</p>
<UButton
:color="mode === 'Spanish' ? 'cyan' : 'yellow'"
variant="solid"
:label="mode === 'Spanish' ? 'Switch to French' : 'Switch to Spanish'"
@click="mode === 'Spanish' ? mode = 'French' : mode = 'Spanish'"
/>
</div>
<div class="bg-neutral-900 rounded-lg max-h-[90vh] h-[90vh] overflow-scroll p-4">
<Verbs />
<Words />
<Demonstratifs />
<Modals />
<Terminaisons />
<Prononciation />