diff --git a/nextprops/app/components/Comment/Comment.module.css b/nextprops/app/components/Comment/Comment.module.css index e69de29..05bd149 100644 --- a/nextprops/app/components/Comment/Comment.module.css +++ b/nextprops/app/components/Comment/Comment.module.css @@ -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; +} diff --git a/nextprops/app/components/Post/Post.module.css b/nextprops/app/components/Post/Post.module.css index 62a209a..f769138 100644 --- a/nextprops/app/components/Post/Post.module.css +++ b/nextprops/app/components/Post/Post.module.css @@ -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; } diff --git a/nextprops/app/page.tsx b/nextprops/app/page.tsx index 82f1e74..cc8bb1c 100644 --- a/nextprops/app/page.tsx +++ b/nextprops/app/page.tsx @@ -132,7 +132,6 @@ export default async function Home() {
-

2) Forma de renderizar mas de 1

{posts.slice(0, 3).map((post) => ( - ))} - + ))}