Skip to content

Commit

Permalink
Center content (#14)
Browse files Browse the repository at this point in the history
* Remove gradient style crime

* Styling
  • Loading branch information
DanielPower authored Jan 5, 2024
1 parent b01aa4c commit b3189d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@
<div class="sidebar" class:sidebar-open={sidebarOpen}>
<Sidebar bind:isOpen={sidebarOpen} {displayType} />
</div>
<div class="flex-grow max-w-4xl p-2">
<slot />
<div class="flex justify-center flex-grow p-2">
<div class="flex-grow max-w-4xl">
<slot />
</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<nav class="bg-wheat dark:bg-gray-600 flex flex-col h-full">
{#each links as link}
<A class="p-4" href={link.href} on:click={close}>{link.name}</A>
<A class="p-4 dark:text-white" href={link.href} on:click={close}>{link.name}</A>
{/each}
</nav>
<div class="gradient" />

0 comments on commit b3189d6

Please sign in to comment.