-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
529 additions
and
551 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ desctiption: Get in touch with community through contributions | |
--- | ||
|
||
<auth-login /> | ||
|
||
<form-main /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,81 +16,80 @@ function scroll() { | |
</script> | ||
|
||
<template lang='pug'> | ||
transition(name="panel") | ||
.fixed.z-1000.min-h-40dvh.bottom-0.w-full.bg-light-800.bg-opacity-80.backdrop-blur.flex.flex-col.items-center.gap-4.justify-center.dark-bg-dark-200.dark-bg-opacity-80.p-8.shadow.max-w-180.bottom-0.rounded-xl( | ||
v-if="isFormOpen" | ||
) | ||
button.i-la-times.absolute.top-4.right-4.text-2xl.hover-opacity-90.opacity-50.transition( | ||
v-show="isFormOpen" | ||
@click="isFormOpen=false" | ||
) | ||
|
||
.flex.flex-col.gap-4.max-w-45ch.text-center(v-if="isAccessGranted") | ||
.text-3xl.font-bold Hello, {{ storedName }}! | ||
.text-xl You are part of web-musicians community | ||
.text-sm.flex.gap-2.justify-center {{ storedEmail }} | ||
span.opacity-20.hover-opacity-50.transition.cursor-pointer(@click="resetEmail") Log out | ||
//- .flex.gap-4.justify-center | ||
button.text-sm.md-text-md.p-4.font-bold.md-p-4.rounded-xl.shadow-xl.hover-shadow-2xl.transition.-hover-translate-y-2px.disabled-opacity-40.active-translate-y-0.active-shadow-md.bg-green-400.dark-bg-green-700( | ||
v-if="!invited" | ||
@click="claimInvite()" | ||
) Claim Invite | ||
//- button.text-sm.md-text-md.p-4.font-bold.md-p-4.rounded-xl.shadow-xl.hover-shadow-2xl.transition.-hover-translate-y-2px.disabled-opacity-40.active-translate-y-0.active-shadow-md.bg-green-400.dark-bg-green-700( | ||
v-if="!invited" | ||
@click="loginForm = true" | ||
) Login | ||
.flex.flex-col.gap-8.relative.pt-8.items-center(v-else) | ||
|
||
label.text-center.max-w-55ch(for="email") | ||
slot | ||
|
||
.flex.gap-4.flex-col.w-full | ||
label.flex.items-center.gap-2 | ||
.p-2.w-24.font-bold.text-right E-mail * | ||
input.flex-1.p-4.md-p-4.rounded-xl.bg-light-200.shadow-md.dark-bg-dark-400.flex-1.border-2.border-solid.border-opacity-60.dark-border-opacity-40( | ||
:class="{'border-red-700 dark-border-red-300':email && !isValidEmail, 'border-green-700 dark-border-green-800': email && isValidEmail, 'border-light-300': !email }" | ||
ref="target" | ||
:maxlength="maxLength" | ||
v-model="email" | ||
id="email" | ||
name="email" | ||
type="email" | ||
@keydown.enter="grantAccess()" | ||
placeholder="[email protected]") | ||
label.flex.items-center.gap-2 | ||
.p-2.w-24.font-bold.text-right Name | ||
input.flex-1.p-4.md-p-4.rounded-xl.bg-light-200.shadow-md.dark-bg-dark-400( | ||
v-model="name" | ||
id="name" | ||
:maxlength="maxLength" | ||
name="name" | ||
type="text" | ||
@keydown.enter="grantAccess()" | ||
:placeholder="namePlaceholder") | ||
|
||
//- label.flex.items-center.gap-2 | ||
.p-2.w-24.font-bold.text-right Password | ||
input.flex-1.p-4.md-p-4.rounded-xl.bg-light-200.shadow-md.dark-bg-dark-400( | ||
v-model="password" | ||
id="password" | ||
name="password" | ||
type="password" | ||
@keydown.enter="grantAccess()" | ||
:placeholder="passwordPlaceholder") | ||
.p-2(@click="passwordPlaceholder=generatePassword()") | ||
.i-la-lock-open | ||
.min-h-40dvh.bottom-0.w-full.bg-light-800.bg-opacity-80.backdrop-blur.flex.flex-col.items-center.gap-4.justify-center.dark-bg-dark-200.dark-bg-opacity-80.p-8.shadow.max-w-180.bottom-0.rounded-xl( | ||
|
||
) | ||
button.i-la-times.absolute.top-4.right-4.text-2xl.hover-opacity-90.opacity-50.transition( | ||
v-show="isFormOpen" | ||
@click="isFormOpen=false" | ||
) | ||
|
||
.flex.flex-col.gap-4.max-w-45ch.text-center(v-if="isAccessGranted") | ||
.text-3xl.font-bold Hello, {{ storedName }}! | ||
.text-xl You are part of web-musicians community | ||
.text-sm.flex.gap-2.justify-center {{ storedEmail }} | ||
span.opacity-20.hover-opacity-50.transition.cursor-pointer(@click="resetEmail") Log out | ||
//- .flex.gap-4.justify-center | ||
button.text-sm.md-text-md.p-4.font-bold.md-p-4.rounded-xl.shadow-xl.hover-shadow-2xl.transition.-hover-translate-y-2px.disabled-opacity-40.active-translate-y-0.active-shadow-md.bg-green-400.dark-bg-green-700( | ||
@click="grantAccess()" | ||
:disabled="!isValidEmail" | ||
:class="{'grayscale-50':!isValidEmail}" | ||
title="Your access status will be saved per device and you won't need to enter your e-mail again." | ||
) | ||
slot(name="button") GET ACCESS | ||
|
||
//- AuthLogin.max-h-40.overflow-y-scroll | ||
v-if="!invited" | ||
@click="claimInvite()" | ||
) Claim Invite | ||
//- button.text-sm.md-text-md.p-4.font-bold.md-p-4.rounded-xl.shadow-xl.hover-shadow-2xl.transition.-hover-translate-y-2px.disabled-opacity-40.active-translate-y-0.active-shadow-md.bg-green-400.dark-bg-green-700( | ||
v-if="!invited" | ||
@click="loginForm = true" | ||
) Login | ||
.flex.flex-col.gap-8.relative.pt-8.items-center(v-else) | ||
|
||
label.text-center.max-w-55ch(for="email") | ||
slot | ||
|
||
.flex.gap-4.flex-col.w-full | ||
label.flex.items-center.gap-2 | ||
.p-2.w-24.font-bold.text-right E-mail * | ||
input.flex-1.p-4.md-p-4.rounded-xl.bg-light-200.shadow-md.dark-bg-dark-400.flex-1.border-2.border-solid.border-opacity-60.dark-border-opacity-40( | ||
:class="{'border-red-700 dark-border-red-300':email && !isValidEmail, 'border-green-700 dark-border-green-800': email && isValidEmail, 'border-light-300': !email }" | ||
ref="target" | ||
:maxlength="maxLength" | ||
v-model="email" | ||
id="email" | ||
name="email" | ||
type="email" | ||
@keydown.enter="grantAccess()" | ||
placeholder="[email protected]") | ||
label.flex.items-center.gap-2 | ||
.p-2.w-24.font-bold.text-right Name | ||
input.flex-1.p-4.md-p-4.rounded-xl.bg-light-200.shadow-md.dark-bg-dark-400( | ||
v-model="name" | ||
id="name" | ||
:maxlength="maxLength" | ||
name="name" | ||
type="text" | ||
@keydown.enter="grantAccess()" | ||
:placeholder="namePlaceholder") | ||
|
||
//- label.flex.items-center.gap-2 | ||
.p-2.w-24.font-bold.text-right Password | ||
input.flex-1.p-4.md-p-4.rounded-xl.bg-light-200.shadow-md.dark-bg-dark-400( | ||
v-model="password" | ||
id="password" | ||
name="password" | ||
type="password" | ||
@keydown.enter="grantAccess()" | ||
:placeholder="passwordPlaceholder") | ||
.p-2(@click="passwordPlaceholder=generatePassword()") | ||
.i-la-lock-open | ||
button.text-sm.md-text-md.p-4.font-bold.md-p-4.rounded-xl.shadow-xl.hover-shadow-2xl.transition.-hover-translate-y-2px.disabled-opacity-40.active-translate-y-0.active-shadow-md.bg-green-400.dark-bg-green-700( | ||
@click="grantAccess()" | ||
:disabled="!isValidEmail" | ||
:class="{'grayscale-50':!isValidEmail}" | ||
title="Your access status will be saved per device and you won't need to enter your e-mail again." | ||
) | ||
slot(name="button") GET ACCESS | ||
|
||
//- AuthLogin.max-h-40.overflow-y-scroll | ||
</template> | ||
|
||
<style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.