@@ -21,22 +21,31 @@ export default function Layout({ children }) {
2121 < link href = "https://fonts.googleapis.com/icon?family=Material+Icons" rel = "stylesheet" > </ link >
2222 < script src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js" > </ script >
2323 </ Head >
24- < main className = { user ? "#80cbc4 blue lighten-3" : "#80cbc4 teal lighten-3" } >
24+ < main >
25+ < nav >
26+ < div className = "nav-wrapper teal" >
27+ < a href = "https://github.com/tsaxena4k/Next.js-Mongodb-Authentication-App" target = "_blank" className = "brand-logo left tooltipped" data-position = "bottom" data-tooltip = "Github Repo" > < FaGithub /> </ a >
28+ < ul id = "nav-mobile" className = "right" >
29+ < li > < a className = { 'waves-effect waves-light btn-small tooltipped' } data-position = "bottom" data-tooltip = "Home" onClick = { ( ) => Router . replace ( "/" ) } > < AiTwotoneHome /> </ a > </ li >
30+ < li > < a className = { "waves-effect waves-light btn-small modal-trigger" } href = "#modal1" > About</ a > </ li >
31+ < li > < a className = { "btn-small notification dropdown-trigger" } data-target = 'dropdown1' > < MdNotifications /> < span className = "badgen red" > 1</ span > </ a > </ li >
32+ </ ul >
33+ </ div >
34+ </ nav >
2535 < div className = "container valign-wrapper" >
2636 < div className = "row" >
27- < div className = "col s12 m12 right-align" style = { { margin : '20px 0' } } >
28- < a className = { user ? 'waves-effect waves-light btn-small blue left' : 'waves-effect waves-light btn-small left' } onClick = { ( ) => Router . replace ( "/" ) } > < AiTwotoneHome /> </ a >
29- < a className = { ! user ? "waves-effect waves-light btn-small modal-trigger" : "waves-effect waves-light btn-small modal-trigger blue" } href = "#modal1" > About</ a >
30- < a className = { user ? "btn-small blue notification dropdown-trigger" : "btn-small notification dropdown-trigger" } data-target = 'dropdown1' > < MdNotifications /> < span class = "badgen red" > 1</ span > </ a >
31- </ div >
32- < ul id = 'dropdown1' class = 'dropdown-content' >
33- < li > < a > Welcome</ a > </ li >
34- </ ul >
3537 < div className = "col s12 m12" >
3638 { children }
3739 </ div >
3840 </ div >
3941 </ div >
42+ < ul id = 'dropdown1' className = 'dropdown-content dropdown-menu' >
43+ < 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 = 09 cbfe & _nc_ohc = PWiRytDUkykAX - Cm1BG & _nc_ht = scontent . fdel25 - 1. fna & oh = 0850 bf94c6b52a3edd41f5d179886cb2 & oe = 5 FB837AD " className = "circle responsive-img" />
45+ < span > Hey! Welcome</ span >
46+ </ li >
47+ < li className = "divider" tabindex = "-1" > </ li >
48+ </ ul >
4049 < div id = "modal1" className = "modal modal-fixed-footer" >
4150 < div className = "modal-content" style = { { backgroundImage : `url(${ "https://barbarashdwallpapers.com/wp-content/uploads/2015/05/White-wave-pattern-wallpaper-1.jpg" } )` } } >
4251 < div className = "right-align" style = { { fontSize : '2rem' } } >
@@ -67,20 +76,21 @@ export default function Layout({ children }) {
6776 </ main >
6877
6978 < style jsx > { `
70- main{
71- position:absolute;
72- top:0px;
73- left:0px;
74- right:0px;
75- bottom:0px;
76- }
7779 .container{
78- position:absolute;
79- top:0px;
80- left:0px;
81- right:0px;
82- bottom:0px;
83- }
80+ margin:2rem auto;
81+ }
82+ .dropdown-content li{
83+ display:flex;
84+ padding:5px;
85+ }
86+ .dropdown-content li img{
87+ width:50px;
88+ }
89+ .nav-wrapper .brand-logo{
90+ font-size:2.7rem;
91+ margin:5px;
92+ color:#7ed;
93+ }
8494 ` } </ style >
8595 </ >
8696 ) ;
0 commit comments