improve style of contact

This commit is contained in:
gws 2024-11-06 14:08:12 +01:00
parent 52f36b4ba4
commit 474c65d154
3 changed files with 228 additions and 75 deletions

View file

@ -6,25 +6,35 @@ weight = 2
disable_toc = true
+++
## Get in touch
Send a mail to [hello.vumwi@aleeas.com](mailto:hello.vumwi@aleeas.com)
Or use the form bellow:
<form class="contact-form">
<h2>Contact Form</h2>
<div class="input-fields">
<input type="text" class="input" placeholder="Your Name"\>
<input type="text" class="input" placeholder="Your Emaill "\>
<input type="text" class="input" placeholder="Your Phone "\>
<div class="contact-form">
<div class="first-container">
<div class="info-container">
<div><img class="icon" />
<h3>Address</h3>
<p>Mada Center 8th floor, 379 Hudson St, New York, NY 10018 US</p>
</div>
<div> <img class="icon" />
<h3>Lets Talk</h3>
<p>+1 800 1236879</p>
</div>
<div><img class="icon" />
<h3>General Support</h3>
<p>contact@example.com</p>
</div>
</div>
</div>
<div class="msg">
<textarea placeholder="Message *"></textarea>
<div class="second-container">
<h2>Send Us A Message</h2>
<form>
<div class="form-group"><label for="name-input">Tell us your name*</label><input id="name-input" type="text"
placeholder="First name" required="required" /><input type="text" placeholder="Last name"
required="required" /></div>
<div class="form-group"><label for="email-input">Enter your email*</label><input id="email-input" type="text"
placeholder="Eg. example@email.com" required="required" /></div>
<div class="form-group"><label for="phone-input">Enter phone number*</label><input id="phone-input" type="text"
placeholder="Eg. +1 800 000000" required="required" /></div>
<div class="form-group"><label for="message-textarea">Message</label><textarea id="message-textarea"
placeholder="Write us a message"></textarea></div><button>Send message</button>
</form>
</div>
<div>
<button disabled> Send message</button>
</div>
<small> Form backend under construction</small>
</form>
</div>

28
content/software.md Normal file
View file

@ -0,0 +1,28 @@
+++
title = "Software"
description = "Software Development Consulting"
weight = 1
+++
## Get in touch
Send a mail to [hello.vumwi@aleeas.com](mailto:hello.vumwi@aleeas.com)
Or use the form bellow:
<form class="contact-form">
<h2>Contact Form</h2>
<div class="input-fields">
<input type="text" class="input" placeholder="Your Name"\>
<input type="text" class="input" placeholder="Your Emaill "\>
<input type="text" class="input" placeholder="Your Phone "\>
</div>
<div class="msg">
<textarea placeholder="Message *"></textarea>
</div>
<div>
<button disabled> Send message</button>
</div>
<small> Form backend under construction</small>
</form>

View file

@ -1,71 +1,186 @@
form {
/* width: 100%; */
margin: 0 auto;
text-align: center;
border-top: 5px solid var(--primary-color);
background-color: var(--toc-background-color);
padding: 1em;
/* @import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap'); */
h2 {
color: var(--primary-text-color);
text-transform: capitalize;
font-size: 1.5em;
$bg: #f2f2f2;
$white: #fff;
$black: #333;
$gray: #999;
$green: #00b3aa;
$border: 1px solid #e6e6e6;
* {
padding: 0;
margin: 0;
box-sizing: border-box;
outline: none;
/* font-family: 'Poppins', sans-serif; */
}
body {
/* height: 100vh; */
/* display: flex; */
/* justify-content: center; */
/* align-items: flex-start; */
/* background: $bg; */
}
.content {
max-width: unset;
}
.contact-form {
width: 80vw;
display: flex;
justify-content: space-between;
background: var(--primary-color);
padding-top: 10px;
margin: 50px 0;
&>* {
width: 50%;
}
p {}
}
.first-container {
background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url("https://colorlib.com/etc/cf/ContactFrom_v17/images/bg-01.jpg") center center / cover no-repeat;
display: flex;
justify-content: center;
align-items: center;
button {
padding: 1em 1.3em;
/* color: #ffffff; */
/* text-transform: uppercase; */
border: 1px solid var(--primary-link-color);
/* background: blue; */
/* cursor: pointer; */
/* border-radius: 3px; */
/* margin-right: 40px; */
/* margin-top: 15px; */
}
.info-container {
div {
margin: 24px 0;
button:hover {
/* border: 1px solid --var(toc)-highlight-text-color; */
background: var(--primary-link-color);
/* background: blue; */
}
h3 {
color: $white;
font: {
size: 18px;
weight: 400;
}
line-height: 1.2;
padding-bottom: 10px;
}
.input-fields {
width: 45%;
float: left;
overflow: hidden;
margin-right: 1em;
margin-top: 2.5em;
&:first-of-type p {
max-width: 260px;
color: $gray;
}
input {
/* width: 354px; */
padding: 0.6em 1.3em;
margin-bottom: 1em;
border: 0;
/* border-radius: 3px; */
p {
font-size: 16px;
line-height: 1.6;
color: $green;
}
}
}
}
}
.second-container {
padding: 30px;
background: var(--toc-background-color);
.msg {
width: 45%;
float: left;
overflow: hidden;
margin-right: 1em;
margin-top: 2.5em;
h2 {
font: {
size: 30px;
weight: 400;
}
textarea {
width: 354px;
padding: 10px 20px;
margin-bottom: 20px;
height: 160px;
border: 0;
/* border-radius: 3px; */
/* resize: none; */
line-height: 1.2;
text-align: center;
margin-bottom: 20px;
}
form {
display: flex;
flex-direction: column;
.form-group {
margin-bottom: 10px;
* {
min-height: 55px;
border: $border;
padding: 0 20px;
}
label {
display: flex;
align-items: center;
width: 100%;
border: $border;
font-size: 16px;
/* color: $black; */
text-transform: uppercase;
margin-top: -1px;
}
&:first-of-type input {
width: 50.1%;
margin-right: -5px;
}
input {
width: 100%;
font-size: 15px;
margin-top: -2px;
}
input::placeholder,
textarea::placeholder {
color: $gray;
}
textarea {
width: 100%;
min-height: 80px;
resize: none;
padding: 10px 20px;
margin-top: -1px;
}
}
button {
width: 200px;
height: 50px;
background: $green;
color: $white;
font: {
size: 17px;
weight: 600;
}
text-transform: uppercase;
border: 0;
position: relative;
left: calc(50% - 100px);
cursor: pointer;
&:hover {
background: $black;
}
}
}
}
}
@media screen and (max-width: 800px) {
.contact-form {
width: 90vw;
}
}
@media screen and (max-width: 700px) {
.contact-form {
flex-direction: column-reverse;
&>* {
width: 100%;
}
.first-container {
padding: 40px 0;
}
}
}