File tree Expand file tree Collapse file tree 1 file changed +27
-10
lines changed Expand file tree Collapse file tree 1 file changed +27
-10
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import { sortedUsers,
24
24
type User ,
25
25
type TagType , } from '@site/src/data/users' ;
26
26
import FavoriteIcon from '@site/src/components/svgIcons/FavoriteIcon' ;
27
+ import { useColorMode } from '@docusaurus/theme-common' ;
27
28
28
29
const TITLE =
29
30
'Recode Hive: Framing all the opensource projects built by our community members' ;
@@ -440,23 +441,39 @@ function ShowcaseCards() {
440
441
}
441
442
442
443
export default function Showcase ( ) : JSX . Element {
444
+
443
445
return (
444
446
< Layout
445
- title = { "Showcase of CodeHarborHub" }
446
- description = "Showcase of CodeHarborHub for CodeHarborHub Learners, and users"
447
+ title = "Showcase of CodeHarborHub"
448
+ description = "Showcase of CodeHarborHub for CodeHarborHub Learners and users"
449
+ >
450
+ < ShowcaseContent />
451
+ </ Layout >
452
+ ) ;
453
+ }
454
+
455
+ function ShowcaseContent ( ) {
456
+ const { colorMode } = useColorMode ( ) ;
457
+ const isDark = colorMode === "dark" ;
458
+
459
+ return (
460
+ < main
461
+ className = { clsx (
462
+ "" ,
463
+ isDark ? "bg-[#121212] text-white" : "bg-white text-black"
464
+ ) }
447
465
>
448
466
< Head >
449
467
< script
450
468
async
451
469
custom-element = "amp-auto-ads"
452
470
src = "https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js"
453
- />
471
+ />
454
472
</ Head >
455
- < main className = "margin-vert--lg" >
456
- < ShowcaseHeader />
457
- < ShowcaseFilters />
458
- < ShowcaseCards />
459
- </ main >
460
- </ Layout >
473
+
474
+ < ShowcaseHeader />
475
+ < ShowcaseFilters />
476
+ < ShowcaseCards />
477
+ </ main >
461
478
) ;
462
- }
479
+ }
You can’t perform that action at this time.
0 commit comments