Start contact fix

This commit is contained in:
E 2021-09-11 20:27:56 +01:00
parent 58ab6498f0
commit 592be102b8
No known key found for this signature in database
GPG Key ID: 91C5E15B03621D7A

View File

@ -4,57 +4,54 @@ block head
script(src='https://hcaptcha.com/1/api.js' async='' defer='defer') script(src='https://hcaptcha.com/1/api.js' async='' defer='defer')
block nav-links block nav-links
li.nav-item a(href='/')
a.nav-link(href='/') li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out")
span Home span Home
li.nav-item a(href='/about')
a.nav-link(href='/about') li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out")
span About span About
li.nav-item a(href='#')
a.nav-link(href='#') li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out")
span CV span CV
li.nav-item a(href='https://github.com/aurora-dot')
a.nav-link(href='https://github.com/aurora-dot') li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out")
span Projects span Projects
li.nav-item a(href='https://blog.pastel.codes')
a.nav-link(href='https://blog.pastel.codes') li(class="py-3 bg-pink text-black hover:bg-black hover:text-pink transition duration-500 ease-in-out")
span Blog span Blog
li.nav-item.active a(href='#')
a.nav-link(href='#') li(class="py-3 bg-black text-green hover:bg-pink hover:text-black transition duration-500 ease-in-out")
span Contact span Contact
block content block content
.container div
.row div
.col h1.font-sans.text-6xl.wavy.mb-10 Contact.
h1
span Contact.
.row
.col
form#contact-form(action='/contact' method='post' role='form')
.form-group
label Name
.form-row
.col
input#fname(name='firstname' class="form-control" type='text' placeholder='First name' required="true" pattern="^[\\w'\\-,.][^0-9_!¡?÷?¿/\\\\+=@#$%ˆ&*(){}|~<>;:[\\]]{2,}$")
.col
input#lname(name='lastname' class="form-control" type='text' placeholder='Last name' required="true" pattern="^[\\w'\\-,.][^0-9_!¡?÷?¿/\\\\+=@#$%ˆ&*(){}|~<>;:[\\]]{2,}$")
.form-group div
label(for='email') Email form#contact-form(action='/contact' method='post' role='form')
input#email(name='email' class="form-control" type='text' placeholder='Email (example@email.com)' required='true' pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$") .form-group
.form-group label Name
label(for='message') Message .form-row
textarea#message(name='message' class="form-control" placeholder='Enter your message here' rows='3' required='true') .col
.form-group(style="margin-bottom: 0.5rem") input#fname(name='firstname' class="form-control" type='text' placeholder='First name' required="true")
.h-captcha(data-sitekey='49abba50-1813-4ab3-acbf-2a8bfff1f7c3') .col
button(type='submit' class="button-c") Submit input#lname(name='lastname' class="form-control" type='text' placeholder='Last name' required="true")
.row .form-group
.col label(for='email') Email
if message input#email(name='email' class="form-control" type='text' placeholder='Email (example@email.com)' required='true' pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$")
#contact-message .form-group
p=message label(for='message') Message
if success textarea#message(name='message' class="form-control" placeholder='Enter your message here' rows='3' required='true')
p=success .form-group(style="margin-bottom: 0.5rem")
span#email=email .h-captcha(data-sitekey='49abba50-1813-4ab3-acbf-2a8bfff1f7c3')
button(type='submit' class="button-c") Submit
div
if message
#contact-message
p=message
if success
p=success
span#email=email