Skip to content

Commit

Permalink
feat:feed little changes on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
lisaress committed Jan 18, 2024
1 parent 1688a4a commit 7026c0d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
8 changes: 4 additions & 4 deletions src/components/Feed.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@
});
</script>

<main class="flex flex-wrap justify-around">
<main class="flex flex-col items-center md:flex-row md:flex-wrap md:items-center md:justify-around">
{#if loginToken !== ''}
<div class="py-4">
<div class="w-full">
<RadioGroup active="variant-filled-primary" hover="hover:variant-soft-primary">
<RadioItem bind:group={value} name="justify" value={0} on:change={onChange}
>{$t('feed.personalFeed')}</RadioItem
Expand All @@ -147,10 +147,10 @@
</div>
{/if}
{#each posts as postData (postData.postId)}
<Post {postData} />
<Post {postData} />
{/each}
{#if maxPostCounter % slotLimit == 0 && hasMorePosts}
<button on:click={loadMorePosts} class="btn variant-filled">{$t('profile.loadMore')}</button>
<button on:click={loadMorePosts} class="btn variant-filled w-full md:w-auto">{$t('profile.loadMore')}</button>
{/if}
<Toast />
</main>
2 changes: 1 addition & 1 deletion src/components/layout/Footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<AppBar>
<svelte:fragment slot="lead">
<Icon class="w-10 h-10" icon="game-icons:kiwi-bird" style="font-size: 32px" />
<img class="w-10 h-10" src="/Schnatter_Logo.webp" alt="Schnatter Logo" style="font-size: 32px" />
</svelte:fragment>

<svelte:fragment slot="trail">
Expand Down
21 changes: 10 additions & 11 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@
const loginToken = get(token);
</script>

<main class="">
<div class="grid grid-cols-6 grid-flow-col gap-4 grid-end-auto">
<div class="col-span-1"></div>
<div class="col-span-4 pt8">
<Feed />
</div>
<div class="grid grid-rows-6 grid-flow-col gap-4">
<main class="p-2">
<div class="grid grid-cols-1 md:grid-cols-6 gap-2 grid-end-auto">
<div >
{#if loginToken == ''}
<div class="row-start-1">
<Login />
</div>
<Login />
{/if}
<div class="row-span-5"></div>
</div>

<div class="col-start-1 md:col-start-2 col-span-4">
<Feed />
</div>


</div>
</main>
Binary file removed static/Schnatter_Logo.png
Binary file not shown.

0 comments on commit 7026c0d

Please sign in to comment.