Fix column width on the home page

This commit is contained in:
yehor
2025-07-20 20:09:13 +03:00
parent ff4c256544
commit 95ce34b12b
4 changed files with 18 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ const FeatureList = [
function Feature({ Svg, title, link, description }) { function Feature({ Svg, title, link, description }) {
return ( return (
<div className={clsx('col col--3')}> <div className={clsx('col col--3', styles.featureBlock)}>
<div className="text--center"> <div className="text--center">
<a href={link} target='_blank' className={styles.featureLink}> <a href={link} target='_blank' className={styles.featureLink}>
<Svg fill="currentColor" className={styles.featureSvg} role="img" /> <Svg fill="currentColor" className={styles.featureSvg} role="img" />

View File

@@ -5,6 +5,10 @@
width: 100%; width: 100%;
} }
.featureBlock {
padding-bottom: 1rem;
}
.featureSvg { .featureSvg {
height: 100px; height: 100px;
width: 100px; width: 100px;

View File

@@ -31,3 +31,15 @@
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
--ifm-link-color: var(--ifm-color-primary-darker); --ifm-link-color: var(--ifm-color-primary-darker);
} }
@media (max-width: 996px) {
.col {
--ifm-col-width: 50%;
}
}
@media (max-width: 500px) {
.col {
--ifm-col-width: 100%;
}
}

View File

@@ -15,7 +15,7 @@ function HomepageHeader() {
<Heading as="h1" className="hero__title"> <Heading as="h1" className="hero__title">
Yehor Vialov Yehor Vialov
</Heading> </Heading>
<p className="hero__subtitle">Public Profiles</p> <p className="hero__subtitle">Public profiles and publications</p>
{/* <div className={styles.buttons}> {/* <div className={styles.buttons}>
<Link <Link
className="button button--secondary button--lg" className="button button--secondary button--lg"