-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
365 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,42 @@ | ||
import React from "react"; | ||
import styles from "./Card.module.css"; | ||
|
||
import { Link } from "react-router-dom"; | ||
|
||
const Card = ({ name, image, link, description }) => { | ||
return ( | ||
<> | ||
<Link to={link}> | ||
<div className={styles.card}> | ||
<div className={styles.card_image}> | ||
<img src={image} alt="domain images" className={styles.card_img} /> | ||
</div> | ||
<p className={styles.card_heading}>{name}</p> | ||
<p className={styles.card_description}>{description}</p> | ||
{link !== "#" && ( | ||
<Link to={link}> | ||
<span className={styles.explore_more}>Explore More </span> | ||
<svg | ||
width="12" | ||
height="12" | ||
viewBox="0 0 15 15" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M12.1711 3.983L2.12965 14.0245L0.47998 12.3748L10.5203 2.33333H1.67115V0H14.5045V12.8333H12.1711V3.983Z" | ||
fill="#000738" | ||
/> | ||
</svg> | ||
</Link> | ||
)} | ||
{link === "#" && ( | ||
<span className={styles.explore_more}>Coming Soon!</span> | ||
)} | ||
</div> | ||
</Link> | ||
</> | ||
); | ||
}; | ||
|
||
export default Card; |
90 changes: 90 additions & 0 deletions
90
src/Pages/Events/KKEMEventTemplate/Components/Card.module.css
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,90 @@ | ||
.card { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
padding: 16px; | ||
gap: 16px; | ||
|
||
width: 310px; | ||
height: 475px; | ||
|
||
background: #ffffff; | ||
box-shadow: 8px 8px 28px rgba(0, 0, 0, 0.12); | ||
border-radius: 17px; | ||
margin: 1rem 0; | ||
transition: 0.3s ease-in-out; | ||
} | ||
|
||
.card span { | ||
text-transform: uppercase; | ||
} | ||
.card:hover { | ||
transform: translateY(-7px); | ||
|
||
box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.15); | ||
} | ||
|
||
/* .card:hover::after { | ||
transform: translateY(0px); | ||
transform: translateX(30px); | ||
} */ | ||
|
||
.card:hover span, | ||
.card:hover svg path { | ||
color: royalblue; | ||
fill: royalblue; | ||
} | ||
|
||
.card_image { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
width: 278px; | ||
height: 214px; | ||
|
||
background: #f3f3f3; | ||
border-radius: 17px; | ||
} | ||
|
||
.card_img { | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
border-radius: 17px; | ||
} | ||
|
||
.card_heading { | ||
font-family: "Poppins"; | ||
font-style: normal; | ||
font-weight: 500; | ||
font-size: 28px; | ||
line-height: 40px; | ||
} | ||
|
||
.card_description { | ||
font-family: "Poppins"; | ||
font-style: normal; | ||
font-weight: 300; | ||
font-size: 16px; | ||
line-height: 22px; | ||
} | ||
|
||
.explore_more { | ||
font-family: "Poppins"; | ||
font-style: normal; | ||
font-weight: 500; | ||
font-size: 16px; | ||
line-height: 22px; | ||
} | ||
|
||
.readmore { | ||
display: flex; | ||
} | ||
|
||
@media only screen and (min-width: 1000px) { | ||
.card { | ||
margin: 1rem; | ||
} | ||
} |
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.