Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic settings title #128

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/routes/(admin)/account/(menu)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import "../../../../app.css"
import { writable } from "svelte/store"
import { setContext } from "svelte"
import { WebsiteName } from "../../../../config"

const adminSectionStore = writable("")
setContext("adminSection", adminSectionStore)
Expand All @@ -23,7 +24,7 @@
<div class="drawer-content">
<div class="navbar bg-base-100 lg:hidden">
<div class="flex-1">
<a class="btn btn-ghost normal-case text-xl" href="/">SaaS Starter</a>
<a class="btn btn-ghost normal-case text-xl" href="/">{WebsiteName}</a>
</div>
<div class="flex-none">
<div class="dropdown dropdown-end">
Expand Down Expand Up @@ -59,7 +60,7 @@
<div
class="normal-case menu-title text-xl font-bold text-primary flex flex-row"
>
<a href="/" class="grow">Saas Starter</a>
<a href="/" class="grow">{WebsiteName}</a>
<label for="admin-drawer" class="lg:hidden ml-3"> &#x2715; </label>
</div>
</li>
Expand Down
Loading