This commit is contained in:
VividTruthKeeper 2023-02-10 01:27:37 +05:00
parent 4cdb527f7d
commit 0f31f32e5e
2 changed files with 22 additions and 10 deletions

View File

@ -36,16 +36,20 @@ const News = ({ id, title, text, categories, date, img }: Props) => {
<h2 className="news-title">{title}</h2>
</Link>
<div className="news-status">
{categories.map((category) => {
return (
<NewsCategory
key={uuidv4()}
title={category.name}
id={category.id}
/>
);
})}
<NewsDate date={date} />
<div className="news-status-left">
{categories.map((category) => {
return (
<NewsCategory
key={uuidv4()}
title={category.name}
id={category.id}
/>
);
})}
</div>
<div className="news-status-right">
<NewsDate date={date} />
</div>
</div>
<div
className="news-text"

View File

@ -34,6 +34,14 @@
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.6rem;
}
.news-status-left {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.6rem;
}
.news-link {