Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,25 @@ const features = [
},
];

function Feature({imageUrl, title, description}) {
function Feature({ imageUrl, title, description }) {
const imgUrl = useBaseUrl(imageUrl);

return (
<div className={clsx('col col--4', styles.feature)}>
{imgUrl && (
<div className="text--center">
<img className={styles.featureImage} src={imgUrl} alt={title} />
</div>
)}
<h3>{title}</h3>
<p>{description}</p>
<div className={clsx('col col--4')}>
<div className={styles.feature}>
{imgUrl && (
<div className="text--center">
<img
className={styles.featureImage}
src={imgUrl}
alt={title}
/>
</div>
)}

<h3>{title}</h3>
<p>{description}</p>
</div>
</div>
);
}
Expand Down
24 changes: 22 additions & 2 deletions src/pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@

.feature {
margin-top: 2rem;
padding: 1.5rem;
border: 1px solid var(--ifm-color-emphasis-200);
border-radius: 12px;
height: 100%;
transition: transform 0.2s ease, box-shadow 0.2s ease;
background: var(--ifm-background-surface-color);
}
.feature:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

@media screen and (max-width: 966px) {
Expand Down Expand Up @@ -48,10 +58,20 @@
}

.featureImage {
height: 200px;
width: 200px;
width: 180px;
height: 180px;
object-fit: contain;
margin-bottom: 1rem;
}
.buttons {
flex-direction: column;
gap: 1rem;
}

.buttons a {
width: 100%;
max-width: 320px;
}
.intro {
display: flex;
align-items: center;
Expand Down