feat(list): add home button

This commit is contained in:
Kim, Jimin 2025-03-21 13:28:05 +09:00
parent 0c370bab2c
commit e931fcc55e
Signed by: pomp
GPG key ID: D3932F82A0667A3B
3 changed files with 13 additions and 3 deletions

View file

@ -1,4 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
const route = useRoute()
const props = defineProps<{ const props = defineProps<{
highlight: string highlight: string
}>() }>()
@ -7,7 +8,17 @@ const props = defineProps<{
<template> <template>
<div class="slant-shadow"> <div class="slant-shadow">
<div class="slant mb-12 bg-light-card-bg dark:bg-dark-card-bg"> <div class="slant mb-12 bg-light-card-bg dark:bg-dark-card-bg">
<ThemeController class="h-12" /> <div class="flex justify-between p-2 pb-0">
<NuxtLink
v-if="route.path !== '/'"
href="/"
class="flex aspect-square h-12 items-center justify-center rounded-full hover:bg-light-ui-hover dark:hover:bg-dark-ui-hover"
>
<Icon name="material-symbols:home-rounded" size="32" />
</NuxtLink>
<div v-else></div>
<ThemeController class="h-12" />
</div>
<h1 <h1
class="mb-12 text-center text-4xl leading-[3rem] text-slate-800 dark:text-slate-200" class="mb-12 text-center text-4xl leading-[3rem] text-slate-800 dark:text-slate-200"

View file

@ -16,7 +16,7 @@ const icon = computed(() => {
</script> </script>
<template> <template>
<div class="flex justify-end gap-2 p-2"> <div class="flex gap-2">
<Icon :name="icon" size="32" /> <Icon :name="icon" size="32" />
<select <select

View file

@ -49,7 +49,6 @@ const t = useVueTable({
<h1 class="text-4xl font-black"> <h1 class="text-4xl font-black">
pomp's biased and opinionated list of Content creators pomp's biased and opinionated list of Content creators
</h1> </h1>
<NuxtLink href="/" class="underline">Back</NuxtLink>
<div class="p-2"> <div class="p-2">
<table class="border"> <table class="border">
<thead> <thead>