File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,11 @@ export const Col = styled.div`
55
55
display: flex;
56
56
flex-direction: column;
57
57
` ;
58
- export const Center = styled . div `
58
+
59
+ //
60
+ export const Center = styled . li `
59
61
display: flex;
60
- justify-content: center;
62
+ justify-content: center;
61
63
` ;
62
64
63
65
export const Projects = [
Original file line number Diff line number Diff line change @@ -36,17 +36,11 @@ export default function Header() {
36
36
37
37
< NavBar . Links ref = { drawerRef } openDrawer = { openDrawer } >
38
38
{ links . map ( ( l ) => (
39
+ < NavBar . li >
39
40
< Link to = { l . link } >
40
41
< NavBar . Link > { l . name } </ NavBar . Link >
41
42
</ Link >
42
-
43
-
44
- // The below code works but needs to ensure style consistency
45
- // <li key={l.name}>
46
- // <Link to={l.link}>
47
- // {l.name}
48
- // </Link>
49
- // </li>
43
+ </ NavBar . li >
50
44
) ) }
51
45
< Center >
52
46
< CancelImageStyle
@@ -109,14 +103,20 @@ const NavBar = {
109
103
openDrawer ? `translateX(0)` : `translateX(100%)` } ;
110
104
}
111
105
` ,
112
- Link : styled . li `
106
+ Link : styled . span `
113
107
padding: 0 1rem;
114
108
cursor: pointer;
115
109
116
110
@media only screen and (max-width: 600px) {
117
111
padding: 1rem 0;
118
112
}
119
113
` ,
114
+ li : styled . li `
115
+ cursor: pointer;
116
+
117
+ @media only screen and (max-width: 600px) {
118
+ padding: 1rem 0;
119
+ }`
120
120
} ;
121
121
122
122
const CancelImageStyle = styled . img `
You can’t perform that action at this time.
0 commit comments