@@ -6,7 +6,12 @@ const GITHUB_REPO_URL = "https://github.com/worldcoin/nucleus";
66
77function GitHubIcon ( ) {
88 return (
9- < svg viewBox = "0 0 16 16" className = "h-5 w-5" fill = "currentColor" aria-hidden = "true" >
9+ < svg
10+ viewBox = "0 0 16 16"
11+ className = "h-5 w-5"
12+ fill = "currentColor"
13+ aria-hidden = "true"
14+ >
1015 < path d = "M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z" />
1116 </ svg >
1217 ) ;
@@ -33,19 +38,23 @@ export function HeroSection({
3338 < h1 className = "text-3xl font-semibold tracking-tight" > Nucleus</ h1 >
3439
3540 < nav
36- className = "inline-flex flex-wrap rounded-full border p-1"
37- style = { { borderColor : activeTheme . border } }
41+ className = "inline-flex flex-wrap rounded-full border p-1 shadow-sm"
42+ style = { {
43+ backgroundColor : activeTheme . surface ,
44+ borderColor : activeTheme . border ,
45+ } }
3846 >
3947 { demoSections . map ( ( section ) => {
4048 const isActive = section . id === selectedSectionId ;
4149 return (
4250 < button
4351 key = { section . id }
44- className = "rounded-full px-3 py-1.5 text-sm font-medium transition-colors "
52+ className = "rounded-full px-3 py-1.5 text-sm font-medium transition-[background-color,color,opacity] hover:opacity-75 focus-visible:outline-2 focus-visible:outline-offset-2 "
4553 onClick = { ( ) => onSelectSection ( section . id ) }
4654 style = { {
4755 backgroundColor : isActive ? activeTheme . text : "transparent" ,
4856 color : isActive ? activeTheme . background : activeTheme . text ,
57+ outlineColor : activeTheme . muted ,
4958 } }
5059 >
5160 { section . label }
@@ -57,19 +66,23 @@ export function HeroSection({
5766
5867 < div className = "flex items-center gap-3" >
5968 < div
60- className = "inline-flex rounded-full border p-1"
61- style = { { borderColor : activeTheme . border } }
69+ className = "inline-flex rounded-full border p-1 shadow-sm"
70+ style = { {
71+ backgroundColor : activeTheme . surface ,
72+ borderColor : activeTheme . border ,
73+ } }
6274 >
6375 { appThemes . map ( ( theme ) => {
6476 const isActive = theme . id === activeTheme . id ;
6577 return (
6678 < button
6779 key = { theme . id }
68- className = "rounded-full px-3 py-1.5 text-sm font-medium transition-colors "
80+ className = "rounded-full px-3 py-1.5 text-sm font-medium transition-[background-color,color,opacity] hover:opacity-75 focus-visible:outline-2 focus-visible:outline-offset-2 "
6981 onClick = { ( ) => onSelectTheme ( theme . id ) }
7082 style = { {
7183 backgroundColor : isActive ? activeTheme . text : "transparent" ,
7284 color : isActive ? activeTheme . background : activeTheme . text ,
85+ outlineColor : activeTheme . muted ,
7386 } }
7487 >
7588 { theme . name }
@@ -83,8 +96,13 @@ export function HeroSection({
8396 target = "_blank"
8497 rel = "noopener noreferrer"
8598 aria-label = "Nucleus on GitHub"
86- className = "inline-flex h-10 w-10 items-center justify-center rounded-full border transition-opacity hover:opacity-70"
87- style = { { borderColor : activeTheme . border , color : activeTheme . text } }
99+ className = "inline-flex h-10 w-10 items-center justify-center rounded-full border shadow-sm transition-[background-color,color,opacity] hover:opacity-70 focus-visible:outline-2 focus-visible:outline-offset-2"
100+ style = { {
101+ backgroundColor : activeTheme . surface ,
102+ borderColor : activeTheme . border ,
103+ color : activeTheme . text ,
104+ outlineColor : activeTheme . muted ,
105+ } }
88106 >
89107 < GitHubIcon />
90108 </ a >
0 commit comments