Skip to content

Commit

Permalink
fix the news cards
Browse files Browse the repository at this point in the history
  • Loading branch information
nimakaviani committed Jun 4, 2024
1 parent 3c580c3 commit 90ac598
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/CNOENews/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function News({title, description, imageSrc, linkTo, date, presentationLink}){
<div className={styles.NewsCard}>

<a href={linkTo} target="_blank" style={{ textDecoration: 'none', padding:"0px", cornerRadius:"8px" }}>
<img src={imageSrc} width="100%" height="320px" objectFit="contain" style={{ marginBottom: '16px', borderRadius:"5px"}}/>
<img src={imageSrc} width="100%" height="230px" objectFit="contain" style={{ marginBottom: '16px', borderRadius:"5px"}}/>
<h2 align="left" style={{color: "var(--ifm-color-neutral-darkest)"}}>
{title}<br/>
{date && <small style={{fontSize: "15px"}}> {date}</small>}
Expand Down
3 changes: 1 addition & 2 deletions src/components/CNOENews/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
display: flex;
flex-direction: column;
width: "120px";
height: "500px";
padding: 16px;
border-radius: 5px;
border-width: 1px;
border: solid;
border-color: var(--ifm-color-neutral-lightest);
margin-right: 24px;
/* box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.25); */
Expand Down

0 comments on commit 90ac598

Please sign in to comment.