Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions nextprops/app/components/Comment/Comment.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
.card {
background: #f0f2f5;
border: 1px solid #ccc;
border-radius: 6px;
padding: 0;
margin-left: 8px;
margin-top: 8px;
margin-bottom: 8px;
box-shadow: none;
transition: background-color 0.2s ease;
}

.card:hover {
background-color: #e4e6eb;
}

.postId {
display: block;
margin: 0;
padding: 8px 12px 4px 12px;
color: #65676b;
font-size: 11px;
font-weight: 500;
border-bottom: none;
background-color: transparent;
}

.title {
margin: 0;
padding: 4px 12px 4px 12px;
font-size: 14px;
font-weight: 600;
color: #050505;
line-height: 1.4;
}

.body {
margin: 0;
padding: 4px 12px 8px 12px;
color: #454f5b;
font-size: 13px;
line-height: 1.4;
}

.userId {
display: none;
}
48 changes: 28 additions & 20 deletions nextprops/app/components/Post/Post.module.css
Original file line number Diff line number Diff line change
@@ -1,43 +1,51 @@
.card {
background: white;
border: 1px solid #e5e7eb;
border-radius: 10px;
padding: 20px;
transition: box-shadow 0.2s ease, transform 0.2s ease;
border: 1px solid #ccc;
border-radius: 8px;
padding: 0;
margin-bottom: 12px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: box-shadow 0.2s ease;
}

.card:hover {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.postId {
margin-bottom: 8px;
color: #6b7280;
font-size: 13px;
display: block;
margin: 0;
padding: 12px 16px 8px 16px;
color: #65676b;
font-size: 12px;
font-weight: 500;
letter-spacing: 0.5px;
text-transform: uppercase;
background-color: #f0f2f5;
border-bottom: 1px solid #e5e7eb;
}

.title {
margin: 0 0 10px;
font-size: 18px;
margin: 0;
padding: 16px 16px 8px 16px;
font-size: 16px;
font-weight: 600;
color: #1f2937;
line-height: 1.3;
color: #050505;
line-height: 1.4;
}

.body {
margin: 0;
color: #4b5563;
padding: 8px 16px 16px 16px;
color: #454f5b;
font-size: 15px;
line-height: 1.55;
line-height: 1.5;
}

.userId {
margin-top: 14px;
display: block;
padding: 8px 16px;
font-size: 12px;
color: #9ca3af;
text-align: right;
color: #65676b;
border-top: 1px solid #e5e7eb;
background-color: #f0f2f5;
text-align: left;
}
4 changes: 1 addition & 3 deletions nextprops/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ export default async function Home() {
<Header />

<section>
<h3>2) Forma de renderizar mas de 1</h3>
<div className="post-list">
{posts.slice(0, 3).map((post) => (
<Post
Expand All @@ -142,8 +141,7 @@ export default async function Home() {
title={post.title}
body={post.body}
/>
))}

))}

</div>
</section>
Expand Down