This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
CrunchyDL/pages/settings.vue

38 lines
908 B
Vue
Raw Normal View History

2024-04-16 20:20:30 +02:00
<template>
2024-04-30 15:28:36 +02:00
<div class="h-screen bg-[#111111] flex flex-col p-5 text-white" style="-webkit-app-region: drag">
<div class="flex flex-row items-center justify-center">
<div class="text-2xl">Settings</div>
2024-04-16 20:20:30 +02:00
</div>
2024-04-30 15:28:36 +02:00
<div class="flex flex-row mt-2" style="-webkit-app-region: no-drag">
<button
v-for="(option, index) in options"
@click="activeIndex = index"
class="w-full flex items-center justify-center py-2 border-b-2 transition-all"
:class="activeIndex === index ? 'border-[#ce6104]' : 'border-[#ce620428]'"
>
{{ option }}
</button>
</div>
</div>
2024-04-16 20:20:30 +02:00
</template>
<script lang="ts" setup>
2024-04-30 15:28:36 +02:00
const options = ref(['Main', 'Output', 'Naming', 'Crunchyroll', 'About'])
const activeIndex = ref(0)
2024-04-16 20:20:30 +02:00
</script>
2024-04-30 03:20:47 +02:00
<style>
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
body {
animation: fadein 0.5s;
}
</style>