mirror of
https://github.com/ArthurDanjou/artdanj-resume.git
synced 2026-01-27 18:55:16 +01:00
Lint project
This commit is contained in:
@@ -1,30 +1,3 @@
|
||||
<template>
|
||||
<div class="fixed top-2 right-1 sm:(top-4 right-4) grid grid-rows-2 gap-y-2 text-center">
|
||||
<div
|
||||
class="p-1 hover:bg-gray-300 dark:hover:bg-gray-800 duration-300 cursor-pointer rounded-full"
|
||||
@click.prevent="toggleDark"
|
||||
>
|
||||
<SunIcon v-if="isDark" />
|
||||
<MoonIcon v-else />
|
||||
</div>
|
||||
<div
|
||||
class="p-1 hover:bg-gray-300 dark:hover:bg-gray-800 duration-300 cursor-pointer rounded-full transform"
|
||||
:class="{'rotate-180': scrollPosition > 100}"
|
||||
@click.prevent="teleport"
|
||||
>
|
||||
<DownArrowIcon />
|
||||
</div>
|
||||
<div @click.prevent="switchLanguage">
|
||||
<div v-if="locale === 'fr'" class="text-right text-xl px-1 hover:bg-gray-300 dark:hover:bg-gray-800 duration-300 cursor-pointer rounded-full">
|
||||
🇬🇧
|
||||
</div>
|
||||
<div v-else class="text-right text-xl px-1 hover:bg-gray-300 dark:hover:bg-gray-800 duration-300 cursor-pointer rounded-full">
|
||||
🇫🇷
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { isDark, toggleDark } from '~/composables'
|
||||
@@ -55,3 +28,30 @@ onUnmounted(() => {
|
||||
window.removeEventListener('scroll', updateScroll)
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="fixed top-2 right-1 sm:(top-4 right-4) grid grid-rows-2 gap-y-2 text-center">
|
||||
<div
|
||||
class="p-1 hover:bg-gray-300 dark:hover:bg-gray-800 duration-300 cursor-pointer rounded-full"
|
||||
@click.prevent="toggleDark"
|
||||
>
|
||||
<SunIcon v-if="isDark" />
|
||||
<MoonIcon v-else />
|
||||
</div>
|
||||
<div
|
||||
class="p-1 hover:bg-gray-300 dark:hover:bg-gray-800 duration-300 cursor-pointer rounded-full transform"
|
||||
:class="{ 'rotate-180': scrollPosition > 100 }"
|
||||
@click.prevent="teleport"
|
||||
>
|
||||
<DownArrowIcon />
|
||||
</div>
|
||||
<div @click.prevent="switchLanguage">
|
||||
<div v-if="locale === 'fr'" class="text-right text-xl px-1 hover:bg-gray-300 dark:hover:bg-gray-800 duration-300 cursor-pointer rounded-full">
|
||||
🇬🇧
|
||||
</div>
|
||||
<div v-else class="text-right text-xl px-1 hover:bg-gray-300 dark:hover:bg-gray-800 duration-300 cursor-pointer rounded-full">
|
||||
🇫🇷
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user