-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (59 loc) · 2.17 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Landing Page</title>
<link rel="stylesheet" href="./assets/style.css">
</head>
<body>
<header>
<nav>
<h1 class="company-name"> Tim O'Brien</h1>
<ul class="nav-bar">
<li class="nav-list" > <a href="https://github.com/timmobrien" target="blank"> Github </a> </li>
<li class="nav-list" > <a href="https://www.linkedin.com/in/timothy-o-brien-7a293b17a/" target="blank"> LinkedIn </a> </li>
</ul>
</nav>
</header>
<div id="hero">
<div class="hero-txt">
<button class="button-txt" onClick="openForm()"> Contact Me </button>
<button class="button-txt" onClick="openAbout()"> About Me</button>
</div>
<div class="form-popup" id="form">
<form action="action_page.php" class="form-container">
<button type="reset" class="close-button topright" onclick="closeForm()">X</button>
<h1> Contact Me </h1>
<label for ="email"><b>Email</b></label>
<input type="text" placeholder="[email protected]" name="email" required>
<label for ="Name"><b>Name</b></label>
<input type="text" placeholder="Enter your full name" name="email" required>
<label for ="message"><b>Your Message</b></label>
<textarea placeholder="Please type your message here" name="message" style="height:200px"required> </textarea>
<button type="submit" class="btn" onclick="closeForm()">Submit</button>
</form>
</div>
<div class="about-popup" id="about">
<button type="reset" class="close-button topright" onclick="closeAbout()">X</button>
<div class="aboutContainer">
<h1>Hi, I'm Tim!</h1>
</div>
</div>
</div>
</div>
<script>
function openForm() {
document.getElementById("form").style.display = "block";
}
function closeForm() {
document.getElementById("form").style.display = "none";
}
function openAbout() {
document.getElementById("about").style.display = "block";
}
function closeAbout() {
document.getElementById("about").style.display = "none";
}
</script>
</body>
</html>