mirror of
https://github.com/aurora-dot/pastel.codes.git
synced 2025-04-28 05:22:11 +01:00
Fix contact, edit Dockerfile, and package.json, fix small bugs in pages
This commit is contained in:
parent
592be102b8
commit
cd2950074b
@ -5,7 +5,7 @@ ENV NODE_ENV=production
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ["package.json", "package-lock.json*", "./"]
|
COPY ["package.json", "package-lock.json*", "./"]
|
||||||
RUN npm install && npm install nodemon
|
RUN npm install && npm build-tails && npm install nodemon
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
CMD [ "npm", "start" ]
|
CMD [ "npm", "start" ]
|
||||||
|
@ -30,9 +30,7 @@
|
|||||||
"nodemailer": "^6.6.0",
|
"nodemailer": "^6.6.0",
|
||||||
"pug": "^3.0.2",
|
"pug": "^3.0.2",
|
||||||
"tailwind-hamburgers": "^1.1.1",
|
"tailwind-hamburgers": "^1.1.1",
|
||||||
"winston": "^3.3.3"
|
"winston": "^3.3.3",
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"autoprefixer": "^10.3.4",
|
"autoprefixer": "^10.3.4",
|
||||||
"npm-watch": "^0.11.0",
|
"npm-watch": "^0.11.0",
|
||||||
"postcss-cli": "^8.3.1",
|
"postcss-cli": "^8.3.1",
|
||||||
|
@ -40,7 +40,7 @@ block content
|
|||||||
img(class="w-2/3" src=val.feature_image)
|
img(class="w-2/3" src=val.feature_image)
|
||||||
else
|
else
|
||||||
img(src="/images/logo.png")
|
img(src="/images/logo.png")
|
||||||
div
|
div.mb-5
|
||||||
a(href=val.url)
|
a(href=val.url)
|
||||||
h1.font-sans.text-3xl.mt-3.mb-3 #{val.title}
|
h1.font-sans.text-3xl.mt-3.mb-3 #{val.title}
|
||||||
p.text-lg #{val.excerpt}
|
p.text-lg #{val.excerpt}
|
||||||
@ -56,7 +56,7 @@ block content
|
|||||||
img(class="w-2/3" src=val.feature_image)
|
img(class="w-2/3" src=val.feature_image)
|
||||||
else
|
else
|
||||||
img(src="/images/logo.png")
|
img(src="/images/logo.png")
|
||||||
div
|
div.mb-5
|
||||||
a(href=val.url)
|
a(href=val.url)
|
||||||
h1.font-sans.text-3xl.mt-3.mb-3 #{val.title}
|
h1.font-sans.text-3xl.mt-3.mb-3 #{val.title}
|
||||||
p.text-lg #{val.excerpt}
|
p.text-lg #{val.excerpt}
|
||||||
|
@ -24,29 +24,30 @@ block nav-links
|
|||||||
span Contact
|
span Contact
|
||||||
|
|
||||||
block content
|
block content
|
||||||
div
|
div.w-full
|
||||||
div
|
div
|
||||||
h1.font-sans.text-6xl.wavy.mb-10 Contact.
|
h1.font-sans.text-6xl.wavy.mb-10 Contact.
|
||||||
|
|
||||||
div
|
div
|
||||||
form#contact-form(action='/contact' method='post' role='form')
|
form#contact-form(action='/contact' method='post' role='form')
|
||||||
.form-group
|
div.mb-5
|
||||||
label Name
|
label Name
|
||||||
.form-row
|
div(class="sm:flex sm:flex-row")
|
||||||
.col
|
.flex.w-full
|
||||||
input#fname(name='firstname' class="form-control" type='text' placeholder='First name' required="true")
|
input#fname(class="w-full border-2 border-pink bg-black p-2 text-base" name='firstname' class="form-control" type='text' placeholder='First name' required="true")
|
||||||
.col
|
div(class="mb-3 sm:mb-0 sm:ml-5")
|
||||||
input#lname(name='lastname' class="form-control" type='text' placeholder='Last name' required="true")
|
.flex.w-full
|
||||||
|
input#lname(class="w-full border-2 border-pink bg-black p-2 text-base" name='lastname' class="form-control" type='text' placeholder='Last name' required="true")
|
||||||
|
|
||||||
.form-group
|
div.mb-5
|
||||||
label(for='email') Email
|
label(for='email') Email
|
||||||
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}$")
|
input#email(class="w-full border-2 border-pink bg-black p-2 text-base" 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
|
div.mb-5
|
||||||
label(for='message') Message
|
label(for='message') Message
|
||||||
textarea#message(name='message' class="form-control" placeholder='Enter your message here' rows='3' required='true')
|
textarea#message(class="w-full border-2 border-pink bg-black p-2 text-base" name='message' class="form-control" placeholder='Enter your message here' rows='3' required='true')
|
||||||
.form-group(style="margin-bottom: 0.5rem")
|
div.mb-5
|
||||||
.h-captcha(data-sitekey='49abba50-1813-4ab3-acbf-2a8bfff1f7c3')
|
.h-captcha(data-sitekey='49abba50-1813-4ab3-acbf-2a8bfff1f7c3')
|
||||||
button(type='submit' class="button-c") Submit
|
button(type='submit' class="rounded-lg px-3 py-2 bg-pink text-black text-lg hover:ring-pink hover:ring-2 hover:bg-black hover:text-pink") Submit
|
||||||
|
|
||||||
div
|
div
|
||||||
if message
|
if message
|
||||||
|
@ -22,7 +22,7 @@ block nav-links
|
|||||||
|
|
||||||
block content
|
block content
|
||||||
div(class="flex sm:w-2/4 items-center sm:my-0 mt-10 mb-16")
|
div(class="flex sm:w-2/4 items-center sm:my-0 mt-10 mb-16")
|
||||||
div.text-3xl
|
div.text-2xl
|
||||||
h1(class="font-sans text-7xl pb-5 sm:pb-10")
|
h1(class="font-sans text-7xl pb-5 sm:pb-10")
|
||||||
| Hello,
|
| Hello,
|
||||||
br
|
br
|
||||||
|
Loading…
Reference in New Issue
Block a user