Skip to content

Commit 3a60f23

Browse files
committed
fix styling
1 parent 014cfd9 commit 3a60f23

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

src/Navigation/Navigation.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
2+
13
#log-out {
24
float: right;
35
}
6+
7+
.nav{
8+
background-color: #4274F3;
9+
}
10+
11+
.navbar-brand {
12+
font-family: "Poppins", sans-serif;
13+
font-weight: 800;
14+
font-size: 22px !important;
15+
padding-left: 10px;
16+
}

src/Navigation/Navigation.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
import { Auth } from 'aws-amplify';
2-
import { Navbar, Nav, Form, Button } from 'react-bootstrap';
1+
import { Navbar, Nav, Button, Form } from 'react-bootstrap';
2+
import { Auth, Hub } from 'aws-amplify';
33
import './Navigation.css';
44

55
export default function Navigation() {
66
return (
7-
<Navbar collapseOnSelect expand="sm" bg="primary" variant="dark">
7+
<Navbar collapseOnSelect expand="sm" className="nav" variant="dark">
88
<Navbar.Brand href="/">flipt.ED</Navbar.Brand>
99
<Navbar.Toggle aria-controls="responsive-navbar-nav" />
1010
<Navbar.Collapse id="responsive-navbar-nav">
1111
<Nav className="container-fluid">
12-
<Nav.Link href="/">Dashboard</Nav.Link>
13-
<Form inline>
14-
<Button className="ml-auto" type="submit" onClick={() => Auth.signOut()}>
12+
<Nav.Item className="ml-auto">
13+
<Button variant="outline" type="submit" onClick={() => Auth.signOut()}>
1514
Log Out
1615
</Button>
17-
</Form>
16+
</Nav.Item>
1817
</Nav>
1918
</Navbar.Collapse>
2019
</Navbar>

0 commit comments

Comments
 (0)