Skip to content

Commit 8b2f8b2

Browse files
committed
Feat: CC, Favicon, MDJAmin
1 parent 3de0d4a commit 8b2f8b2

File tree

6 files changed

+85
-21
lines changed

6 files changed

+85
-21
lines changed

assets/close_FILL0_wght400_GRAD0_opsz48.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/laptop.jpg

-401 KB
Binary file not shown.

assets/menu_FILL0_wght400_GRAD0_opsz48.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

css/style.css

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,24 @@
44
list-style: none;
55
text-decoration: none;
66
box-sizing: border-box;
7+
overflow-y: hidden;
78
}
89
body {
9-
min-height: 100vh;
10+
min-height: 90vh;
1011
background: url("laptop.jpg");
1112
background-size: cover;
1213
background-repeat: no-repeat;
1314
background-position: center;
1415
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
1516
}
1617
nav {
17-
background-color: white;
18+
background-color: #337c60;
1819
box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
20+
position: fixed;
21+
top: 0;
22+
left: 0;
23+
right: 0;
24+
z-index: 1000;
1925
}
2026
nav ul {
2127
width: 100%;
@@ -33,11 +39,11 @@ nav a {
3339
text-decoration: none;
3440
display: flex;
3541
align-items: center;
36-
color: black;
42+
color: white;
3743
}
3844

3945
nav a:hover {
40-
background-color: #f0f0f0;
46+
background-color: #5d8475ac;
4147
}
4248
nav li:first-child {
4349
margin-right: auto;
@@ -80,5 +86,38 @@ nav li:first-child {
8086
}
8187
}
8288
.Hero-bg {
89+
height: 100vh;
8390
width: 100%;
8491
}
92+
93+
.MDJAminDiv {
94+
z-index: 4444;
95+
position: fixed;
96+
bottom: 5%;
97+
left: 2%;
98+
z-index: 100;
99+
}
100+
101+
.MDJAmin {
102+
text-decoration: none;
103+
padding: 4px 0;
104+
/* color: rgba(44, 44, 44, 0.525); */
105+
color: rgba(204, 204, 204, 0.414);
106+
font-family: monospace;
107+
font-style: italic;
108+
font-size: 1.1em;
109+
transition: all 0.5s;
110+
}
111+
112+
.MDJAmin:hover {
113+
/* color: #000000; */
114+
color: #28bc83;
115+
}
116+
117+
.menuBtn {
118+
font-size: 2em;
119+
}
120+
121+
.closeBtn {
122+
font-size: 2em;
123+
}

favicon.png

28.9 KB
Loading

index.html

Lines changed: 42 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,31 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<link rel="stylesheet" href="css/style.css" />
5+
<meta
6+
name="viewport"
7+
content="width=device-width, initial-scale=1.0"
8+
/>
9+
<link
10+
rel="stylesheet"
11+
href="css/style.css"
12+
/>
13+
<link
14+
rel="shortcut icon"
15+
href="favicon.png"
16+
type="image/x-icon"
17+
/>
718
<title>Responsive Navbar</title>
819
</head>
920
<body>
1021
<nav>
1122
<ul class="sidebar">
1223
<li>
13-
<a href="#" onclick="hideSidebar()"
14-
><img
15-
src="assets/close_FILL0_wght400_GRAD0_opsz48.svg"
16-
alt="Close-icon"
17-
/></a>
24+
<a
25+
class="closeBtn"
26+
href="#"
27+
onclick="hideSidebar()"
28+
>×</a
29+
>
1830
</li>
1931
<li><a href="#">Blog</a></li>
2032
<li><a href="#">Products</a></li>
@@ -23,24 +35,39 @@
2335
<li><a href="#">Login</a></li>
2436
</ul>
2537
<ul>
26-
<li><a href="#">A~Shop</a></li>
38+
<li><a href="https://github.com/MDJAmin">MDJAmin</a></li>
2739
<li class="hideOnMobile"><a href="#">Blog</a></li>
2840
<li class="hideOnMobile"><a href="#">Products</a></li>
2941
<li class="hideOnMobile"><a href="#">About</a></li>
3042
<li class="hideOnMobile"><a href="#">Forum</a></li>
3143
<li class="hideOnMobile"><a href="#">Login</a></li>
32-
<li class="menu-button" onclick="showSidebar()">
33-
<a href="#"
34-
><img
35-
src="assets/menu_FILL0_wght400_GRAD0_opsz48.svg"
36-
alt="Menu-icon"
37-
/></a>
44+
<li
45+
class="menu-button"
46+
onclick="showSidebar()"
47+
>
48+
<a
49+
class="menuBtn"
50+
href="#"
51+
>=</a
52+
>
3853
</li>
3954
</ul>
4055
</nav>
4156
<main>
42-
<img class="Hero-bg" src="assets/laptop.jpg" alt="Hero-img" />
57+
<img
58+
class="Hero-bg"
59+
src="https://images.unsplash.com/photo-1755134148217-2dd89cc6a2c2?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
60+
alt="Hero-img"
61+
/>
4362
</main>
63+
<div class="MDJAminDiv">
64+
<a
65+
class="MDJAmin"
66+
href="https://github.com/MDJAmin"
67+
target="_blank"
68+
>MDJAmin</a
69+
>
70+
</div>
4471
<script>
4572
function showSidebar() {
4673
const sidebar = document.querySelector(".sidebar");

0 commit comments

Comments
 (0)