Skip to content

Commit

Permalink
Docs landing page card hyperlinks (#4236)
Browse files Browse the repository at this point in the history
* Move card padding from ahref to text div

* Add class and height to Link
  • Loading branch information
mesellings authored Sep 3, 2024
1 parent 7bd6920 commit 4ede447
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ function Feature({ imageUrl, url, title, description }) {
styles.featuresSection
)}
>
<Link to={useBaseUrl(url)} title={title}>
<Link
to={useBaseUrl(url)}
title={title}
className={clsx(styles.featuresLink)}
>
{imgUrl && (
<div className="text--center">
<img className={styles.featuresImage} src={imgUrl} alt={title} />
Expand Down
9 changes: 8 additions & 1 deletion src/pages/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
}

.featuresSection {
padding: 0 2rem;
padding: 0;
}

.featuresImage {
Expand All @@ -64,8 +64,15 @@
.featuresTitle {
line-height: 1.4;
font-size: 24px;
padding: 0 2rem;
}

.featuresDescription {
line-height: 1.4;
padding: 0 2rem;
}

.featuresLink {
height: 250px;
padding-top: 1rem;
}

0 comments on commit 4ede447

Please sign in to comment.