-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #421 from trilitech/link-tutorial-tiles
Make the whole tutorial tile a link
- Loading branch information
Showing
2 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
import React from 'react'; | ||
import clsx from 'clsx'; | ||
import styles from './styles.module.css'; | ||
import Link from '@docusaurus/Link'; | ||
|
||
export default function TutorialCard({ title, href, description, link, emoji }) { | ||
return ( | ||
<div className={clsx(styles.tutorialcard)}> | ||
<div> | ||
<Link href={href} target="_self" className={clsx(styles.tutorialcardlinkcontainer)}> | ||
<p className={clsx(styles.emoji)}>{emoji}</p> | ||
<h3 className={clsx(styles.title)}>{title}</h3> | ||
<p className={clsx(styles.description)}>{description}</p> | ||
<a href={href} className={clsx(styles.link)}> | ||
<p style={{ margin: 0 }}>{link}</p> | ||
</a> | ||
</div> | ||
</Link> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters