File tree Expand file tree Collapse file tree 4 files changed +34
-16
lines changed Expand file tree Collapse file tree 4 files changed +34
-16
lines changed Original file line number Diff line number Diff line change @@ -38,19 +38,21 @@ export default function Footer() {
38
38
< Link href = "/#donate" > { t ( "donateTitle" ) } </ Link >
39
39
</ div >
40
40
< div className = { classes . list } >
41
- < Link href = "https://github.com/TheAlgorithms/" > GitHub</ Link >
42
- < Link href = "https://matrix.to/#/#TheAlgorithms_community:gitter.im" >
41
+ < a href = "https://github.com/TheAlgorithms/" target = "_blank" rel = "noreferrer" > GitHub</ a >
42
+ < a href = "https://matrix.to/#/#TheAlgorithms_community:gitter.im" target = "_blank" rel = "noreferrer ">
43
43
Gitter
44
- </ Link >
45
- < Link href = "https://twitter.com/The_Algorithms" > Twitter</ Link >
46
- < Link href = "https://github.com/TheAlgorithms/website" >
44
+ </ a >
45
+ < a href = "https://twitter.com/The_Algorithms" target = "_blank" rel = "noreferrer" > Twitter</ a >
46
+ < a href = "https://github.com/TheAlgorithms/website" target = "_blank" rel = "noreferrer ">
47
47
{ t ( "sourceCodeFooter" ) }
48
- </ Link >
49
- < Link href = "mailto:[email protected] " > { t ( "contact" ) } </ Link >
48
+ </ a >
49
+ < a href = "mailto:[email protected] " target = "_blank" rel = "noreferrer" > { t ( "contact" ) } </ a >
50
50
</ div >
51
51
< a
52
52
className = { classes . vercelLogo }
53
53
href = "https://vercel.com?utm_source=thealgorithms& utm_campaign = oss "
54
+ target = "_blank"
55
+ rel = "noreferrer"
54
56
>
55
57
< img src = "/powered-by-vercel-t.svg" alt = "Powered by Vercel" />
56
58
</ a >
Original file line number Diff line number Diff line change 19
19
margin-right : 30px ;
20
20
}
21
21
22
+ .list a {
23
+ text-decoration : none;
24
+ }
25
+
22
26
.grid {
23
27
display : grid;
24
28
grid-template-rows : 35px auto;
Original file line number Diff line number Diff line change @@ -53,10 +53,12 @@ export default function Navbar({
53
53
{
54
54
name : t ( "aboutTextNavbar" ) ,
55
55
href : "/#aboutUs" ,
56
+ target : "_self" ,
56
57
} ,
57
58
{
58
59
name : t ( "donateButton" ) ,
59
60
href : "https://liberapay.com/TheAlgorithms/donate" ,
61
+ target : "_blank" ,
60
62
} ,
61
63
] ;
62
64
@@ -131,9 +133,7 @@ export default function Navbar({
131
133
< GithubOriginalIcon color = "white" />
132
134
</ IconButton >
133
135
{ menu . map ( ( item ) => (
134
- < NextLink passHref key = { item . name } href = { item . href } >
135
- < Button > { item . name } </ Button >
136
- </ NextLink >
136
+ < Button key = { item . name } href = { item . href } target = { item . target } > { item . name } </ Button >
137
137
) ) }
138
138
</ div >
139
139
) }
@@ -151,13 +151,15 @@ export default function Navbar({
151
151
< SearchBar query = { query } setQuery = { setQuery } small />
152
152
</ ListItem >
153
153
{ menu . map ( ( item ) => (
154
- < NextLink key = { item . name } href = { item . href } >
155
- < MenuItem > { item . name } </ MenuItem >
156
- </ NextLink >
154
+ < MenuItem key = { item . name } >
155
+ < Button href = { item . href } target = { item . target } className = { classes . sidebarLink } >
156
+ { item . name }
157
+ </ Button >
158
+ </ MenuItem >
157
159
) ) }
158
- < NextLink href = "https://github.com/TheAlgorithms" >
159
- < MenuItem > GitHub</ MenuItem >
160
- </ NextLink >
160
+ < MenuItem >
161
+ < a className = { classes . unstyledLink } href = "https://github.com/TheAlgorithms" target = "_blank" rel = "noreferrer" > GitHub</ a >
162
+ </ MenuItem >
161
163
< MenuItem onClick = { ( ) => switchTheme ( ) } >
162
164
{ darkTheme ? t ( "lightModeNavbar" ) : t ( "darkModeNavbar" ) }
163
165
</ MenuItem >
Original file line number Diff line number Diff line change 64
64
width : 1em ;
65
65
height : 1em ;
66
66
}
67
+
68
+ .sidebarLink {
69
+ padding : 0px !important ;
70
+ min-width : auto !important ;
71
+ }
72
+
73
+ .unstyledLink {
74
+ color : # fff ;
75
+ text-decoration : none;
76
+ }
You can’t perform that action at this time.
0 commit comments