Skip to content

Commit

Permalink
implementing routes and UI design
Browse files Browse the repository at this point in the history
  • Loading branch information
Ars3nicc committed Oct 18, 2022
1 parent 578ad13 commit 33c7355
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 366 deletions.
17 changes: 15 additions & 2 deletions src/app/App.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
import UploadCertificate from "../containers/UploadCertificate";
import "./App.css";
import React from "react";
import NavBar from "../components/NavBar";
import { Routes, Route } from "react-router-dom";
import TransferCertificate from "../containers/TransferCertificate";
import CollectionCertificate from "../containers/CollectionCertificate";
import ProfilePage from "../containers/ProfilePage";

function App() {
return (
<>
<UploadCertificate />
<NavBar />
<Routes>
<Route path="/" element={<CollectionCertificate />}/>
<Route path="/transfer" element={<TransferCertificate />}/>
<Route path="/certificates" element={<CollectionCertificate />}/>
<Route path="/profile" element={<ProfilePage />}/>

</Routes>


</>
);
}
Expand Down
24 changes: 16 additions & 8 deletions src/components/NavBar/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,33 @@ body {
margin-top: 0px;
margin-right: 10px;
font-size: 20px;
color: white;

}

.divider{
margin-top: 13vh;
}

nav {
position: fixed;
z-index: 10;
z-index: 4;
left: 0;
right: 0;
top: 0;
padding: 10px;
color: #ffff;
background-color: #1C3843;
}
nav .logo {
float: left;
width: 40%;
height: 100%;
display: flex;
padding: 10px;
padding: 10px;
margin-top: 10px;
align-items: center;
font-size: 24px;
color: #fff;
gap: 10px;
gap: 10px;
}

nav .logo img{
Expand All @@ -41,11 +47,11 @@ nav .links {
width: 60%;
height: 100%;
display: flex;
justify-content: end;
align-items: center;
}
nav .links li {
list-style: none;
width: 100%;
}
nav .links a {
display: block;
Expand All @@ -54,8 +60,9 @@ nav .links a {
font-weight: bold;
color: #fff;
text-decoration: none;
border-radius: 50px;
margin-left: 20px;
border-radius: 50px;
margin-left: 20px;
text-align: center;;

}
nav .links li a:hover{
Expand Down Expand Up @@ -96,6 +103,7 @@ nav .icon-burger {
right: 5%;
top: 50%;
transform: translateY(-50%);
cursor: pointer;
}
nav .icon-burger .line {
width: 30px;
Expand Down
10 changes: 6 additions & 4 deletions src/components/NavBar/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { } from "react";
import "./index.css";
import { Link } from "react-router-dom";
import 'bootstrap/dist/css/bootstrap.min.css';
import { BiTransfer } from "react-icons/bi";
import { FaCertificate } from "react-icons/fa";
Expand All @@ -15,10 +16,10 @@ const NavBar = () => {
Certinize
</div>
<ul className="links">
<li><a href="#home"><BiTransfer className="icon"/> Transfer</a></li>
<li><a href="#about"><FaCertificate className="icon"/>Certificates</a></li>
<li><a href="#work"><RiTeamFill className="icon"/>About Us</a></li>
<img className="user-icon" src="./img/default_user.png" alt=""/>
<li><Link to="/transfer"><BiTransfer className="icon"/> Transfer</Link></li>
<li><Link to="/certificates"><FaCertificate className="icon"/>Certificates</Link></li>
<li><Link to="/profile"><RiTeamFill className="icon"/>My Profile</Link></li>
<Link><img className="user-icon" src="./img/default_user.png" alt=""/></Link>
</ul>

<label htmlFor="nav-toggle" className="icon-burger">
Expand All @@ -27,6 +28,7 @@ const NavBar = () => {
<div className="line"></div>
</label>
</nav>
<section className="divider"/>
</div>
);
};
Expand Down
114 changes: 0 additions & 114 deletions src/containers/AboutUs/AboutUs.css

This file was deleted.

67 changes: 0 additions & 67 deletions src/containers/AboutUs/AboutUs.js

This file was deleted.

Loading

0 comments on commit 33c7355

Please sign in to comment.