Skip to content

Commit

Permalink
Update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
derekmbrown committed Feb 1, 2025
1 parent e26f972 commit 65ec578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ui/NoteItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import moment from 'moment'

export default function NoteItem({ note }) {
const title = note.data.title
const pubDate = moment(note.data.pubDate).format('MMM D YYYY')
const publishedDate = moment(note.data.pubDate).format('MMM D YYYY')

return (
<a href={`/notes/${note.id}`}>
<div class="flex flex-col justify-between md:flex-row md:mb-3 mb-3 bg-[#1E262F] p-6 text-lg rounded-lg">
<div class="mr-2">{title}</div>
<div class="text-[#7E8C9A] shrink-0">{pubDate}</div>
<div class="text-[#7E8C9A] shrink-0">{publishedDate}</div>
</div>
</a>
)
Expand Down

0 comments on commit 65ec578

Please sign in to comment.