forked from CodeYourFuture/HTML-CSS-Coursework-Week3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
85 lines (80 loc) · 3.34 KB
/
index.html
File metadata and controls
85 lines (80 loc) · 3.34 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Responsive Cake webpage</title>
<!-- Add a link to your css file here -->
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/style.css" />
</head>
<body>
<header class="header">
<nav class="navbar">
<img src="img/istockphoto-1079817466-612x612.jpg" class="nav-logo" alt="logo"/>
<ul class="nav-menu">
<li class="nav-item">
<a href="#" class="nav-link">HOME</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">CAKES</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">ORDERIN</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">LESSONS</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">ABOUT</a>
</li>
</ul>
<div class="hamburger">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</div>
</nav>
<p class="slogan">The best cakes in town<br> delivered to your door!</p>
</header>
<main class="main">
<section class="welcome">
<div>
<h1 class="h1">Welcome</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
when an unknown printer took a galley of type and scrambled it to make a
type specimen book. It has survived not only five centuries, but also
the leap into electronic typesetting, remaining essentially
unchanged.</p>
</div>
</section>
<section class="bigImage">
<img class="cake" src="img/istockphoto-1351933727-612x612.jpg" alt="Cake"/>
</section>
<section class="images">
<img src="img/img1.jpg" alt="1" />
<img src="img/img2.jpg" alt="1" />
<img src="img/img3.jpg" alt="1" />
<img src="img/img4.jpg" alt="1" />
</section>
</main>
<footer>
<p>Lorem Ipsum is simply</p>
<p>Lorem Ipsum is simply</p>
<p>Lorem Ipsum is simply</p>
<p class="footer">Lorem Ipsum is simply</p>
</footer>
<!-- js for Hamburger -->
<script>
const hamburger = document.querySelector(".hamburger");
const navMenu = document.querySelector(".nav-menu");
hamburger.addEventListener("click", mobileMenu);
function mobileMenu() {
hamburger.classList.toggle("active");
navMenu.classList.toggle("active");
}
</script>
</body>
</html>