-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
122 lines (104 loc) · 3.06 KB
/
contact.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?family=Oswald:300,400|Roboto+Mono&display=swap" rel="stylesheet">
<style>
* {
box-sizing: border-box;
font-family: "Roboto Mono", monospace;
background-color: rgb(255, 255, 255);
}
body {
margin: 0;
padding: 1rem;
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
font-size: 1.1rem;
}
a {
text-decoration: none;
}
.co2 {
display: flex;
width: 100%;
justify-content: space-between;
flex-wrap: wrap;
}
.col {
width: 20rem;
}
.form {
height: fit-content;
}
.form-control,
.btn {
border: solid black;
}
.frm {
display: flex;
flex-direction: column;
}
.ro input {
margin: .5rem 0;
padding: 1rem;
width: 100%;
height: 3rem;
}
.ro textarea {
padding: 1rem;
margin: .5rem 0;
width: 100%;
height: 15vh;
}
.btn {
height: 3rem;
font-weight: bold;
transition: .3s ease-in-out;
}
.btn:hover {
box-shadow: 2.5px 2.5px 2.5px 2.5px gray;
}
</style>
<title>Contact Form</title>
</head>
<body>
<div class="co">
<div class="co2">
<div class="col">
<h2>Planet Earth</h2>
<p>Under the blue sky, near a coconut tree
</p>
</div>
<div class="col">
<h2>Contact Info</h2>
<p>
T: <a href="tel:8156877090">8156877090</a> <br>
E: <a href="mailto: [email protected]">[email protected]</a>
</p>
</div>
</div>
<div class="frm">
<h2>Message Me</h2>
<form action="mailto:[email protected]" class="form" method="post" id="contactForm" name="contactForm">
<div class="ro">
<input type="text" class="form-control" name="name" id="name" placeholder="Your name">
<input type="text" class="form-control" name="email" id="email" placeholder="Email">
</div>
<div class="ro">
<textarea class="form-control" name="message" id="message"
placeholder="Write your message"></textarea>
</div>
<div class="ro">
<input type="submit" value="Send Message" class="btn">
</div>
</form>
</div>
</div>
</body>
</html>