File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,14 @@ export default function Layout({ children }) {
2222 < script src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js" > </ script >
2323 </ Head >
2424 < main className = { user ? "#80cbc4 blue lighten-3" : "#80cbc4 teal lighten-3" } >
25- < div className = "col s12 m12 right-align" style = { { margin :'10px 10px' } } >
25+ < div className = "col s12 m12 right-align" style = { { margin : '20px 20px' } } >
2626 < a className = { user ? 'waves-effect waves-light btn-small blue left' : 'waves-effect waves-light btn-small left' } onClick = { ( ) => Router . replace ( "/" ) } > < AiTwotoneHome /> </ a >
2727 < a className = { ! user ? "waves-effect waves-light btn-small modal-trigger" : "waves-effect waves-light btn-small modal-trigger blue" } href = "#modal1" > About</ a >
28- < i className = "btn-small blue" > < MdNotifications /> </ i >
28+ < 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 >
2929 </ div >
30+ < ul id = 'dropdown1' class = 'dropdown-content' >
31+ < li > < a > Welcome</ a > </ li >
32+ </ ul >
3033 < div className = "container valign-wrapper" >
3134 < div className = "row" >
3235 < div className = "col s12 m12" >
Original file line number Diff line number Diff line change 1515}
1616.row , .horizontal {
1717 margin-bottom : 0 ;
18+ }
19+ .notification {
20+ position : relative;
21+ }
22+ .badgen {
23+ position : absolute;
24+ top : -15px ;
25+ right : -10px ;
26+ padding : 0px 10px ;
27+ border-radius : 50% ;
28+ color : white;
1829}
You can’t perform that action at this time.
0 commit comments