-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.html
97 lines (97 loc) · 3.3 KB
/
about.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>John Deo - Photographer</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Playfair+Display&family=Work+Sans:wght@400&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="assets/css/style.css" />
</head>
<body>
<nav class="nav">
<div class="container-fluid">
<a href="index.html" class="navbar-brand">John Deo</a>
<a href="javascript:void(0)" class="navbar-toggler" id="navbartoggler"
>kadel</a
>
</div>
<div class="navbar-collapse">
<ul class="navbar-nav" id="navbar-nav">
<li class="nav-item">
<a href="index.html" class="nav-link">Home</a>
</li>
<li class="nav-item">
<a href="about.html" class="nav-link">About</a>
</li>
<li class="nav-item">
<a href="contact.html" class="nav-link">Contact</a>
</li>
</ul>
</div>
</nav>
<section class="about-page hero">
<img src="https://picsum.photos/700/200" alt="" />
<h1>Hello, I'm John Doe.</h1>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur
adipisci nulla voluptate nemo doloribus, est inventore enim ducimus
ipsa, accusamus, ab repudiandae iste culpa commodi.
</p>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur
adipisci nulla voluptate nemo doloribus, est inventore enim ducimus
ipsa, accusamus, ab repudiandae iste culpa commodi.
</p>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequuntur
adipisci nulla voluptate nemo doloribus, est inventore enim ducimus
ipsa, accusamus, ab repudiandae iste culpa commodi.
</p>
</section>
<footer>
<div class="container">
<ul>
<li>
<a href="#"
><img src="assets/images/twitter.svg" alt="twitter logo"
/></a>
</li>
<li class="social">
<a href="#"
><img src="assets/images/instagram.svg" alt="instagram logo"
/></a>
</li>
</ul>
<ul class="contact">
<li>(555) 555-5555</li>
<li>email@example.com</li>
</ul>
<!-- <hr /> -->
</div>
<p>© John Doe 2022</p>
</footer>
<script>
let navtoggler = document.getElementById('navbartoggler');
let navfind = document.getElementById('navbar-nav');
navtoggler.addEventListener('click', togglenav);
console.log(navfind.className);
function togglenav() {
if (navfind.className === 'navbar-nav') {
console.log('hello');
navfind.className += ' responsive';
console.log('added responsive class');
} else {
console.log('hello from else');
navfind.className = 'navbar-nav';
console.log('removed responsive class');
}
}
</script>
</body>
</html>