1f575b2bc0
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.
19 lines
511 B
Vue
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 →</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>
|