mirror of
https://github.com/BlossomiShymae/clean-cuts.git
synced 2025-12-06 18:20:47 +01:00
Add back to top button
This commit is contained in:
13
components/BackToTopButton.vue
Normal file
13
components/BackToTopButton.vue
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
const scrollTop = () => {
|
||||||
|
window.scrollTo(0, 0);
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<NuxtLink class="btn app-background text-light" @click="scrollTop">
|
||||||
|
<MaterialIcon name="arrow-up" :size="24"/> Back to top
|
||||||
|
</NuxtLink>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
@@ -15,6 +15,7 @@ watch(currentLocale, async () => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<div class="d-flex flex-column gap-4">
|
||||||
<div class="d-flex flex-row flex-wrap gap-4 justify-content-center">
|
<div class="d-flex flex-row flex-wrap gap-4 justify-content-center">
|
||||||
<div v-for="summary in summaries" :id="`${summary.id}`"
|
<div v-for="summary in summaries" :id="`${summary.id}`"
|
||||||
style="width: 200px;"
|
style="width: 200px;"
|
||||||
@@ -35,4 +36,8 @@ watch(currentLocale, async () => {
|
|||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="d-flex justify-content-center w-100">
|
||||||
|
<BackToTopButton/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -23,7 +23,7 @@ const filteredCherryAugments = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="d-flex flex-column gap-2">
|
<div class="d-flex flex-column gap-4">
|
||||||
<div class="d-flex flex-row justify-content-end gap-2">
|
<div class="d-flex flex-row justify-content-end gap-2">
|
||||||
<Card class="d-flex justify-content-center align-items-center me-auto">
|
<Card class="d-flex justify-content-center align-items-center me-auto">
|
||||||
<span>{{ cherryAugments.length }} augments</span>
|
<span>{{ cherryAugments.length }} augments</span>
|
||||||
@@ -50,5 +50,9 @@ const filteredCherryAugments = computed(() => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="d-flex justify-content-center w-100">
|
||||||
|
<BackToTopButton/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -57,5 +57,9 @@ const p = computed(() => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="d-flex justify-content-center w-100">
|
||||||
|
<BackToTopButton/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -10,6 +10,7 @@ watch(currentLocale, async () => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<div class="d-flex flex-column gap-4">
|
||||||
<div class="d-flex flex-row flex-wrap gap-2 justify-content-center">
|
<div class="d-flex flex-row flex-wrap gap-2 justify-content-center">
|
||||||
<div v-for="item in items" :id="`${item.id}`"
|
<div v-for="item in items" :id="`${item.id}`"
|
||||||
style="width: 64px;"
|
style="width: 64px;"
|
||||||
@@ -27,4 +28,9 @@ watch(currentLocale, async () => {
|
|||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="d-flex justify-content-center w-100">
|
||||||
|
<BackToTopButton/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -46,7 +46,7 @@ watch(currentLocale, async() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="d-flex flex-column gap-3">
|
<div class="d-flex flex-column gap-4">
|
||||||
<div class="btn-group flex-wrap gap-2">
|
<div class="btn-group flex-wrap gap-2">
|
||||||
<a class="btn btn-outline-dark" @click="clearFilter()">
|
<a class="btn btn-outline-dark" @click="clearFilter()">
|
||||||
<MaterialIcon name="backspace-outline" :size="24" />
|
<MaterialIcon name="backspace-outline" :size="24" />
|
||||||
@@ -89,5 +89,9 @@ watch(currentLocale, async() => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="d-flex justify-content-center w-100">
|
||||||
|
<BackToTopButton/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -51,5 +51,8 @@ const p = computed(() => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="d-flex justify-content-center w-100">
|
||||||
|
<BackToTopButton/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -59,5 +59,9 @@ const p = computed(() => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="d-flex justify-content-center w-100">
|
||||||
|
<BackToTopButton/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -52,5 +52,9 @@ const p = computed(() => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="d-flex justify-content-center w-100">
|
||||||
|
<BackToTopButton/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -54,5 +54,8 @@ const p = computed(() => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="d-flex justify-content-center w-100">
|
||||||
|
<BackToTopButton/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -30,7 +30,7 @@ const rarities = {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="d-flex flex-column gap-2">
|
<div class="d-flex flex-column gap-4">
|
||||||
<div class="d-flex gap-2 justify-content-end">
|
<div class="d-flex gap-2 justify-content-end">
|
||||||
<Card class="d-flex justify-content-center align-items-center me-auto">
|
<Card class="d-flex justify-content-center align-items-center me-auto">
|
||||||
<span>{{ skins.length }} skins</span>
|
<span>{{ skins.length }} skins</span>
|
||||||
@@ -66,5 +66,9 @@ const rarities = {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="d-flex justify-content-center w-100">
|
||||||
|
<BackToTopButton/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
Reference in New Issue
Block a user