@@ -53,50 +53,51 @@ const onLogin = async ({ valid }: { valid: boolean }) => {
53
53
</script >
54
54
55
55
<template >
56
- <main class =" w-full h-screen" >
57
- <div class =" flex flex-row h-full" >
58
- <div class =" hidden md:flex flex-col items-center justify-center h-full w-full" >
59
- <div class =" flex flex-1 flex-col items-center justify-center w-full h-full" >
60
- <Image class =" hidden md:flex" :src =" themeStore.dark ? '/acm-light.png' : '/acm.png'" alt =" Image" width =" 250" />
61
- <h1 class =" text-3xl md:text-4xl font-bold mt-6 md:m-0" >ACM Algorithm Hub</h1 >
62
- </div >
63
- <footer class =" flex flex-row items-start w-full" >
64
- <Button @click =" themeStore.toggle" :icon =" `pi pi-${themeStore.dark ? 'moon' : 'sun'}`" plain text ></Button >
65
- </footer >
56
+ <div class =" flex flex-row h-full" >
57
+ <div class =" hidden md:flex flex-col items-center justify-center h-full w-full" >
58
+ <div class =" flex flex-1 flex-col items-center justify-center w-full h-full" >
59
+ <Image class =" hidden md:flex" :src =" themeStore.dark ? '/acm-light.png' : '/acm.png'" alt =" Image" width =" 250" />
60
+ <h1 class =" text-3xl md:text-4xl font-bold mt-6 md:m-0" >ACM Algorithm Hub</h1 >
66
61
</div >
67
- <div class =" flex w-full" >
68
- <Card class =" m-auto flex w-full h-full items-center justify-center flex-col" >
69
- <template v-if =" false " #header class="hidden"></template >
70
- <template #title >Welcome to ACM Algorithm Hub</template >
71
- <template #subtitle >Association of Computing Machinery affiliated with SWPU</template >
72
- <template #content >
73
- <Form v-slot =" $form" :initialValues :resolver @submit =" onLogin"
74
- class =" flex flex-col p-6 gap-4 items-center justify-center" >
75
- <div class =" flex flex-col gap-1 w-full" >
76
- <InputText name =" identity" type =" text" placeholder =" Username or Email" fluid />
77
- <Message v-if =" $form.identity?.invalid" severity =" error" size =" small" variant =" simple" >{{
78
- $form.identity.error.message }}</Message >
79
- </div >
80
- <div class =" flex flex-col gap-1 w-full" >
81
- <Password name =" password" type =" text" placeholder =" Password" :feedback =" false" toggleMask fluid />
82
- <Message v-if =" $form.password?.invalid" severity =" error" size =" small" variant =" simple" >{{
83
- $form.password.error.message }}</Message >
84
- </div >
85
- <div class =" flex flex-col gap-1 w-full" >
86
- <div class =" flex items-center gap-2" >
87
- <Checkbox inputId =" terms" name =" terms" binary />
88
- <label for =" terms" class =" text-sm" >I have read and agree to the <a href =" #" class =" underline" >Affero
89
- General Public License v3</a >.</label >
90
- </div >
91
- <Message v-if =" $form.terms?.invalid" severity =" error" size =" small" variant =" simple" >{{
92
- $form.terms.error.message }}</Message >
62
+ <footer class =" flex flex-row items-start w-full" >
63
+ <Button @click =" themeStore.toggle" :icon =" `pi pi-${themeStore.dark ? 'moon' : 'sun'}`" plain text ></Button >
64
+ </footer >
65
+ </div >
66
+ <div class =" flex w-full " >
67
+ <Card class =" m-auto flex basis-[40rem] w-full h-full items-center justify-center flex-col" >
68
+ <template #header >
69
+ <Button @click =" themeStore.toggle" class =" md:!hidden" :icon =" `pi pi-${themeStore.dark ? 'moon' : 'sun'}`"
70
+ plain text ></Button >
71
+ </template >
72
+ <template #title >Welcome to ACM Algorithm Hub</template >
73
+ <template #subtitle >Association of Computing Machinery affiliated with SWPU</template >
74
+ <template #content >
75
+ <Form v-slot =" $form" :initialValues :resolver @submit =" onLogin"
76
+ class =" flex flex-col p-6 gap-4 items-center justify-center" >
77
+ <div class =" flex flex-col gap-1 w-full" >
78
+ <InputText name =" identity" type =" text" placeholder =" Username or Email" fluid />
79
+ <Message v-if =" $form.identity?.invalid" severity =" error" size =" small" variant =" simple" >{{
80
+ $form.identity.error.message }}</Message >
81
+ </div >
82
+ <div class =" flex flex-col gap-1 w-full" >
83
+ <Password name =" password" type =" text" placeholder =" Password" :feedback =" false" toggleMask fluid />
84
+ <Message v-if =" $form.password?.invalid" severity =" error" size =" small" variant =" simple" >{{
85
+ $form.password.error.message }}</Message >
86
+ </div >
87
+ <div class =" flex flex-col gap-1 w-full" >
88
+ <div class =" flex items-center gap-2" >
89
+ <Checkbox inputId =" terms" name =" terms" binary />
90
+ <label for =" terms" class =" text-sm" >I have read and agree to the <a href =" #" class =" underline" >Affero
91
+ General Public License v3</a >.</label >
93
92
</div >
94
- <p >Do not have an account? <a @click =" router.push('/signup')" class =" underline" >Sign up</a ></p >
95
- <Button type =" submit" label =" Login" class =" w-full" secondary ></Button >
96
- </Form >
97
- </template >
98
- </Card >
99
- </div >
93
+ <Message v-if =" $form.terms?.invalid" severity =" error" size =" small" variant =" simple" >{{
94
+ $form.terms.error.message }}</Message >
95
+ </div >
96
+ <p >Do not have an account? <a @click =" router.push('/signup')" class =" underline" >Sign up</a ></p >
97
+ <Button type =" submit" label =" Login" class =" w-full" secondary ></Button >
98
+ </Form >
99
+ </template >
100
+ </Card >
100
101
</div >
101
- </main >
102
+ </div >
102
103
</template >
0 commit comments