From eaf936f846498ed17ef25de19c40353a6b4c2554 Mon Sep 17 00:00:00 2001 From: itzMiney Date: Sun, 8 Nov 2026 21:49:04 +0100 Subject: [PATCH] updated article page layout (buttons & meta) --- .../blog/article-page/article-page.component.css | 13 ++++--------- .../article-page/article-page.component.html | 16 +++++++++------- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/src/app/blog/article-page/article-page.component.css b/src/app/blog/article-page/article-page.component.css index 4e0f20d..75bd1f1 100644 --- a/src/app/blog/article-page/article-page.component.css +++ b/src/app/blog/article-page/article-page.component.css @@ -113,7 +113,7 @@ h1 { .article-meta { display: flex; flex-direction: row; - justify-content: space-between; + gap: 3rem; font-size: 0.95rem; color: rgb(168 168 211); text-align: left; @@ -128,10 +128,6 @@ h1 { margin: 0; } -.article-meta .meta-right strong { - font-size: 0.8rem; -} - .article-meta .meta-left, .article-meta .meta-right { display: flex; flex-direction: column; @@ -143,8 +139,8 @@ h1 { flex-direction: row; align-items: center; color: white; - justify-content: space-between; - margin: 0 0 5px 15px; + gap: 3rem; + margin: 0 0 15px 15px; } .article-buttons i { @@ -154,13 +150,12 @@ h1 { .article-buttons .buttons-left { display: inline-flex; gap: 20px; - margin-bottom: 10px; cursor: pointer; } .article-buttons .buttons-right { display: inline-flex; - margin-top: auto; + margin-left: 15px; align-items: center; gap: 0.5rem; } diff --git a/src/app/blog/article-page/article-page.component.html b/src/app/blog/article-page/article-page.component.html index 272a61a..19e966c 100644 --- a/src/app/blog/article-page/article-page.component.html +++ b/src/app/blog/article-page/article-page.component.html @@ -48,13 +48,15 @@ {{ article.createdAt | date:('TIME.FORMAT' | translate) }} {{ 'TIME.SUFFIX' | translate }}

-
-

{{ 'UPDATED_AT' | translate }}

-

{{ article.updatedAt | date:'mediumDate' }}
- {{ 'TIME.PREFIX' | translate}} - {{ article.updatedAt | date:('TIME.FORMAT' | translate) }} - {{ 'TIME.SUFFIX' | translate }}

-
+ @if (article.updatedAt) { +
+

{{ 'UPDATED_AT' | translate }}

+

{{ article.updatedAt | date:'mediumDate' }}
+ {{ 'TIME.PREFIX' | translate}} + {{ article.updatedAt | date:('TIME.FORMAT' | translate) }} + {{ 'TIME.SUFFIX' | translate }}

+
+ }