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

Dev #14

Merged
merged 2 commits into from
Aug 19, 2024
Merged

Dev #14

Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion src/lib/components/hero.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
<Localized id="index--title" />
</h1>

<p class="gradient-heading h1">@lolmaus</p>
<!-- Bottom patting is necessary to work around a werid text clipping isseu -->
<p class="gradient-heading h1 py-1">@lolmaus</p>

<p class="h3">
<Localized id="index--subtitle" />
Expand Down
6 changes: 3 additions & 3 deletions src/lib/components/light-switch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</svelte:head>

<div
class="cursor-pointer"
class="variant-soft btn-icon btn-lg cursor-pointer bg-surface-500 text-white opacity-50 hover:opacity-100"
onclick={onToggleHandler}
onkeydown={onKeyDown}
role="switch"
Expand All @@ -60,8 +60,8 @@
tabindex="0"
>
{#if $modeCurrent}
<Moon size={50} />
<Moon size={30} />
{:else}
<Sun size={50} />
<Sun size={30} />
{/if}
</div>
2 changes: 1 addition & 1 deletion src/lib/intl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const initFluent = async (lang: string): Promise<SvelteFluent> => {
error(404, 'Not Found');
}

const bundle = new FluentBundle('en');
const bundle = new FluentBundle(lang);
const { default: translations } = await import(`../../content/translations/${lang}.ftl?raw`);
const resource = new FluentResource(translations);

Expand Down
Loading