Skip to content

Commit 06db534

Browse files
committed
Improved Nav Buttons poisition
1 parent 3c86787 commit 06db534

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

components/Layout.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import React, { useEffect } from 'react';
33
import Link from 'next/link';
44
import { AiTwotoneHome } from 'react-icons/ai';
55
import { FaFacebook, FaGithub, FaLinkedin, FaInstagram } from 'react-icons/fa';
6-
import { GiSelfLove } from 'react-icons/gi';
6+
import { MdNotifications } from 'react-icons/md';
7+
import Router from 'next/router';
78
import { useUser } from "../lib/hooks";
89

910
export default function Layout({ children }) {
@@ -21,9 +22,13 @@ export default function Layout({ children }) {
2122
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
2223
</Head>
2324
<main className={user ? "#80cbc4 blue lighten-3" : "#80cbc4 teal lighten-3"}>
25+
<div className="col s12 m12 right-align" style={{margin:'10px 10px'}}>
26+
<a className={user ? 'waves-effect waves-light btn-small blue left' : 'waves-effect waves-light btn-small left'} onClick={() => Router.replace("/")}><AiTwotoneHome /></a>&nbsp;
27+
<a className={!user ? "waves-effect waves-light btn-small modal-trigger" : "waves-effect waves-light btn-small modal-trigger blue"} href="#modal1">About</a>&nbsp;
28+
<i className="btn-small blue"><MdNotifications /></i>
29+
</div>
2430
<div className="container valign-wrapper">
2531
<div className="row">
26-
<div className="col s12 m12 center-align"><span className={user?'waves-effect waves-light btn-small blue':'waves-effect waves-light btn-small'}><Link href="/"><AiTwotoneHome /></Link></span> <a className={!user ? "waves-effect waves-light btn-small modal-trigger" : "waves-effect waves-light btn-small modal-trigger blue"} href="#modal1">About</a></div>
2732
<div className="col s12 m12">
2833
{children}
2934
</div>

0 commit comments

Comments
 (0)