@@ -2,7 +2,6 @@ import clsx from 'clsx';
22import Heading from '@theme/Heading' ;
33import styles from './styles.module.css' ;
44import React from "react" ;
5- import { useColorMode } from '@docusaurus/theme-common' ;
65import Link from "@docusaurus/Link" ;
76
87type FeatureItem = {
@@ -65,20 +64,19 @@ const FeatureList: FeatureItem[] = [
6564] ;
6665
6766function Feature ( { title, Svg, description, linkTo, buttonTitle} : FeatureItem ) {
68- const { colorMode } = useColorMode ( ) ;
6967 const svgClassName = `${ styles . featureSvg } white-image` ;
7068
7169 return (
72- < div className = { clsx ( "card" , styles . custom__card ) } style = { { height : '100%' , color : colorMode === 'dark' ? '#E6F7FF' : '#001623' } } >
70+ < div className = { clsx ( "card" , styles . custom__card ) } style = { { height : '100%' } } >
7371 < div className = "card__body custom__body_flex" >
7472 < div >
75- < Svg className = { svgClassName } role = "img" style = { { color : colorMode === 'dark' ? '#E6F7FF' : '#001623' } } />
73+ < Svg className = { svgClassName } role = "img" />
7674 </ div >
7775
78- < Heading as = "h2" className = "" style = { { fontSize : 22 , color : colorMode === 'dark' ? '#E6F7FF' : '#001623' } } > { title } </ Heading >
79- < p > { description } </ p >
80- < div className = "row" style = { { flex : 1 , color : colorMode === 'dark' ? '#E6F7FF' : '#001623' } } > </ div >
81- < div style = { { width : '100%' , display : 'flex' , justifyContent : 'start' , color : colorMode === 'dark' ? '#E6F7FF' : '#001623' } } >
76+ < Heading as = "h2" className = "card__title " style = { { fontSize : 22 } } > { title } </ Heading >
77+ < p className = "card__description" > { description } </ p >
78+ < div className = "row" style = { { flex : 1 } } > </ div >
79+ < div style = { { width : '100%' , display : 'flex' , justifyContent : 'start' } } >
8280 < Link
8381 className = 'tutorial-button minimum'
8482 to = { linkTo } >
@@ -91,7 +89,6 @@ function Feature({title, Svg, description, linkTo, buttonTitle}: FeatureItem) {
9189}
9290
9391export default function HomepageFeatures ( ) : JSX . Element {
94- const { colorMode } = useColorMode ( ) ;
9592 return (
9693 < section className = { styles . features } style = { { position : 'relative' , overflow : 'visible' } } >
9794
@@ -141,7 +138,7 @@ export default function HomepageFeatures(): JSX.Element {
141138 </ Heading >
142139 </ div >
143140 { /* style={{ gap: "20px"}} */ }
144- < div className = "row feature_container" style = { { gap : "20px" , justifyContent : "space-between" , color : colorMode === 'dark' ? '#E6F7FF' : '#001623' } } >
141+ < div className = "row feature_container" style = { { gap : "20px" , justifyContent : "space-between" } } >
145142 { FeatureList . map ( ( props , idx ) => (
146143 < div key = { idx } style = { { padding : '0px' } } className = "col col--3" >
147144 < Feature { ...props } />
@@ -173,9 +170,9 @@ export default function HomepageFeatures(): JSX.Element {
173170 </ Heading >
174171 </ div >
175172 < div className = "row" style = { { display : 'flex' , flexDirection : 'row' , justifyContent : 'center' , marginTop : '40px' , gap : '20px' } } >
176- < div className = { clsx ( "card" , styles . custom__card_1 ) } style = { { height : '200px' , width : '500px' , padding : '20px' , color : colorMode === 'dark' ? '#E6F7FF' : '#001623' } } >
177- < div className = "orb-font" style = { { fontSize : 26 , fontWeight : 'bold' , color : colorMode === 'dark' ? '#E6F7FF' : '#001623' } } > Fhenix Developer Updates</ div >
178- < div style = { { color : colorMode === 'dark' ? '#E6F7FF' : '#001623' } } > Stay up-to-date on the latest Fhenix developer news</ div >
173+ < div className = { clsx ( "card" , styles . custom__card_1 ) } style = { { height : '200px' , width : '500px' , padding : '20px' } } >
174+ < div className = "orb-font" style = { { fontSize : 26 , fontWeight : 'bold' } } > Fhenix Developer Updates</ div >
175+ < div > Stay up-to-date on the latest Fhenix developer news</ div >
179176 < div className = "row" style = { { flex : 1 } } > </ div >
180177 < div style = { { display : 'flex' , justifyContent : 'flex-start' , marginTop : '10px' } } >
181178 < Link
@@ -186,9 +183,9 @@ export default function HomepageFeatures(): JSX.Element {
186183 </ div >
187184
188185 </ div >
189- < div className = { clsx ( "card" , styles . custom__card_1 ) } style = { { height : '200px' , width : '500px' , padding : '20px' , color : colorMode === 'dark' ? '#E6F7FF' : '#001623' } } >
190- < div className = "orb-font" style = { { fontSize : 26 , fontWeight : 'bold' , color : colorMode === 'dark' ? '#E6F7FF' : '#001623' } } > Even More Resources</ div >
191- < div style = { { color : colorMode === 'dark' ? '#E6F7FF' : '#001623' } } > Hear from Fhenix co-founders, engineering and research teams, ecosystem projects, and more. Join us!</ div >
186+ < div className = { clsx ( "card" , styles . custom__card_1 ) } style = { { height : '200px' , width : '500px' , padding : '20px' } } >
187+ < div className = "orb-font" style = { { fontSize : 26 , fontWeight : 'bold' } } > Even More Resources</ div >
188+ < div > Hear from Fhenix co-founders, engineering and research teams, ecosystem projects, and more. Join us!</ div >
192189 < div className = "row" style = { { flex : 1 } } > </ div >
193190 < div style = { { display : 'flex' , justifyContent : 'flex-start' , marginTop : '10px' } } >
194191
0 commit comments