File tree 1 file changed +2
-63
lines changed
1 file changed +2
-63
lines changed Original file line number Diff line number Diff line change 1
1
const Navbar = ( ) => {
2
2
return (
3
3
/*html*/ `
4
- <!-- < link rel="stylesheet" href="./components/Navbar/Navbar.css"> -- >
4
+ <link rel="stylesheet" href="./components/Navbar/Navbar.css">
5
5
<ul id="navbar">
6
6
<li onclick="Home()">home</li>
7
7
<li onclick="Contact()">contact</li>
8
8
</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
+ `
71
10
)
72
11
}
73
12
export default Navbar
You can’t perform that action at this time.
0 commit comments