Skip to content

Commit

Permalink
feat: update trainings pages
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Broudoux <[email protected]>
  • Loading branch information
abroudoux committed Oct 29, 2024
1 parent eed7245 commit 3100a05
Show file tree
Hide file tree
Showing 10 changed files with 75 additions and 91 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.6",
"svelte": "5.0.0-next.259",
"svelte": "5.0.0-next.270",
"svelte-check": "^4.0.2",
"tailwindcss": "^3.4.13",
"typescript": "^5.6.2",
Expand Down
100 changes: 50 additions & 50 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/components/global/MenuItemSidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
export let menu: MenuItemSidebar;
$: isActive = $page.url.pathname === menu.url;
$: isActive =
menu.url === "/" ? $page.url.pathname === menu.url : $page.url.pathname.startsWith(menu.url);
</script>

<li
Expand Down
8 changes: 7 additions & 1 deletion src/components/global/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@
</script>

<nav
class="w-1/6 h-screen bg-background sidebar p-4 flex flex-col items-start justify-start border-r"
class="w-1/6 h-screen bg-background sidebar px-4 py-2 flex flex-col items-start justify-between border-r"
>
<ul class="w-full mt-4 flex flex-col gap-2">
{#each menuItemsSidebar as menu}
<MenuItemSidebar {menu} />
{/each}
</ul>
<a
href="https://github.com/abroudoux/better.git"
target="_blank"
class="w-full items-center flex justify-start pb-8 px-2 text-muted-foreground underline underline-offset-4 hover:underline-offset-2 transition-all text-sm"
>Source Code</a
>
</nav>
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
</div>
</div>
<Footer>
<Button type="submit" disabled={isLoading}>{isLoading ? "Creating..." : "Next step"}</Button
>v
<Button type="submit" disabled={isLoading}
>{isLoading ? "Creating..." : "Next step"}
</Button>
</Footer>
</form>
</Content>
Expand Down
Loading

0 comments on commit 3100a05

Please sign in to comment.