Skip to content

Commit c29db94

Browse files
committedAug 15, 2024·
navbar styles
1 parent e8f687e commit c29db94

File tree

1 file changed

+2
-63
lines changed

1 file changed

+2
-63
lines changed
 

‎components/Navbar/Navbar.js

+2-63
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,12 @@
11
const Navbar = () =>{
22
return(
33
/*html*/`
4-
<!-- <link rel="stylesheet" href="./components/Navbar/Navbar.css"> -->
4+
<link rel="stylesheet" href="./components/Navbar/Navbar.css">
55
<ul id="navbar">
66
<li onclick="Home()">home</li>
77
<li onclick="Contact()">contact</li>
88
</ul>
9-
10-
<style>
11-
#headAndNav{
12-
display: flex;
13-
flex-direction: row;
14-
justify-content: space-between;
15-
align-items: center;
16-
}
17-
#headAndNav ul{
18-
list-style: none;
19-
display: flex;
20-
flex-direction: row;
21-
margin: 0;
22-
padding: 0;
23-
24-
}
25-
#headAndNav ul li{
26-
padding: 1rem;
27-
}
28-
.bg{
29-
background: transparent;
30-
backdrop-filter: blur(10px);
31-
position:fixed;
32-
bottom: 0;
33-
right: 0;
34-
z-index: 10;
35-
36-
}
37-
38-
@media only screen and (max-width: 700px) {
39-
#headAndNav{
40-
flex-direction: column-reverse;
41-
justify-content: flex-start;
42-
align-items: flex-start ;
43-
44-
}
45-
#headAndNav ul li{
46-
margin: 0;
47-
padding-right: 1rem;
48-
padding-left: 0;
49-
}
50-
51-
ul{
52-
position:sticky;
53-
top: 0;
54-
left:50;
55-
height: max-content;
56-
width: max-content;
57-
}
58-
}
59-
60-
ul li{
61-
position: relative;
62-
color: #000;
63-
text-decoration: none;
64-
cursor: pointer;
65-
}
66-
67-
ul li:hover {
68-
color: #000;
69-
}
70-
</style>`
9+
`
7110
)
7211
}
7312
export default Navbar

0 commit comments

Comments
 (0)
Please sign in to comment.