Files
drop/pages/index.vue
T
DecDuck 1f575b2bc0 small fixes & SSR disabled
SSR was causing weird issues where error pages would flash because the
user wasn't logged in. I'm disabling it for now, but I will eventually
look into ways to fix the issue and re-enable it.
2024-10-17 21:04:32 +11:00

19 lines
511 B
Vue

<template>
<div class="px-12 py-4">
<h1 class="text-zinc-100 text-2xl font-bold font-display">Newly added</h1>
<NuxtLink class="text-blue-600 font-semibold">Explore more &rarr;</NuxtLink>
<div class="mt-4 grid grid-cols-8 gap-8">
<GamePanel v-for="i in 8" :game="games[i - 1]" />
</div>
</div>
</template>
<script setup lang="ts">
useHead({
title: "Home",
});
const headers = useRequestHeaders(["cookie"]);
const games = await $fetch("/api/v1/games/front", { headers });
</script>