Skip to content

Commit 1a5d3e2

Browse files
committed
better form
1 parent 1b51e69 commit 1a5d3e2

File tree

3 files changed

+49
-6
lines changed

3 files changed

+49
-6
lines changed

_layouts/contact.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@
22
layout: default
33
---
44
{% include header.html %}
5-
<main class="content" role="main" id="hero-about">
6-
<section class="main-content">
5+
<main class="" role="main" id="hero-contact">
6+
<section class="form-section">
77
{{ content }}
88
<form
9+
class="container-form"
910
action="https://formspree.io/f/maylovzq"
1011
method="POST"
1112
>
1213
<label>
1314
Your email:
14-
<input type="text" name="_replyto">
15+
<input type="text" name="_replyto" placeholder="Your email address">
1516
</label>
1617
<label>
1718
Your message:
18-
<textarea name="message"></textarea>
19+
<textarea name="message" placeholder="Write something..." ></textarea>
1920
</label>
2021

2122
<!-- your other form fields go here -->
@@ -24,4 +25,5 @@
2425
</form>
2526
{% include footer.html %}
2627
</section>
28+
2729
</main>

_sass/jekyll-theme-cayman.scss

+41
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,15 @@ nav > ul > li > a:hover {
189189
margin-top: 90vh;
190190
}
191191

192+
#hero-contact {
193+
display: flex;
194+
flex-direction: column;
195+
align-items: center;
196+
justify-content: center;
197+
height: 300px;
198+
margin-top: 40vh;
199+
}
200+
192201
.blog-header {
193202
display: contents;
194203
}
@@ -494,3 +503,35 @@ nav > ul > li > a:hover {
494503
.site-footer-credits {
495504
color: $blockquote-text-color;
496505
}
506+
507+
.form-section {
508+
max-width: 164rem;
509+
}
510+
511+
.container-form{
512+
display: grid;
513+
grid-template-columns: auto;
514+
grid-gap: 10px;
515+
background-color: #ffff;
516+
padding: 10px;
517+
}
518+
#subject{
519+
width:80%;
520+
}
521+
form{
522+
vertical-align: baseline;
523+
}
524+
input,
525+
textarea {
526+
border: 0.05em solid #2196F3;
527+
&:focus {
528+
border: 0.05em solid white;
529+
width: auto;
530+
}
531+
}
532+
533+
textarea {
534+
vertical-align: top;
535+
resize: vertical;
536+
max-width: none;
537+
}

contact.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ image: ./resources/webarkit-logo-social.jpg
66
permalink: /contact/
77
---
88

9-
# Contact US!
9+
# Contact us!
1010

11-
We are glad if you send a message, with your thinking
11+
We are glad if you send a message...

0 commit comments

Comments
 (0)