- {post.data.day && (
-
- entry_{String(post.data.day).padStart(3,'0')}
-
- )}
- {post.data.title}
-{post.data.description}
- @@ -86,46 +102,101 @@ const allTags = [...new Set(allPosts.flatMap(p => p.data.tags ?? []))].sort(); .post-row-link { display: flex; - align-items: center; - gap: 1.5rem; - padding: 1.5rem; + flex-direction: column; + gap: 1rem; + padding: 1.25rem 1.5rem; color: inherit; - transition: background var(--transition-fast); } - .post-row:hover .post-row-title { color: var(--petronas-teal); } + /* * FIXED: Top section now stacks the title and description in 2 rows + */ + .post-row-top { + display: flex; + flex-direction: column; + gap: 0.5rem; + } - .post-row-left { flex: 1; } + .post-row-left { display: flex; flex-direction: column; gap: 0.25rem; } + + .post-row-day { + font-size: 0.68rem; + color: var(--petronas-teal); + letter-spacing: 0.1em; + opacity: 0.8; + } .post-row-title { - font-size: 1.05rem; - margin-bottom: 0.4rem; + font-size: 1rem; + line-height: 1.35; transition: color var(--transition-fast); } + .post-row:hover .post-row-title { color: var(--petronas-teal); } .post-row-desc { font-size: 0.85rem; line-height: 1.55; - margin-bottom: 0.75rem; } + /* Bottom section: date + tags + button all on one line */ .post-row-meta { display: flex; align-items: center; gap: 0.75rem; - flex-wrap: wrap; + flex-wrap: nowrap; + border-top: 1px solid var(--border-subtle); + padding-top: 1rem; } - .post-row-arrow { - font-size: 1.5rem; - opacity: 0.3; - transition: opacity var(--transition-fast), transform var(--transition-fast); + .post-row-date { + font-size: 0.7rem; + white-space: nowrap; flex-shrink: 0; } - .post-row:hover .post-row-arrow { opacity: 1; transform: translateX(4px); } + + .post-row-tags { + display: flex; + gap: 0.35rem; + flex-wrap: wrap; + flex: 1; + } + + /* * FIXED: Force the tag contents to center perfectly + * (You can move this to your global CSS file if `.tag` is shared globally) + */ + .tag { + display: inline-flex; + align-items: center; + justify-content: center; + line-height: 1; + padding: 0.3rem 0.65rem; + border-radius: 9999px; + } + + /* * FIXED: Replaced arrow with a styled 'MORE' button + */ + .post-row-more { + font-size: 0.7rem; + letter-spacing: 0.05em; + padding: 0.35rem 0.6rem; + border: 1px solid var(--border-subtle); + border-radius: 4px; + color: var(--text-muted); + transition: all var(--transition-fast); + flex-shrink: 0; + margin-left: auto; + margin-right: 20px; + display: flex; + align-items: center; + } + .post-row:hover .post-row-more { + border-color: var(--petronas-teal); + color: var(--petronas-teal); + } @media (max-width: 768px) { - .blog-layout { grid-template-columns: 1fr; } + .blog-layout { grid-template-columns: 1fr; } .blog-sidebar { display: none; } + .post-row-meta { flex-wrap: wrap; } + .post-row-more { margin-left: 0; } /* Optional: push button to left on mobile if wrapped */ } - + \ No newline at end of file