Skip to content

Commit

Permalink
all
Browse files Browse the repository at this point in the history
  • Loading branch information
Hemu21 committed May 24, 2024
1 parent a45da7b commit 14a5be4
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export function Card(props) {
setFlipped(!flipped);
};

const handleOpen = (s, h, i) => {
const handleOpen = (s, h, i, l) => {
setOpen(true);
setData({ head: h, desc: s, img: i });
setData({ head: h, desc: s, img: i, link: l });
};

const handleClose = () => {
Expand Down Expand Up @@ -53,9 +53,7 @@ export function Card(props) {
>
<div className={style["clickable-card"]}>
<div className={style["card-title"]}>{props.project.title}</div>
<div className={style["card-content"]}>
{props.project.content.substring(0, 400)}...
</div>
<div className={style["card-content"]} dangerouslySetInnerHTML={{__html: props.project.content}} />
<div className={style["card-date"]}>
{months[date.getMonth()]},{date.getFullYear()}
</div>
Expand Down Expand Up @@ -86,7 +84,8 @@ export function Card(props) {
handleOpen(
props.project.content,
props.project.title,
props.project.imageUrl[0]
props.project.imageUrl[0],
props.project.link
)
}
className={
Expand Down

0 comments on commit 14a5be4

Please sign in to comment.