Skip to content

Commit 4876ed8

Browse files
committed
Added end page
1 parent 5725187 commit 4876ed8

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/lib/layout/StatsView.svelte

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
import PageContainer from "$lib/comp/PageContainer.svelte";
44
import SongList from "$lib/comp/SongList.svelte";
55
import SongView from "$lib/comp/SongView.svelte";
6+
import LinkButton from "$lib/LinkButton.svelte";
67
import type { Stats } from "$lib/stats";
78
89
export let stats: Stats;
910
1011
let currentPage = 0;
11-
const pageCount = 3;
12+
const pageCount = 4;
1213
1314
function prev() {
1415
if(currentPage > 0) {
@@ -66,8 +67,16 @@
6667
<h1>Your favorite artists of all time</h1>
6768
<ArtistList artists={stats.getArtists(true).slice(0, 3)} />
6869
{/snippet}
70+
71+
{#snippet pageEnd()}
72+
<h1>That's all, see you again!</h1>
73+
74+
<div style="text-align: center;">
75+
<LinkButton text="Home page" />
76+
</div>
77+
{/snippet}
6978

70-
<PageContainer page={currentPage} pages={[pageIntro, pageFavSongsAllTime, pageFavArtistsAllTime]}>
79+
<PageContainer page={currentPage} pages={[pageIntro, pageFavSongsAllTime, pageFavArtistsAllTime, pageEnd]}>
7180
</PageContainer>
7281

7382
</div>

0 commit comments

Comments
 (0)