Skip to content
Merged
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
5 changes: 5 additions & 0 deletions .changes/optimize-dark.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:feat
---

Optimize dark mode selector for tailwindcss.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ themeStore.init();
</script>

<template>
<main class="w-full h-screen">
<main class="w-full h-screen bg-zinc-200 dark:bg-zinc-950">
<Toast />
<RouterView />
</main>
Expand Down
3 changes: 0 additions & 3 deletions src/assets/base.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
:root {
font-family: Cascadia Mono, Consolas, Helvetica, Arial, sans-serif;
/* font-size: 16px; */
/* line-height: 24px; */
/* font-weight: 400; */

font-synthesis: none;
text-rendering: optimizeLegibility;
Expand Down
8 changes: 4 additions & 4 deletions src/views/signup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const router = useRouter();
const themeStore = useThemeStore();
const accountStore = useAccountStore();

const activeStep = ref("3");
const activeStep = ref("1");
const isShowAvatarCutter = ref<boolean>(false);
const avatarString = ref<string>('');
const croppedAvatar = ref<string>('');
Expand Down Expand Up @@ -281,7 +281,7 @@ const onComplete = async ({ valid, states }: { valid: boolean, states: CompleteF

<template>
<div class="flex flex-col justify-center items-center h-screen">
<div class="flex flex-col container h-full m-10">
<div class="flex flex-col container m-auto items-center justify-center h-full">
<div class="flex flex-row justify-between mb-4 w-full">
<Button @click="router.go(-1)" icon="pi pi-arrow-left" label="Back" plain outlined></Button>
<Button @click="themeStore.toggle" :icon="`pi pi-${themeStore.dark ? 'moon' : 'sun'}`" plain text></Button>
Expand Down Expand Up @@ -332,7 +332,7 @@ const onComplete = async ({ valid, states }: { valid: boolean, states: CompleteF
$form.terms.error.message }}</Message>
</div>
<p>Already have an account? <a @click="router.push('/login')" class="underline">Login</a></p>
<Button type="submit" label="Activate" class="w-full" :loading="inProgress" secondary></Button>
<Button type="submit" label="Register" class="w-full" :loading="inProgress" secondary></Button>
</Form>
</template>
</Card>
Expand Down Expand Up @@ -434,7 +434,7 @@ const onComplete = async ({ valid, states }: { valid: boolean, states: CompleteF
$form.major.error.message }}</Message>
</div>
<p>Activate your account later? <a @click="router.push('/')" class="underline">Stay inactive</a></p>
<Button type="submit" label="Save" class="w-full" :disabled="inProgress" secondary></Button>
<Button type="submit" label="Activate" class="w-full" :disabled="inProgress" secondary></Button>
</Form>
</template>
</Card>
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{html,js,ts,vue}"],
darkMode: 'selector',
theme: {
extend: {},
},
Expand Down