Browse Source

navbar: started working on

Lou 3 years ago
parent
commit
5427124019
3 changed files with 4 additions and 49 deletions
  1. 3
    4
      src/components/Navbar/index.jsx
  2. 0
    45
      src/components/Navbar/index.scss
  3. 1
    0
      src/main.jsx

+ 3
- 4
src/components/Navbar/index.jsx View File

@@ -3,7 +3,6 @@ import { Link } from "react-router-dom";
3 3
 import { useSelector } from "react-redux";
4 4
 import { FormattedMessage } from "react-intl";
5 5
 
6
-import "./index.scss";
7 6
 import Star from "../../assets/img/star.ico";
8 7
 import LogoutButton from "../buttons/LogoutButton";
9 8
 import { LOCALES } from "../../i18n/locales";
@@ -13,10 +12,10 @@ const Navbar = ({ handleLocaleChange, currentLocale }) => {
13 12
 
14 13
 	const languages = [
15 14
 		{ name: "Français", code: LOCALES.FRENCH },
16
-		{ name: "English", code: LOCALES.ENGLISH }
15
+		{ name: "English", code: LOCALES.ENGLISH },
17 16
 	];
18 17
 	return (
19
-		<div className="navbar">
18
+		<nav className="fixed flex bg-gray-500 w-screen">
20 19
 			<div className="navbar__LeftSide">
21 20
 				<Link to="/">
22 21
 					<img
@@ -76,7 +75,7 @@ const Navbar = ({ handleLocaleChange, currentLocale }) => {
76 75
 					</>
77 76
 				)}
78 77
 			</div>
79
-		</div>
78
+		</nav>
80 79
 	);
81 80
 };
82 81
 

+ 0
- 45
src/components/Navbar/index.scss View File

@@ -1,45 +0,0 @@
1
-.navbar{
2
-  display: flex;
3
-  align-items:center;
4
-  justify-content: space-between;
5
-  background-color: #262626;
6
-  height: 50px;
7
-  width: 100%;
8
-  margin-top: 5px;
9
-
10
-
11
-  &:before{
12
-    content: '';
13
-    background: linear-gradient(to right, #B4D4F2, #F2B4D4, #D4F2B4);
14
-    display: block;
15
-    position: absolute;
16
-    top: 0px;
17
-    width: 100%;
18
-    height: 5px;
19
-  }
20
-  
21
-  .navbar__LeftSide{
22
-    margin-left: 15px;
23
-    a{
24
-      display: flex;
25
-      align-items: center;
26
-      justify-content: space-between;
27
-      width: 100px;
28
-    }
29
-
30
-    .navbar__BrandName{
31
-      font-family: monospace;
32
-      font-weight: 600;
33
-      color: #F2B4D4;
34
-    }
35
-  }
36
-
37
-  .navbar__RightSide{
38
-    display: flex;
39
-    justify-content: end;
40
-    margin-right: 15px;
41
-    button {
42
-      margin: 0px 10px;
43
-    }
44
-  }
45
-} 

+ 1
- 0
src/main.jsx View File

@@ -6,6 +6,7 @@ import { store, persistor } from "./redux/store/index";
6 6
 
7 7
 import App from "./App.jsx";
8 8
 import "./styles/output.css";
9
+import "./styles/custom.scss";
9 10
 
10 11
 ReactDOM.render(
11 12
 	<React.StrictMode>

Loading…
Cancel
Save