Skip to content

Commit 5b40cf0

Browse files
author
Aishwarya Nair
committed
add navbar
1 parent 2350df5 commit 5b40cf0

File tree

4 files changed

+38
-1
lines changed

4 files changed

+38
-1
lines changed

peer-prep/src/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import './App.css';
22
import { LoginSignUp } from './Components/LoginSignUp/LoginSignUp';
3+
import { Navbar } from './Components/Navbar/Navbar';
34

45
function App() {
56
return (
67
<div>
8+
<Navbar/>
79
<LoginSignUp/>
810
</div>
911
);

peer-prep/src/Components/LoginSignUp/LoginSignUp.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
display: flex;
33
flex-direction: column;
44
margin: auto;
5-
margin-top: 100px;
5+
margin-top: 80px;
66
width: 600px;
77
background: #fff;
88
padding-bottom: 30px;
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
*::before {
2+
margin: 0;
3+
box-sizing: border-box;
4+
}
5+
6+
.nav {
7+
display: flex;
8+
align-items: center;
9+
height: 12vh;
10+
}
11+
12+
.logo {
13+
font-size: 35px;
14+
font-weight: 800;
15+
margin: 30px;
16+
}
17+
18+
.nav span {
19+
color: #52CC65;
20+
}
21+
22+
.nav a {
23+
color: #000;
24+
text-decoration: none;
25+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react'
2+
import './Navbar.css'
3+
4+
export const Navbar = () => {
5+
return (
6+
<nav className = "nav">
7+
<a href = "#" className = "logo"> <span>&lt;Peer/</span> Prep&gt;</a>
8+
</nav>
9+
)
10+
}

0 commit comments

Comments
 (0)