Skip to content

Commit 9590231

Browse files
committed
bug fixes
1 parent f45c415 commit 9590231

File tree

5 files changed

+27
-9
lines changed

5 files changed

+27
-9
lines changed

components/Layout.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Head from 'next/head';
22
import React, { useEffect } from 'react';
3-
import Link from 'next/link';
3+
import { GrEmoji } from 'react-icons/gr';
44
import { AiTwotoneHome } from 'react-icons/ai';
55
import { FaFacebook, FaGithub, FaLinkedin, FaInstagram } from 'react-icons/fa';
66
import { MdNotifications } from 'react-icons/md';
@@ -23,8 +23,8 @@ export default function Layout({ children }) {
2323
</Head>
2424
<main>
2525
<nav>
26-
<div className="nav-wrapper teal">
27-
<a href="https://github.com/tsaxena4k/Next.js-Mongodb-Authentication-App" target="_blank" className="brand-logo btn left tooltipped" data-position="bottom" data-tooltip="Github Repo"><FaGithub/></a>
26+
<div className="nav-wrapper">
27+
<a className="brand-logo btn left tooltipped" data-position="bottom" data-tooltip="Keep smiling"><GrEmoji /></a>
2828
<ul id="nav-mobile" className="right">
2929
<li><a className={'waves-effect waves-light btn-small tooltipped'} data-position="bottom" data-tooltip="Home" onClick={() => Router.replace("/")}><AiTwotoneHome /></a></li>
3030
<li><a className={"waves-effect waves-light btn-small modal-trigger"} href="#modal1">About</a></li>
@@ -41,7 +41,7 @@ export default function Layout({ children }) {
4141
</div>
4242
<ul id='dropdown1' className='dropdown-content dropdown-menu'>
4343
<li>
44-
<img src="https://scontent.fdel25-1.fna.fbcdn.net/v/t1.0-9/119100373_1478954398979631_272182958440296923_o.jpg?_nc_cat=103&ccb=2&_nc_sid=09cbfe&_nc_ohc=PWiRytDUkykAX-Cm1BG&_nc_ht=scontent.fdel25-1.fna&oh=0850bf94c6b52a3edd41f5d179886cb2&oe=5FB837AD " className="circle responsive-img"/>
44+
<img src="https://scontent.fdel25-1.fna.fbcdn.net/v/t1.0-9/119100373_1478954398979631_272182958440296923_o.jpg?_nc_cat=103&ccb=2&_nc_sid=09cbfe&_nc_ohc=PWiRytDUkykAX-Cm1BG&_nc_ht=scontent.fdel25-1.fna&oh=0850bf94c6b52a3edd41f5d179886cb2&oe=5FB837AD " className="circle responsive-img" />
4545
<span>Hey! Welcome</span>
4646
</li>
4747
<li className="divider" tabIndex="-1"></li>

package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"react": "16.13.1",
2626
"react-dom": "16.13.1",
2727
"react-icons": "^3.11.0",
28+
"sass": "^1.29.0",
2829
"swr": "^0.3.5",
2930
"validator": "^13.1.17"
3031
}

pages/_app.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import Layout from '../components/Layout';
2-
import '../style.css';
2+
import '../style.scss';
33

44
export default function MyApp({ Component, pageProps }) {
5+
56
return (
6-
<Layout>
7-
<Component {...pageProps} />
8-
</Layout>
7+
<>
8+
<Layout>
9+
<Component {...pageProps} />
10+
</Layout>
11+
</>
912
);
1013
}

style.css renamed to style.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
$primary-color:#80cbc4;
2+
$secondary-color:#009688;
3+
14
body{
2-
background:#80cbc4;
5+
background: $primary-color;
6+
}
7+
.nav-wrapper{
8+
background-color: $secondary-color ;
39
}
410
a{
511
text-decoration: none;

0 commit comments

Comments
 (0)