Renamed 404 and home with Page suffix

This commit is contained in:
2022-08-12 23:45:47 +02:00
parent 3111513458
commit 29dfe55974
2 changed files with 2 additions and 2 deletions

39
src/pages/HomePage.vue Normal file
View File

@@ -0,0 +1,39 @@
<template>
<section>
<LandingBanner />
<div v-for="list in lists" :key="list.title">
<ResultsSection
:api-function="list.apiFunction"
:title="list.title"
:short-list="true"
/>
</div>
</section>
</template>
<script setup lang="ts">
import LandingBanner from "@/components/LandingBanner.vue";
import ResultsSection from "@/components/ResultsSection.vue";
import { getRequests, getTmdbMovieListByName } from "../api";
import type ISection from "../interfaces/ISection";
const lists: ISection[] = [
{
title: "Requests",
apiFunction: getRequests
},
{
title: "Now playing",
apiFunction: () => getTmdbMovieListByName("now_playing")
},
{
title: "Upcoming",
apiFunction: () => getTmdbMovieListByName("upcoming")
},
{
title: "Popular",
apiFunction: () => getTmdbMovieListByName("popular")
}
];
</script>