-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (71 loc) · 2.45 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta -->
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="YOUR DESCRIPTION OF WEBSITE" />
<!-- Title -->
<title>Document</title>
<!-- Favicon, Fonts, CDN Links, etc. -->
<link rel="stylesheet" href="./styles/main.css" />
<!-- Scripts -->
<script src="./scripts/script.js"></script>
</head>
<body>
<!-- Semantics in HTML found here: https://developer.mozilla.org/en-US/docs/Glossary/Semantics#semantics_in_html -->
<!-- Header and navigation-->
<header class="header">
<nav class="nav">
<img src="{IMG-SOURCE}" class="logo" alt="Your logo" />
<!--
Hamburger menu or you can use styled <span> tags and animate them on click(recommended). Example in *React*:
<span
className="line"
style={
isClicked
? { transform: "translateY(5px) rotate(45deg)" }
: { transform: "none" }
}
></span>
<span
className="line"
style={isClicked ? { opacity: 0 } : { opacity: 1 }}
></span>
<span
className="line"
style={
isClicked
? { transform: "translateY(-5px) rotate(-45deg)" }
: { transform: "none" }
}
></span>
NOTE: You must add the class "line" to each span tag with height, color, and width in your CSS.
EXAMPLE OF CSS applied to the span tags:
.line {
background-color: var(--color-primary);
display: block;
height: 2px;
margin-bottom: 3px;
transition: transform 250ms, opacity 250ms;
width: 18px;
}
-->
<div class="hamburger" id="hamburger">
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
</div>
<!--Navigation menu-->
<ul class="nav-ul" id="nav-ul">
<li><a href="#about">About</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#skills">Skills</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
<!--Put as many sections, articles, divs, or footers you need.-->
</body>
</html>