Skip to content

Commit e2e488f

Browse files
authored
Merge pull request #22 from Yaser-123/main
Contact us form
2 parents 6696e9d + 170fe74 commit e2e488f

File tree

4 files changed

+125
-17
lines changed

4 files changed

+125
-17
lines changed

Contact us/contact.html

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Document</title>
7+
<link rel="stylesheet" href="style.css">
8+
<script src="https://kit.fontawesome.com/2815a7015d.js" crossorigin="anonymous"></script>
9+
</head>
10+
<body>
11+
<div id="contact">
12+
<div class="container">
13+
<div class="row">
14+
<div class="contact-left">
15+
<h1 class="sub-title">Contact Me</h1>
16+
17+
<div class="social-icon">
18+
<a href="#" target="_blank"><i class="fa-brands fa-facebook"></i></a>
19+
<a href="#" target="_blank"><i class="fa-brands fa-twitter-square"></i></a>
20+
<a href="#" target="_blank"><i class="fa-brands fa-instagram"></i></a>
21+
<a href="#" target="_blank"><i class="fa-brands fa-linkedin"></i></a>
22+
</div>
23+
24+
</div>
25+
<div class="contact-right">
26+
<form name="submit-to-google-sheet">
27+
<input type="text" name="Name" placeholder="Your Name" required>
28+
<input type="email" name="Email" placeholder="Your Email" required>
29+
<textarea name="Message" rows="6" placeholder="Your Message"></textarea>
30+
<button type="submit" class="btn btn2">Submit</button>
31+
</form>
32+
<span id="msg"></span>
33+
</div>
34+
</div>
35+
</div>
36+
</body>
37+
</html>

Contact us/style.css

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
*{
2+
margin: 0;
3+
padding: 0;
4+
font-family: 'poppins', sans-serif;
5+
box-sizing: border-box;
6+
}
7+
html{
8+
scroll-behavior: smooth;
9+
}
10+
body{
11+
background: lightcyan;
12+
color: black;
13+
}
14+
15+
.contact-left{
16+
flex-basis: 35%;
17+
padding: 20px;
18+
}
19+
.contact-right{
20+
flex-basis: 60%;
21+
padding: 20px;
22+
}
23+
.contact-left p{
24+
margin-top: 30px;
25+
}
26+
.contact-left p i{
27+
color: #ff004f;
28+
margin-right: 15px;
29+
font-size: 25px;
30+
}
31+
.social-icon{
32+
margin-top: 30px;
33+
}
34+
.social-icon a{
35+
text-decoration: none;
36+
font-size: 30px;
37+
margin-right: 15px;
38+
color: blue;
39+
display: inline-block;
40+
transition: transform 0.5s;
41+
}
42+
.social-icon a:hover{
43+
color: yellowgreen;
44+
transform: translateY(-5px);
45+
}
46+
.btn.btn2{
47+
display: inline-block;
48+
background: blueviolet;
49+
border-radius: 14px;
50+
color: white;
51+
}
52+
.btn.btn2:hover{
53+
background-color: #ff004f;
54+
}
55+
56+
.contact-right form{
57+
width: 100%;
58+
}
59+
form input, form textarea{
60+
width: 100%;
61+
border: 0;
62+
outline: none;
63+
background: rgb(232, 210, 238);
64+
padding: 15px;
65+
margin: 15px 0;
66+
color: #fff;
67+
font-size: 18px;
68+
border-radius: 6px;
69+
}
70+
form .btn2{
71+
padding: 14px 60px;
72+
font-size: 18px;
73+
margin-top: 20px;
74+
cursor: pointer;
75+
}
76+
.copyright{
77+
width: 100%;
78+
text-align: center;
79+
padding: 25px 0;
80+
background: #262626;
81+
font-weight: 300;
82+
margin-top: 20px;
83+
}
84+
.copyright i{
85+
color: #ff004f;
86+
}

contact.html

Lines changed: 0 additions & 15 deletions
This file was deleted.

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<li><a href="serv.html">Services</a></li>
2121
<li><a href="about.html">About</a></li>
2222
<li><a href="review.html">Reviews</a></li>
23-
<li><a href="contact.html">Contact</a></li>
23+
<li><a href="Contact us/contact.html">Contact</a></li>
2424
</ul>
2525
<div class="header-btn">
2626
<a href="#" class="sign-up">Admin</a>
@@ -202,7 +202,7 @@ <h1>Get to know more about our company, our mission, and our commitment to provi
202202
<ul>
203203
<li><a href="#">Media Center</a></li>
204204
<li><a href="#">Terms of Use</a></li>
205-
<li><a href="#">Contact Us</a></li>
205+
<li><a href="Contact us/contact.html">Contact Us</a></li>
206206
</ul>
207207
</div>
208208
</div>

0 commit comments

Comments
 (0)