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 }) {
return (
<div className={clsx('col col--3')}>
<div className={clsx('col col--3', styles.featureBlock)}>
<div className="text--center">
<a href={link} target='_blank' className={styles.featureLink}>
<Svg fill="currentColor" className={styles.featureSvg} role="img" />

View File

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

View File

@@ -31,3 +31,15 @@
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
--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">
Yehor Vialov
</Heading>
<p className="hero__subtitle">Public Profiles</p>
<p className="hero__subtitle">Public profiles and publications</p>
{/* <div className={styles.buttons}>
<Link
className="button button--secondary button--lg"