mirror of
https://github.com/ArthurDanjou/spanish-learner.git
synced 2026-01-14 12:14:39 +01:00
Working
This commit is contained in:
15
app/app.vue
15
app/app.vue
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user