-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rework app examples * Drop styling comments * Fix cspell * Fix broken anchors * Improve styling * Rename article
- Loading branch information
Showing
17 changed files
with
375 additions
and
144 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from "react"; | ||
|
||
import styles from "./styles.module.css"; | ||
|
||
const CompactCard = ({ name, description, technology, link, icon }) => ( | ||
<a | ||
href={link} | ||
className={styles.compactCard} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<div className={styles.compactCardContent}> | ||
<div className={styles.compactCardHeader}> | ||
{icon && <div className={styles.compactCardIcon}>{icon}</div>} | ||
<h3 className={styles.compactCardTitle}>{name}</h3> | ||
</div> | ||
<p className={styles.compactCardDescription}>{description}</p> | ||
<div className={styles.compactCardFooter}> | ||
<span className={styles.technologyTag}>{technology}</span> | ||
</div> | ||
</div> | ||
</a> | ||
); | ||
|
||
export default CompactCard; |
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
.compactCard { | ||
display: flex; | ||
flex-direction: column; | ||
background-color: var(--gray2); | ||
border: 1px solid var(--gray5); | ||
border-radius: 8px; | ||
width: 260px; | ||
text-decoration: none; | ||
color: var(--gray12); | ||
padding: var(--spacer-2); | ||
box-shadow: var(--shadow-sm); | ||
cursor: pointer; | ||
} | ||
.compactCard:hover { | ||
text-decoration: none; | ||
background-color: var(--gray1); | ||
border-bottom-width: 1px !important; | ||
} | ||
|
||
.compactCardContent { | ||
padding: var(--spacer-2); | ||
} | ||
|
||
.compactCardHeader { | ||
display: flex; | ||
align-items: center; | ||
gap: var(--spacer-1); | ||
margin-bottom: var(--spacer-1); | ||
} | ||
|
||
.compactCardIcon { | ||
width: 28px; | ||
height: 28px; | ||
fill: var(--gray9); | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.compactCardTitle { | ||
margin: 0; | ||
font-size: var(--font-size-xs); | ||
font-weight: 500; | ||
color: var(--gray12); | ||
} | ||
|
||
.compactCardDescription { | ||
margin: 0; | ||
font-size: var(--font-size-xs); | ||
margin-bottom: var(--spacer-2); | ||
color: var(--gray9); | ||
} | ||
|
||
.compactCardFooter { | ||
display: flex; | ||
justify-content: flex-start; | ||
} | ||
|
||
.technologyTag { | ||
background-color: var(--gray4); | ||
color: var(--gray11); | ||
padding: var(--spacer-1) var(--spacer-2); | ||
border-radius: 8px; | ||
font-size: var(--font-size-xs); | ||
font-weight: 500; | ||
} |
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
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
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
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
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
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
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
Oops, something went wrong.