Skip to content

Commit

Permalink
minor adjustments to frontpage
Browse files Browse the repository at this point in the history
  • Loading branch information
zaanposni committed Oct 27, 2024
1 parent f9947da commit 43c109b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/psaggregator/src/routes/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export async function load() {
orderBy: {
date: "desc"
},
take: 3
take: 7
})
]);

Expand Down
30 changes: 13 additions & 17 deletions src/psaggregator/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@
{#each data.today as content}
<UploadPlanEntry entry={content} />
{:else}
<div class="flex items-center mt-4">
<span>Bisher konnte heute kein Uploadplan importiert werden.</span>
</div>
<div class="flex items-center">Bisher konnte heute kein Uploadplan importiert werden.</div>
{/each}
</div>
</div>
Expand Down Expand Up @@ -108,29 +106,27 @@
{/each}
</div>
</div>
<div class="order-1 md:order-5">
<div class="order-5">
<div class="mb-2 ml-2 flex items-center text-2xl">
<img alt="twitch" src="/twitch-logo.svg" class="mr-2 inline-block h-8 w-8" />
Anstehende Streams
<img alt="reddit" src="/reddit-logo.svg" class="mr-2 inline-block h-8 w-8" />
Reddit
</div>
<div class="flex flex-col gap-2">
{#each data.upcomingStreams as stream}
<TwitchEntry entry={stream} />
{:else}
<div class="flex items-center mt-4">
<span>Momentan sind keine geplanten Streams bekannt.</span>
</div>
{#each data.redditPosts.slice(0, matches ? 10 : 5) as reddit}
<RedditPost entry={reddit} />
{/each}
</div>
</div>
<div class="order-6">
<div class="order-1 md:order-6">
<div class="mb-2 ml-2 flex items-center text-2xl">
<img alt="reddit" src="/reddit-logo.svg" class="mr-2 inline-block h-8 w-8" />
Reddit
<img alt="twitch" src="/twitch-logo.svg" class="mr-2 inline-block h-8 w-8" />
Anstehende Streams
</div>
<div class="flex flex-col gap-2">
{#each data.redditPosts.slice(0, matches ? 10 : 5) as reddit}
<RedditPost entry={reddit} />
{#each data.upcomingStreams as stream}
<TwitchEntry entry={stream} />
{:else}
<div class="flex items-center">Momentan sind keine geplanten Streams bekannt.</div>
{/each}
</div>
</div>
Expand Down

0 comments on commit 43c109b

Please sign in to comment.