Skip to content

Commit

Permalink
removed medium img (outdated api)
Browse files Browse the repository at this point in the history
  • Loading branch information
o-tsaruk committed Jan 27, 2024
1 parent 3c7eeeb commit 85d8699
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 33 deletions.
27 changes: 7 additions & 20 deletions src/components/MediumBlog/MediumBlog.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

.mediumBlockWrapper {
width: 394px;
height: 244px;
height: 123px;
}

.mediumBlockWrapper a {
Expand All @@ -40,11 +40,13 @@
}

.mediumBlock {
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
width: 390px;
height: 234px;
height: 113px;
padding: 20px;
background: #1F2526;
border: 1px solid var(--ifm-toc-border-color);
border-radius: 6px;
transition: margin-top ease 0.4s;
Expand All @@ -56,16 +58,6 @@
cursor: pointer;
}

.descriptionBlock {
background: #1F2526;
border-top: 1px solid #383939;
height: 113px;
padding: 20px;
position: relative;
display: flex;
flex-direction: column;
}

.articleTitle {
font-weight: 400;
font-size: 14px;
Expand Down Expand Up @@ -94,17 +86,12 @@
}

@media (max-width: 460px) {
.mediumBlock {
width: 300px;
height: 208px;
}

.mediumBlockWrapper {
width: 304px;
height: 218px;
height: 113px;
}

.descriptionBlock {
.mediumBlock {
padding: 14px;
}

Expand Down
19 changes: 6 additions & 13 deletions src/components/MediumBlog/MediumBlog.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,12 @@ export const MediumBlog = () => {
aria-label={item.title}
>
<div className={"mediumBlock"}>
<img
src={item.thumbnail}
style={{ padding: 0, maxHeight: 121 }}
alt={item.title}
/>
<div className={"descriptionBlock"}>
<p className={"articleTitle"}>
{item.title.replace("&amp;", "&")}
</p>
<p className={"articleDate"}>
{item.pubDate.slice(0, 10)}
</p>
</div>
<p className={"articleTitle"}>
{item.title.replace("&amp;", "&")}
</p>
<p className={"articleDate"}>
{item.pubDate.slice(0, 10)}
</p>
</div>
</a>
</div>
Expand Down

0 comments on commit 85d8699

Please sign in to comment.