Skip to content

Commit

Permalink
fix and bump
Browse files Browse the repository at this point in the history
  • Loading branch information
davay42 committed Jan 31, 2024
1 parent 1d59bbf commit 9f80aee
Show file tree
Hide file tree
Showing 6 changed files with 529 additions and 551 deletions.
2 changes: 2 additions & 0 deletions auth/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ desctiption: Get in touch with community through contributions
---

<auth-login />

<form-main />
8 changes: 4 additions & 4 deletions components/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ const { theme, site, isDark } = useData()

.flex.flex-wrap.w-full.mx-auto.flex-auto.justify-center
content#content.w-full
transition(name="panel")
FormMain.fixed.z-1000(v-if="isFormOpen") We are building a community of web-based musicians. Type in your e-mail to instantly gain full access to the collection and receive occasional community updates from us. Stay tuned!

FormMain We are building a community of web-based musicians. Type in your e-mail to instantly gain full access to the collection and receive occasional community updates from us. Stay tuned!

template(#button) JOIN THE COMMUNITY
template(#notice) Your access status will be saved per device and you won't need to enter your e-mail again.
template(#button) JOIN THE COMMUNITY
template(#notice) Your access status will be saved per device and you won't need to enter your e-mail again.
AboutFooter
</template>

Expand Down
143 changes: 71 additions & 72 deletions components/form/FormMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions components/synth/SynthPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ onMounted(async () => {
<template lang='pug'>
.flex.flex-col.gap-4.bg-light-300.dark-bg-dark-300.rounded-lg.shadow-xl.overflow-hidden.mx-auto
.p-0.h-70svh.bg-cover.bg-center(
.p-0l.h-70vh.h-70svh.bg-cover.bg-center(
:class="{'animate-pulse': iframe && !iframeLoaded}"
:style="{backgroundImage: `url(/cover/${slug}.webp)`}"
)
transition(name="fade")
iframe.w-full.h-70svh.bg-light-100.dark-bg-dark-800(
iframe.w-full.h-70vh.h-70svh.bg-light-100.dark-bg-dark-800(
allow="midi *"
v-show="iframeLoaded"
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,29 @@
"engines": {
"node": ">18.x"
},
"packageManager": "pnpm@8.12.1",
"packageManager": "pnpm@8.15.1",
"keywords": [],
"author": "",
"license": "MIT",
"dependencies": {
"@unocss/reset": "^0.58.0",
"@vueuse/core": "^10.7.0",
"@vueuse/integrations": "^10.7.0",
"@unocss/reset": "^0.58.4",
"@vueuse/core": "^10.7.2",
"@vueuse/integrations": "^10.7.2",
"fuse.js": "^7.0.0",
"vue": "^3.3.13",
"vue": "^3.4.15",
"webmidi": "^3.1.8"
},
"devDependencies": {
"workbox-window": "^7.0.0",
"@directus/sdk": "^14.0.0",
"@unocss/extractor-pug": "^0.58.0",
"@unocss/extractor-pug": "^0.58.4",
"@vite-pwa/vitepress": "^0.3.1",
"@vue/language-plugin-pug": "^1.8.27",
"image-downloader": "^4.3.0",
"postcss-nesting": "^12.0.2",
"pug": "^3.0.2",
"unocss": "^0.58.0",
"unocss": "^0.58.4",
"unplugin-vue-components": "^0.26.0",
"vitepress": "^1.0.0-rc.33"
"vitepress": "^1.0.0-rc.40",
"workbox-window": "^7.0.0"
}
}
Loading

0 comments on commit 9f80aee

Please sign in to comment.