Created
August 5, 2024 05:20
-
-
Save BiosBoy/a36d21d8ab9f86480c8091c6f560b424 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <div className="flex flex-col items-center p-6 bg-white shadow-md rounded-lg"> | |
| <h2 className="text-2xl font-bold mb-2">Card Title</h2> | |
| <p className="text-gray-700">This is a card description.</p> | |
| </div> | |
| import styles from './Card.module.scss'; | |
| <div className={styles.card}> | |
| <h2 className={styles.title}>Card Title</h2> | |
| <p className={styles.description}>This is a card description.</p> | |
| </div> | |
| .card { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| padding: 1.5rem; | |
| background-color: #fff; | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| border-radius: 0.5rem; | |
| } | |
| .title { | |
| font-size: 1.5rem; | |
| font-weight: bold; | |
| margin-bottom: 0.5rem; | |
| } | |
| .description { | |
| color: #4a4a4a; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment