Skip to content

Commit

Permalink
added author name in blog page
Browse files Browse the repository at this point in the history
  • Loading branch information
Meetesh-Saini committed Sep 5, 2023
1 parent 932766b commit ab434fe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/terminalCard/TerminalCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export default function TerminalCard({ blogs }) {
<div className="blog_dept">{blog.tags}</div>
<div className="date">{blog.date}</div>
</div>
<div className="blog_author">Author: {blog.published_by}</div>
<p></p>
<p>{blog.description}</p>
<button
Expand Down
20 changes: 20 additions & 0 deletions src/components/terminalCard/cardRow.css
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,23 @@
max-width: 75rem;
margin: auto;
}

.blog_author{
display: flex;
min-height: 1.5em;
width: 90%;
align-items: center;
justify-content: center;
overflow-x: hidden;
background-color: #2a2f3a;
border-radius: 8px;
color: #e0e7ec;
margin: auto;
margin-top: 0.75rem;
padding: 2px;
}

.blog_author:hover{
background-color: #212529;
transition: background-color 0.3s, transform 0.3s;
}

0 comments on commit ab434fe

Please sign in to comment.