diff --git a/app.vue b/app.vue
index 0553092..a17849c 100644
--- a/app.vue
+++ b/app.vue
@@ -40,8 +40,6 @@ NuxtLayout
\ No newline at end of file
diff --git a/assets/index.postcss b/assets/index.postcss
deleted file mode 100644
index 8ab2cb5..0000000
--- a/assets/index.postcss
+++ /dev/null
@@ -1,93 +0,0 @@
-.page {
- transition: all ease-in-out 0.12s;
-}
-
-.page-enter-active,
-.page-leave-active {
- transition: all ease-in-out 0.12s;
-}
-
-.page-leave-to {
- opacity: 0.4;
- filter: blur(0.1rem);
- transform: translate(-4px, 0px);
-}
-
-.page-enter-from {
- opacity: 0.4;
- filter: blur(0.1rem);
- transform: translate(4px, 0);
-}
-
-.fade-enter-active,
-.fade-leave-active {
- transition: opacity 1s ease;
-}
-
-.fade-enter-from,
-.fade-leave-to {
- opacity: 0;
-}
-
-form input {
- @apply p-2 text-lg rounded bg-light-200 dark-bg-dark-100;
- flex: 1 1 200px;
-}
-
-form button,
-form button[type="submit"] {
- @apply p-4 rounded-xl bg-purple-500 shadow-xl text-xl;
-}
-
-form label {
- @apply p-2 text-lg flex-1 text-right;
-}
-
-pre {
- @apply p-4 max-w-full;
-}
-
-html {
- @apply overscroll-y-none;
- font-family: var(--font-family-base);
-}
-
-.glass {
- @apply transition bg-light-500/90 dark-bg-dark-500/90 rounded-lg shadow-lg hover-shadow-xl filter backdrop-blur hover-backdrop-blur-xl;
-}
-
-/* Fonts */
-
-:root {
- --font-family-base: "Commissioner", -apple-system, BlinkMacSystemFont,
- "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans",
- "Helvetica Neue", sans-serif;
- --font-family-mono: "Fira Code", source-code-pro, Menlo, Monaco, Consolas,
- "Courier New", monospace;
-}
-
-@font-face {
- font-family: "Commissioner";
- font-style: normal;
- font-weight: 400;
- src: local(""),
- url("/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-regular.woff2")
- format("woff2"),
- /* Chrome 26+, Opera 23+, Firefox 39+ */
- url("/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-regular.woff")
- format("woff");
- /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
-}
-
-@font-face {
- font-family: "Commissioner";
- font-style: normal;
- font-weight: 700;
- src: local(""),
- url("/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-700.woff2")
- format("woff2"),
- /* Chrome 26+, Opera 23+, Firefox 39+ */
- url("/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-700.woff")
- format("woff");
- /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
-}
diff --git a/assets/logo.svg b/assets/logo.svg
deleted file mode 100644
index 835320c..0000000
--- a/assets/logo.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/auth/components/AuthSignup.vue b/auth/components/AuthSignup.vue
index 3efbeb9..136b778 100644
--- a/auth/components/AuthSignup.vue
+++ b/auth/components/AuthSignup.vue
@@ -26,7 +26,6 @@ const onSubmit = async () => {
.glass.p-4.flex.flex-col.gap-4
slot
- .text-2xl.p-2 Sign Up
form.p-4.flex.flex-col.gap-4(
@submit.prevent.stop="onSubmit()")
.flex.gap-4
@@ -34,6 +33,11 @@ const onSubmit = async () => {
input#first_name(
type="text"
v-model="u.first_name")
+ .flex.gap-4
+ label(for="last_name") Last name
+ input#last_name(
+ type="text"
+ v-model="u.last_name")
.flex.gap-4
label(for="email") Email
input#email(
diff --git a/auth/pages/auth/login.vue b/auth/pages/auth/login.vue
index 756769a..1d288db 100644
--- a/auth/pages/auth/login.vue
+++ b/auth/pages/auth/login.vue
@@ -1,5 +1,4 @@
diff --git a/components/ApplicationForm.vue b/membership/components/ApplicationForm.vue
similarity index 100%
rename from components/ApplicationForm.vue
rename to membership/components/ApplicationForm.vue
diff --git a/components/PricePanel.vue b/membership/components/PricePanel.vue
similarity index 96%
rename from components/PricePanel.vue
rename to membership/components/PricePanel.vue
index 1ed5263..7f74d3c 100644
--- a/components/PricePanel.vue
+++ b/membership/components/PricePanel.vue
@@ -24,6 +24,7 @@ const sending = ref(false)
const error = ref('')
async function subscribe() {
+ if (!user?.value?.email) return
sending.value = true
@@ -54,7 +55,10 @@ async function subscribe() {
slot
- .flex.flex-col.gap-6(style="flex: 2 1 400px")
+ .flex.flex-col.gap-6(
+ style="flex: 2 1 400px"
+
+ )
.text-xl Choose your plan
.flex.flex-wrap.gap-4
.shadow.p-4.border-2.flex.flex-wrap.gap-2.rounded-xl.cursor-pointer.relative(
diff --git a/components/WaitList.vue b/membership/components/WaitList.vue
similarity index 100%
rename from components/WaitList.vue
rename to membership/components/WaitList.vue
diff --git a/membership/nuxt.config.js b/membership/nuxt.config.js
new file mode 100644
index 0000000..a5fdfff
--- /dev/null
+++ b/membership/nuxt.config.js
@@ -0,0 +1 @@
+export default defineNuxtConfig({})
\ No newline at end of file
diff --git a/pages/membership/cancel.vue b/membership/pages/membership/cancel.vue
similarity index 100%
rename from pages/membership/cancel.vue
rename to membership/pages/membership/cancel.vue
diff --git a/pages/membership/index.vue b/membership/pages/membership/index.vue
similarity index 100%
rename from pages/membership/index.vue
rename to membership/pages/membership/index.vue
diff --git a/pages/membership/subscribe.vue b/membership/pages/membership/subscribe.vue
similarity index 100%
rename from pages/membership/subscribe.vue
rename to membership/pages/membership/subscribe.vue
diff --git a/pages/membership/success.vue b/membership/pages/membership/success.vue
similarity index 100%
rename from pages/membership/success.vue
rename to membership/pages/membership/success.vue
diff --git a/nuxt.config.js b/nuxt.config.js
index 4b2776b..73abe3e 100644
--- a/nuxt.config.js
+++ b/nuxt.config.js
@@ -1,5 +1,5 @@
export default defineNuxtConfig({
- extends: ['./auth'],
+ extends: ['./auth', './theme', './membership'],
app: {
pageTransition: { name: 'page', mode: 'out-in' }
},
diff --git a/components/CourseBlock.vue b/theme/components/CourseBlock.vue
similarity index 100%
rename from components/CourseBlock.vue
rename to theme/components/CourseBlock.vue
diff --git a/components/DarkToggle.vue b/theme/components/DarkToggle.vue
similarity index 100%
rename from components/DarkToggle.vue
rename to theme/components/DarkToggle.vue
diff --git a/components/EventCard.vue b/theme/components/EventCard.vue
similarity index 100%
rename from components/EventCard.vue
rename to theme/components/EventCard.vue
diff --git a/components/EventSchedule.vue b/theme/components/EventSchedule.vue
similarity index 100%
rename from components/EventSchedule.vue
rename to theme/components/EventSchedule.vue
diff --git a/components/NavBar.vue b/theme/components/NavBar.vue
similarity index 100%
rename from components/NavBar.vue
rename to theme/components/NavBar.vue
diff --git a/components/PageCover.vue b/theme/components/PageCover.vue
similarity index 100%
rename from components/PageCover.vue
rename to theme/components/PageCover.vue
diff --git a/components/PageFooter.vue b/theme/components/PageFooter.vue
similarity index 100%
rename from components/PageFooter.vue
rename to theme/components/PageFooter.vue
diff --git a/components/ProgramBlock.vue b/theme/components/ProgramBlock.vue
similarity index 100%
rename from components/ProgramBlock.vue
rename to theme/components/ProgramBlock.vue
diff --git a/components/ProjectCard.vue b/theme/components/ProjectCard.vue
similarity index 100%
rename from components/ProjectCard.vue
rename to theme/components/ProjectCard.vue
diff --git a/components/UserCard.vue b/theme/components/UserCard.vue
similarity index 100%
rename from components/UserCard.vue
rename to theme/components/UserCard.vue
diff --git a/composables/useMeta.js b/theme/composables/useMeta.js
similarity index 100%
rename from composables/useMeta.js
rename to theme/composables/useMeta.js
diff --git a/composables/usePublicDirectus.js b/theme/composables/usePublicDirectus.js
similarity index 100%
rename from composables/usePublicDirectus.js
rename to theme/composables/usePublicDirectus.js
diff --git a/layouts/default.vue b/theme/layouts/default.vue
similarity index 100%
rename from layouts/default.vue
rename to theme/layouts/default.vue
diff --git a/theme/nuxt.config.js b/theme/nuxt.config.js
new file mode 100644
index 0000000..a5fdfff
--- /dev/null
+++ b/theme/nuxt.config.js
@@ -0,0 +1 @@
+export default defineNuxtConfig({})
\ No newline at end of file
diff --git a/public/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-700.woff b/theme/public/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-700.woff
similarity index 100%
rename from public/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-700.woff
rename to theme/public/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-700.woff
diff --git a/public/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-700.woff2 b/theme/public/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-700.woff2
similarity index 100%
rename from public/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-700.woff2
rename to theme/public/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-700.woff2
diff --git a/public/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-regular.woff b/theme/public/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-regular.woff
similarity index 100%
rename from public/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-regular.woff
rename to theme/public/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-regular.woff
diff --git a/public/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-regular.woff2 b/theme/public/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-regular.woff2
similarity index 100%
rename from public/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-regular.woff2
rename to theme/public/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-regular.woff2
diff --git a/public/front.png b/theme/public/front.png
similarity index 100%
rename from public/front.png
rename to theme/public/front.png
diff --git a/public/line.svg b/theme/public/line.svg
similarity index 100%
rename from public/line.svg
rename to theme/public/line.svg
diff --git a/public/logo.svg b/theme/public/logo.svg
similarity index 100%
rename from public/logo.svg
rename to theme/public/logo.svg