Skip to content

Commit

Permalink
Card Style
Browse files Browse the repository at this point in the history
  • Loading branch information
jatiinyadav committed Jan 7, 2024
1 parent eda3437 commit 94135ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/Card/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ function Card({ head, link, image, alt, about }) {
width="300" // Adjust the width according to your design
/>
<h3 dangerouslySetInnerHTML={createMarkup(head)}></h3>
<p dangerouslySetInnerHTML={createMarkup(about)} style={{ width: '75%', margin: '1rem auto' }}></p>
<p dangerouslySetInnerHTML={createMarkup(about)} className="description"></p>
<Button variant="outlined">
<Link href={link} passHref key={`${head}_${link}`}>
<a className="glowing-button" target="_blank" rel="noreferrer">
View More
</a>
</Link></Button>
</Link>
</Button>
</div>
</div>
<div className="glow-border"></div>
Expand Down
5 changes: 5 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@
text-decoration: none;
}

.description {
width: 75%;
margin: 1rem auto;
}

@keyframes zoom-in-zoom-out {
0% {
transform: scale(0, 0);
Expand Down

0 comments on commit 94135ef

Please sign in to comment.