Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Footer and Navbar #2

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28,207 changes: 28,207 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
"@testing-library/user-event": "^13.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.4.0",
"react-router-dom": "^6.3.0",
"react-scripts": "5.0.1",
"sass": "^1.54.8",
"web-vitals": "^2.1.0"
},
"scripts": {
Expand Down
38 changes: 0 additions & 38 deletions src/App.css

This file was deleted.

26 changes: 10 additions & 16 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
import logo from './logo.svg';
import './App.css';
import React from "react";
import Login from "./pages/Login/Login";
import Register from "./pages/Register/Register";
import { BrowserRouter, Routes, Route } from "react-router-dom";

function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
<BrowserRouter>
<Routes>
<Route path="/login" element={<Login />} />
<Route path="/register" element={<Register />} />
</Routes>
</BrowserRouter>
</div>
);
}
Expand Down
8 changes: 0 additions & 8 deletions src/App.test.js

This file was deleted.

Binary file added src/Assests/Ellipse 48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Assests/Fonts/Gilroy-ExtraBold.otf
Binary file not shown.
Binary file added src/Assests/Fonts/Gilroy-Light.otf
Binary file not shown.
Binary file added src/Assests/Frame41.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Assests/Frame7360.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Assests/Group7500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Assests/Group7509.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Assests/Rectangle16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Assests/Vector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Assests/image1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Assests/womenphones.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions src/component/Footer/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React from "react";
import './Footer.scss'
import { FaInstagram, FaTwitter, FaYoutube } from "react-icons/fa";
import Logo from "../../Assests/Frame41.png";

const Footer = () => {
return (
<div className="Footer-container">
<div className="Footer">
<div className="Footer-left">
<img src={Logo} alt="" />
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor
</p>
</div>
<div className="Footer-right">
<a className="Footer-right_socials" href="https://www.instagram.com/">
<FaInstagram className="icon" />
</a>
<a className="Footer-right_socials" href="https://www.twitter.com/">
<FaTwitter className="icon" />
</a>
<a className="Footer-right_socials" href="https://www.youtube.com/">
<FaYoutube className="icon" />
</a>
</div>
</div>
</div>
);
};

export default Footer;
25 changes: 25 additions & 0 deletions src/component/Footer/Footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

.Footer {
display: flex;
align-items: center;
justify-content: space-between;
background-color: rgb(58, 56, 56);
padding: 50px 50px;
}

.Footer p{
font-size: 0.8rem;
color: gainsboro;
align-items: center;
/* text-align: center; */
}

.icon {
border-radius: 50%;
padding: 7px;
/* border: 2px solid red; */
background-color: rgb(114, 110, 110);
color: #fff;
font-size: 1.3rem;
margin: 0.7rem;
}
30 changes: 30 additions & 0 deletions src/component/Navbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import React from "react";
import "./Navbar.scss";
import Logo from "../Assests/Frame41.png";
import { Link } from "react-router-dom";

const Navbar = () => {
return (
<div className="whole-nav">
<img src={Logo} alt="" />
<nav className="navbar">
<ul className="nav-links">
<input type="checkbox" id="checkbox_toggle" />
<label htmlFor="checkbox_toggle" className="hamburger">
&#9776;
</label>
<div className="menu">
<li>Domains</li>
<li>why skill++</li>
<li>Contact us</li>
<Link to="/login">
<button className="menu-login-btn">Login</button>
</Link>
</div>
</ul>
</nav>
</div>
);
};

export default Navbar;
86 changes: 86 additions & 0 deletions src/component/Navbar.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
.whole-nav {
display: flex;
justify-content: space-between;
align-items: center;
height: 70px;
margin: 0px 80px;
}
.whole-nav img {
height: 35px;

}
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px;
}
.menu {
display: flex;
gap: 1em;
font-size:13px;
font-weight:700;
}
.menu li{
padding: 5px 14px;
list-style: none;
}

input[type="checkbox"] {
display: none;
}

.hamburger {
display: none;
font-size: 24px;
user-select: none;
cursor: pointer;
}
.menu-login-btn{
background-color:#E0EAFF;
color:blue;
padding: 10px 15px;
border: none;
cursor: pointer;
border-radius: 5px;
}

@media (max-width:655px) {
.menu {
display: none;
position: absolute;
right:0;
left:0;
text-align: center;
background-color:blue;
color:white;
height:87.5vh;
}
.menu li:hover {
display: inline-block;
color:aquamarine;
}
.menu li{
font-size: 25px;
margin-top:80px;
}
.menu-login-btn{
margin-top: 80px;
padding:20px 30px;
font-size: 25px;
}
input[type="checkbox"]:checked ~ .menu {
display: block;
left:70vw;
}
.hamburger {
display: block;
}
}
@media(max-width:543px){
.menu{
height:67.5vh;
}
}


10 changes: 10 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,13 @@ code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}

@font-face {
font-family: "Gilroy-Light";
src: url("./Assests//Fonts/Gilroy-Light.otf");
}

@font-face {
font-family: "Gilroy-ExtraBold";
src: url("./Assests/Fonts/Gilroy-ExtraBold.otf");
}
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import "./Assests/Fonts/Gilroy-Light.otf";
import "./Assests/Fonts/Gilroy-ExtraBold.otf";
import reportWebVitals from './reportWebVitals';

const root = ReactDOM.createRoot(document.getElementById('root'));
Expand Down
1 change: 0 additions & 1 deletion src/logo.svg

This file was deleted.

Loading