-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
107 lines (82 loc) · 3.69 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
<!Doctype>
<html>
<head>
<!-- Media query for narrow browser width -->
<link rel="stylesheet" media="only screen and (max-width: 480px)" href="styles/mobile.css">
<!-- Media query for medium browser width -->
<link rel="stylesheet" media="only screen and (min-width: 481px) and (max-width: 960px)" href="styles/tablet.css">
<!-- Media query for full browser width -->
<link rel="stylesheet" media="only screen and (min-width: 961px)" href="styles/desktop.css">
<!-- Prevent smartphones from scaling pages down -->
<meta name="viewport" content="initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans" rel="stylesheet"> <!-- links to the google font -->
</head>
<body>
<header>
<a href="index.html">
<div class="homepage_initials"><h1>C J C</h1></div>
</a>
<nav> <!-- navgiation with high five feature -->
<div class="dropdown">
<div class="dropbutton"> <!-- contains plain hand and high five hand logos -->
<img class="hand_logo" src="images/hand_logo.png">
<img class="high_five" src="images/high_five.png">
</div>
<div class="dropdown_content"> <!-- contains page jumps to different parts within the homepage -->
<a href="about.html">about</a>
<!--<!a href="http://i6.cims.nyu.edu/~cc4869/assignment6/#projects">projects</a>-->
<a href="resume.html">resume</a>
<a href="contact.html">contact</a>
</div>
<div class="high_five_text"><p>high five!</p></div> <!-- text underneath the logo -->
</div>
</nav>
<!-- this is the HAMBURGER NAVIGATION for tablet and mobile modes -->
<!-- source for hamburger nav - https://www.w3schools.com/howto/howto_js_dropdown.asp -->
<div class="hamburger" style="position:fixed;">
<button onclick="myFunction()" class="hamBtn"></button>
<div id="myDropdown" class="hamContent">
<a href="about.html">about</a>
<!--<a href="#projects">projects</a>-->
<a href="resume.html">resume</a>
<a href="contact.html">contact</a>
</div>
</div>
<!-- this is the JAVASCRIPT FOR THE HAMBURGER NAV -->
<script>
/* When the user clicks on the button, toggle between hiding and showing the dropdown content */
function myFunction() {
document.getElementById("myDropdown").classList.toggle("show");
}
/* Close the dropdown menu if the user clicks outside of it */
window.onclick = function(event) {
if (!event.target.matches('.hamBtn')) {
var dropdowns = document.getElementsByClassName("hamContent");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
</header>
<a name="contact">
<div class="contact"> <!-- contact page parent element -->
<div class="contact_info"> <!-- contact page children elements-->
<h2>contact me!</h2>
<p>+1 704 928 6483</p>
<p>[email protected]</p>
</div>
<!-- social media links -->
<div class="media_links">
<a href="https://www.instagram.com/cheyne.campbell/"><img src = "images/instagram.png"></a>
<a href="https://www.linkedin.com/in/cheyne-campbell/"><img src = "images/linkedin.png"></a>
<a href="https://twitter.com/CheyneCampbell"><img src = "images/twitter.png"></a>
</div>
</div>
</a> <!-- end of contact section -->
</body>
</html>