Skip to content

Commit 9864ab3

Browse files
committed
add navbar
1 parent 3b79dc5 commit 9864ab3

File tree

3 files changed

+53
-5
lines changed

3 files changed

+53
-5
lines changed

photo-ninja/index.html

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
<meta charset="UTF-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<link
8+
rel="stylesheet"
9+
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
10+
integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA=="
11+
crossorigin="anonymous"
12+
/>
713
<link
814
href="https://fonts.googleapis.com/icon?family=Material+Icons"
915
rel="stylesheet"
@@ -12,13 +18,43 @@
1218
rel="stylesheet"
1319
href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"
1420
/>
15-
16-
<title>Materialize</title>
21+
<link rel="stylesheet" href="style.css" />
22+
<title>Photo Ninja</title>
1723
</head>
1824
<body>
19-
<div class="container">
20-
<h1>Materialize</h1>
21-
</div>
25+
<!-- navbar -->
26+
<header>
27+
<nav class="nav-wraper transparent">
28+
<div class="container">
29+
<a href="#" class="brand-logo">Photo Ninja</a>
30+
<a href="#" class="sidenav-trigger" data-target="mobile-menu"
31+
><i class="material-icons">menu</i></a
32+
>
33+
<ul class="right hide-on-med-and-down">
34+
<li><a href="#">Portfolio</a></li>
35+
<li><a href="#">Services</a></li>
36+
<li><a href="#">Contact</a></li>
37+
</ul>
38+
<ul class="sidenav grey lighten-2" id="mobile-menu">
39+
<li><a href="#">Portfolio</a></li>
40+
<li><a href="#">Services</a></li>
41+
<li><a href="#">Contact</a></li>
42+
</ul>
43+
</div>
44+
</nav>
45+
</header>
46+
<!-- photo / grid -->
47+
48+
<!-- parallax -->
49+
50+
<!-- services / tabs -->
51+
52+
<!-- parallax -->
53+
54+
<!-- contact form -->
55+
56+
<!-- footer -->
2257
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
58+
<script src="index.js"></script>
2359
</body>
2460
</html>

photo-ninja/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const sidenav = document.querySelector(".sidenav");
2+
M.Sidenav.init(sidenav);

photo-ninja/style.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
header {
2+
background: url(https://i.ibb.co/TbFxMgn/man-min.jpg) center / cover;
3+
min-height: 100vh;
4+
}
5+
6+
@media screen and (max-width: 670px) {
7+
header {
8+
min-height: 50vh;
9+
}
10+
}

0 commit comments

Comments
 (0)