File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { motion } from 'framer-motion';
66export function CustomizeCTA ( ) {
77 return (
88 < motion . div
9+ id = "customization-studio"
910 initial = { { opacity : 0 , y : 20 } }
1011 animate = { { opacity : 1 , y : 0 } }
1112 transition = { { duration : 0.5 , ease : 'easeOut' } }
Original file line number Diff line number Diff line change @@ -14,9 +14,15 @@ function GithubMark() {
1414}
1515
1616const NAV_LINKS = [
17+ {
18+ label : 'Customization Studio' ,
19+ href : '#customization-studio' ,
20+ isExternal : false ,
21+ } ,
1722 {
1823 label : 'GitHub Repo' ,
1924 href : 'https://github.com/JhaSourav07/commitpulse' ,
25+ isExternal : true ,
2026 } ,
2127] ;
2228
@@ -131,11 +137,11 @@ export default function Navbar() {
131137 < a
132138 key = { link . href }
133139 href = { link . href }
134- target = " _blank"
135- rel = " noopener noreferrer"
140+ target = { link . isExternal ? ' _blank' : undefined }
141+ rel = { link . isExternal ? ' noopener noreferrer' : undefined }
136142 className = "inline-flex items-center gap-2 rounded-xl border border-white/15 bg-white/5 px-4 py-2 text-sm font-medium text-white/90 transition hover:border-white/45 hover:bg-white/10"
137143 >
138- < GithubMark />
144+ { link . isExternal && < GithubMark /> }
139145 { link . label }
140146 </ a >
141147 ) ) }
@@ -159,12 +165,12 @@ export default function Navbar() {
159165 < li key = { link . href } >
160166 < a
161167 href = { link . href }
162- target = " _blank"
163- rel = " noopener noreferrer"
168+ target = { link . isExternal ? ' _blank' : undefined }
169+ rel = { link . isExternal ? ' noopener noreferrer' : undefined }
164170 onClick = { ( ) => setOpen ( false ) }
165171 className = "inline-flex w-full items-center gap-2 rounded-xl border border-white/15 bg-white/5 px-4 py-2 text-sm font-medium text-white/90 transition hover:border-white/45 hover:bg-white/10"
166172 >
167- < GithubMark />
173+ { link . isExternal && < GithubMark /> }
168174 { link . label }
169175 </ a >
170176 </ li >
You can’t perform that action at this time.
0 commit comments