Browse Source

Started to work on Navbar component

Lou 3 years ago
parent
commit
63c07314b8

+ 0
- 1
index.html View File

@@ -2,7 +2,6 @@
2 2
 <html lang="en">
3 3
   <head>
4 4
     <meta charset="UTF-8" />
5
-    <link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
6 5
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7 6
     <title>Vite App</title>
8 7
   </head>

+ 2028
- 0
package-lock.json
File diff suppressed because it is too large
View File


+ 0
- 45
src/App.jsx View File

@@ -1,45 +0,0 @@
1
-import React, { useState } from 'react'
2
-import logo from './logo.svg'
3
-import './App.css'
4
-
5
-function App() {
6
-  const [count, setCount] = useState(0)
7
-
8
-  return (
9
-    <div className="App">
10
-      <header className="App-header">
11
-        <img src={logo} className="App-logo" alt="logo" />
12
-        <p>Hello Vite + React!</p>
13
-        <p>
14
-          <button onClick={() => setCount((count) => count + 1)}>
15
-            count is: {count}
16
-          </button>
17
-        </p>
18
-        <p>
19
-          Edit <code>App.jsx</code> and save to test HMR updates.
20
-        </p>
21
-        <p>
22
-          <a
23
-            className="App-link"
24
-            href="https://reactjs.org"
25
-            target="_blank"
26
-            rel="noopener noreferrer"
27
-          >
28
-            Learn React
29
-          </a>
30
-          {' | '}
31
-          <a
32
-            className="App-link"
33
-            href="https://vitejs.dev/guide/features.html"
34
-            target="_blank"
35
-            rel="noopener noreferrer"
36
-          >
37
-            Vite Docs
38
-          </a>
39
-        </p>
40
-      </header>
41
-    </div>
42
-  )
43
-}
44
-
45
-export default App

+ 58
- 0
src/assets/img/star-svgrepo-com.svg View File

@@ -0,0 +1,58 @@
1
+<?xml version="1.0" encoding="iso-8859-1"?>
2
+<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
3
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+	 viewBox="0 0 494.452 494.452" style="enable-background:new 0 0 494.452 494.452;" xml:space="preserve">
5
+<g>
6
+	<g id="XMLID_1498_">
7
+		<polygon style="fill:#E9483D;" points="247.226,29.56 247.226,393.293 389.758,468.226 362.537,309.515 477.847,197.115 
8
+			319.043,174.199 		"/>
9
+	</g>
10
+	<g id="XMLID_1472_">
11
+		<path style="fill:#ED6D64;" d="M247.226,29.56c0,0,109.651,192.404,0,363.733l-142.531,74.933l27.221-158.711l-115.31-112.4
12
+			L175.96,173.96L247.226,29.56z"/>
13
+	</g>
14
+	<g id="XMLID_1159_">
15
+		<polygon style="fill:#FFFFFF;" points="129.125,460.649 110.888,460.649 135.926,309.107 25.309,200.733 39.094,189.136 
16
+			155.047,303.558 		"/>
17
+	</g>
18
+	<g id="XMLID_554_">
19
+		<path style="fill:#1D1D1B;" d="M400.021,482.352l-152.794-80.328L94.432,482.352l29.181-170.14L0,191.72l170.829-24.823
20
+			L247.226,12.1l76.398,154.797l170.828,24.823L370.839,312.213L400.021,482.352z M33.211,202.511l107.007,104.306l-25.261,147.284
21
+			l132.269-69.538L379.495,454.1l-25.262-147.283l107.008-104.306L313.36,181.022L247.226,47.02l-66.134,134.002L33.211,202.511z"/>
22
+	</g>
23
+	<g id="XMLID_1043_">
24
+		<polygon style="fill:#1D1D1B;" points="324.729,332.797 315.941,297.644 334.489,279.095 345.417,290.023 333.057,302.384 
25
+			339.723,329.049 		"/>
26
+	</g>
27
+</g>
28
+<g>
29
+</g>
30
+<g>
31
+</g>
32
+<g>
33
+</g>
34
+<g>
35
+</g>
36
+<g>
37
+</g>
38
+<g>
39
+</g>
40
+<g>
41
+</g>
42
+<g>
43
+</g>
44
+<g>
45
+</g>
46
+<g>
47
+</g>
48
+<g>
49
+</g>
50
+<g>
51
+</g>
52
+<g>
53
+</g>
54
+<g>
55
+</g>
56
+<g>
57
+</g>
58
+</svg>

+ 1
- 0
src/assets/img/undraw_tasks.svg
File diff suppressed because it is too large
View File


+ 24
- 0
src/components/Navbar/index.jsx View File

@@ -0,0 +1,24 @@
1
+import React from "react";
2
+import "./index.scss";
3
+import Star from "../../assets/img/star-svgrepo-com.svg";
4
+
5
+const Navbar = () => {
6
+	return (
7
+		<div className="navbar">
8
+			<div className="navbar__LeftSide">
9
+				<a href="">
10
+					<img
11
+						src={Star}
12
+						class="navbar__Icon"
13
+						alt="Temporary icon"
14
+						width="25"
15
+						height="25"
16
+					/>
17
+					<p class="navbar__BrandName">Registra</p>
18
+				</a>
19
+			</div>
20
+		</div>
21
+	);
22
+};
23
+
24
+export default Navbar;

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

@@ -0,0 +1,31 @@
1
+.navbar{
2
+  position: sticky;
3
+  background-color: #262626;
4
+  height: 50px;
5
+  width: 100%;
6
+  margin-top: 5px;
7
+
8
+  &:before{
9
+    content: '';
10
+    background: linear-gradient(to right, #B4D4F2, #F2B4D4, #D4F2B4);
11
+    display: block;
12
+    position: relative;
13
+    top: -5px;
14
+    width: 100%;
15
+    height: 5px;
16
+  }
17
+  
18
+  .navbar__LeftSide{
19
+    display: flex;
20
+    flex-direction: row;
21
+    justify-content: start;
22
+    margin-left: 15px;
23
+    width: 33%;
24
+
25
+    .navbar__Icon{}
26
+
27
+    .navbar__BrandName{
28
+      font-family: monospace;
29
+    }
30
+  }
31
+} 

+ 0
- 15
src/favicon.svg View File

@@ -1,15 +0,0 @@
1
-<svg width="410" height="404" viewBox="0 0 410 404" fill="none" xmlns="http://www.w3.org/2000/svg">
2
-<path d="M399.641 59.5246L215.643 388.545C211.844 395.338 202.084 395.378 198.228 388.618L10.5817 59.5563C6.38087 52.1896 12.6802 43.2665 21.0281 44.7586L205.223 77.6824C206.398 77.8924 207.601 77.8904 208.776 77.6763L389.119 44.8058C397.439 43.2894 403.768 52.1434 399.641 59.5246Z" fill="url(#paint0_linear)"/>
3
-<path d="M292.965 1.5744L156.801 28.2552C154.563 28.6937 152.906 30.5903 152.771 32.8664L144.395 174.33C144.198 177.662 147.258 180.248 150.51 179.498L188.42 170.749C191.967 169.931 195.172 173.055 194.443 176.622L183.18 231.775C182.422 235.487 185.907 238.661 189.532 237.56L212.947 230.446C216.577 229.344 220.065 232.527 219.297 236.242L201.398 322.875C200.278 328.294 207.486 331.249 210.492 326.603L212.5 323.5L323.454 102.072C325.312 98.3645 322.108 94.137 318.036 94.9228L279.014 102.454C275.347 103.161 272.227 99.746 273.262 96.1583L298.731 7.86689C299.767 4.27314 296.636 0.855181 292.965 1.5744Z" fill="url(#paint1_linear)"/>
4
-<defs>
5
-<linearGradient id="paint0_linear" x1="6.00017" y1="32.9999" x2="235" y2="344" gradientUnits="userSpaceOnUse">
6
-<stop stop-color="#41D1FF"/>
7
-<stop offset="1" stop-color="#BD34FE"/>
8
-</linearGradient>
9
-<linearGradient id="paint1_linear" x1="194.651" y1="8.81818" x2="236.076" y2="292.989" gradientUnits="userSpaceOnUse">
10
-<stop stop-color="#FFEA83"/>
11
-<stop offset="0.0833333" stop-color="#FFDD35"/>
12
-<stop offset="1" stop-color="#FFA800"/>
13
-</linearGradient>
14
-</defs>
15
-</svg>

+ 0
- 7
src/logo.svg View File

@@ -1,7 +0,0 @@
1
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3">
2
-    <g fill="#61DAFB">
3
-        <path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/>
4
-        <circle cx="420.9" cy="296.5" r="45.7"/>
5
-        <path d="M520.5 78.1z"/>
6
-    </g>
7
-</svg>

src/index.css → src/main.css View File

@@ -1,3 +1,7 @@
1
+a{
2
+  text-decoration: none;
3
+}
4
+
1 5
 body {
2 6
   margin: 0;
3 7
   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',

+ 11
- 9
src/main.jsx View File

@@ -1,11 +1,13 @@
1
-import React from 'react'
2
-import ReactDOM from 'react-dom'
3
-import './index.css'
4
-import App from './App'
1
+import React from "react";
2
+import ReactDOM from "react-dom";
3
+import "./main.css";
4
+import App from "./pages/App/App.jsx";
5
+import Navbar from "./components/Navbar/index";
5 6
 
6 7
 ReactDOM.render(
7
-  <React.StrictMode>
8
-    <App />
9
-  </React.StrictMode>,
10
-  document.getElementById('root')
11
-)
8
+	<React.StrictMode>
9
+		<Navbar />
10
+		<App />
11
+	</React.StrictMode>,
12
+	document.getElementById("root"),
13
+);

src/App.css → src/pages/App/App.css View File


+ 10
- 0
src/pages/App/App.jsx View File

@@ -0,0 +1,10 @@
1
+import React, { useState } from "react";
2
+import "./App.css";
3
+
4
+const App = () => {
5
+	const [count, setCount] = useState(0);
6
+
7
+	return <div className="App"></div>;
8
+};
9
+
10
+export default App;

Loading…
Cancel
Save