Skip to content

Commit 037eaba

Browse files
committed
membership and theme layers
1 parent efdc115 commit 037eaba

35 files changed

+103
-100
lines changed

app.vue

Lines changed: 90 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ NuxtLayout
4040
</template>
4141

4242
<style lang="postcss">
43-
@import url(~/assets/index.postcss);
44-
4543
main a {
4644
@apply underline
4745
}
@@ -58,4 +56,94 @@ body {
5856
.dark body {
5957
@apply bg-dark-300 transition duration-1000 text-light-200;
6058
}
59+
60+
.page {
61+
transition: all ease-in-out 0.12s;
62+
}
63+
64+
.page-enter-active,
65+
.page-leave-active {
66+
transition: all ease-in-out 0.12s;
67+
}
68+
69+
.page-leave-to {
70+
opacity: 0.4;
71+
filter: blur(0.1rem);
72+
transform: translate(-4px, 0px);
73+
}
74+
75+
.page-enter-from {
76+
opacity: 0.4;
77+
filter: blur(0.1rem);
78+
transform: translate(4px, 0);
79+
}
80+
81+
.fade-enter-active,
82+
.fade-leave-active {
83+
transition: opacity 1s ease;
84+
}
85+
86+
.fade-enter-from,
87+
.fade-leave-to {
88+
opacity: 0;
89+
}
90+
91+
form input {
92+
@apply p-2 text-lg rounded bg-light-200 dark-bg-dark-100;
93+
flex: 1 1 200px;
94+
}
95+
96+
form button,
97+
form button[type="submit"] {
98+
@apply p-4 rounded-xl bg-purple-500 shadow-xl text-xl;
99+
}
100+
101+
form label {
102+
@apply p-2 text-lg flex-1 text-right;
103+
}
104+
105+
pre {
106+
@apply p-4 max-w-full;
107+
}
108+
109+
html {
110+
@apply overscroll-y-none;
111+
font-family: var(--font-family-base);
112+
}
113+
114+
.glass {
115+
@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;
116+
}
117+
118+
/* Fonts */
119+
120+
:root {
121+
--font-family-base: "Commissioner", -apple-system, BlinkMacSystemFont,
122+
"Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans",
123+
"Helvetica Neue", sans-serif;
124+
--font-family-mono: "Fira Code", source-code-pro, Menlo, Monaco, Consolas,
125+
"Courier New", monospace;
126+
}
127+
128+
@font-face {
129+
font-family: "Commissioner";
130+
font-style: normal;
131+
font-weight: 400;
132+
src: local(""),
133+
url("/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-regular.woff2") format("woff2"),
134+
/* Chrome 26+, Opera 23+, Firefox 39+ */
135+
url("/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-regular.woff") format("woff");
136+
/* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
137+
}
138+
139+
@font-face {
140+
font-family: "Commissioner";
141+
font-style: normal;
142+
font-weight: 700;
143+
src: local(""),
144+
url("/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-700.woff2") format("woff2"),
145+
/* Chrome 26+, Opera 23+, Firefox 39+ */
146+
url("/fonts/commissioner-v3-latin_cyrillic-ext_cyrillic-700.woff") format("woff");
147+
/* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
148+
}
61149
</style>

assets/index.postcss

Lines changed: 0 additions & 93 deletions
This file was deleted.

assets/logo.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

auth/components/AuthSignup.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,18 @@ const onSubmit = async () => {
2626
<template lang='pug'>
2727
.glass.p-4.flex.flex-col.gap-4
2828
slot
29-
.text-2xl.p-2 Sign Up
3029
form.p-4.flex.flex-col.gap-4(
3130
@submit.prevent.stop="onSubmit()")
3231
.flex.gap-4
3332
label(for="first_name") First name
3433
input#first_name(
3534
type="text"
3635
v-model="u.first_name")
36+
.flex.gap-4
37+
label(for="last_name") Last name
38+
input#last_name(
39+
type="text"
40+
v-model="u.last_name")
3741
.flex.gap-4
3842
label(for="email") Email
3943
input#email(

auth/pages/auth/login.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script setup>
2-
import PricePanel from '~/components/PricePanel.vue';
32
const email = ref('')
43
</script>
54

File renamed without changes.

components/PricePanel.vue renamed to membership/components/PricePanel.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const sending = ref(false)
2424
const error = ref('')
2525
2626
async function subscribe() {
27+
if (!user?.value?.email) return
2728
2829
sending.value = true
2930
@@ -54,7 +55,10 @@ async function subscribe() {
5455
5556
slot
5657
57-
.flex.flex-col.gap-6(style="flex: 2 1 400px")
58+
.flex.flex-col.gap-6(
59+
style="flex: 2 1 400px"
60+
61+
)
5862
.text-xl Choose your plan
5963
.flex.flex-wrap.gap-4
6064
.shadow.p-4.border-2.flex.flex-wrap.gap-2.rounded-xl.cursor-pointer.relative(
File renamed without changes.

membership/nuxt.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default defineNuxtConfig({})
File renamed without changes.

0 commit comments

Comments
 (0)