adding quill logo for public pages
This commit is contained in:
@@ -8,11 +8,11 @@ class Home extends Shadow {
|
||||
MainContent() {
|
||||
return VStack(() => {
|
||||
HStack(() => {
|
||||
img("/_/icons/quill.svg", "6em")
|
||||
img("/_/icons/quill.svg", "6vmax")
|
||||
|
||||
p("PARCHMENT")
|
||||
.fontFamily("Nabla")
|
||||
.fontSize(6.5, em)
|
||||
.fontSize(6, vmax)
|
||||
.marginLeft(1, rem)
|
||||
.color("var(--accent)")
|
||||
})
|
||||
|
||||
@@ -8,11 +8,13 @@ class SignIn extends Shadow {
|
||||
|
||||
render() {
|
||||
ZStack(() => {
|
||||
if(window.location.search.includes("new")) {
|
||||
p("Welcome to Hyperia! You may now log in.")
|
||||
.x(50, vw).y(40, vh)
|
||||
.center()
|
||||
}
|
||||
img("/_/icons/quill.svg", "3vmax")
|
||||
.position("absolute")
|
||||
.top(2, em)
|
||||
.left(2, em)
|
||||
.onClick((done) => {
|
||||
window.navigateTo("/")
|
||||
})
|
||||
|
||||
form(() => {
|
||||
input("Email")
|
||||
|
||||
@@ -1,30 +1,41 @@
|
||||
class SignUp extends Shadow {
|
||||
render() {
|
||||
VStack(() => {
|
||||
|
||||
h2("$50 / Month Subscription")
|
||||
.color("var(--quillred)")
|
||||
|
||||
p(" - Access to Parchment Online and Parchment Desktop")
|
||||
p(" - Ability to Create Networks")
|
||||
p(" - Up to 5GB Storage Space")
|
||||
|
||||
button("Buy")
|
||||
.color("var(--quillred")
|
||||
.border("1px solid var(--quillred)")
|
||||
.marginLeft("auto")
|
||||
.fontSize(1.1, em)
|
||||
.onClick(async function() {
|
||||
this.innerText = "Loading..."
|
||||
const res = await fetch("/create-checkout-session", { method: "POST" });
|
||||
const data = await res.json();
|
||||
window.location = data.url;
|
||||
ZStack(() => {
|
||||
img("/_/icons/quill.svg", "3vmax")
|
||||
.position("absolute")
|
||||
.top(2, em)
|
||||
.left(2, em)
|
||||
.onClick((done) => {
|
||||
window.navigateTo("/")
|
||||
})
|
||||
.marginTop(2, em)
|
||||
|
||||
VStack(() => {
|
||||
|
||||
h2("$50 / Month Subscription")
|
||||
.color("var(--quillred)")
|
||||
|
||||
p(" - Access to Parchment Online and Parchment Desktop")
|
||||
p(" - Ability to Create Networks")
|
||||
p(" - Up to 5GB Storage Space")
|
||||
|
||||
button("Buy")
|
||||
.color("var(--quillred")
|
||||
.border("1px solid var(--quillred)")
|
||||
.marginLeft("auto")
|
||||
.fontSize(1.1, em)
|
||||
.onClick(async function() {
|
||||
this.innerText = "Loading..."
|
||||
const res = await fetch("/create-checkout-session", { method: "POST" });
|
||||
const data = await res.json();
|
||||
window.location = data.url;
|
||||
})
|
||||
.marginTop(2, em)
|
||||
})
|
||||
.x(50, vw).y(50, vh).center()
|
||||
.border("1px solid var(--red)")
|
||||
.padding(1, em)
|
||||
})
|
||||
.x(50, vw).y(50, vh).center()
|
||||
.border("1px solid var(--red)")
|
||||
.padding(1, em)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,6 +11,14 @@ class SignupForm extends Shadow {
|
||||
|
||||
render() {
|
||||
ZStack(() => {
|
||||
img("/_/icons/quill.svg", "3vmax")
|
||||
.position("absolute")
|
||||
.top(2, em)
|
||||
.left(2, em)
|
||||
.onClick((done) => {
|
||||
window.navigateTo("/")
|
||||
})
|
||||
|
||||
form(() => {
|
||||
|
||||
VStack(() => {
|
||||
|
||||
Reference in New Issue
Block a user