From 98bb05a0843a0f83d8153de50c4d7fd719b608dc Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Thu, 9 Jul 2026 13:11:46 +0900 Subject: [PATCH] Standardize blog editor and content styles --- src/TaxBaik.Web/Pages/Blog/Post.cshtml | 39 ++++++----- .../Pages/Shared/_BlogEditor.cshtml | 46 ++++++------- src/TaxBaik.Web/wwwroot/css/admin.css | 25 ++++++-- src/TaxBaik.Web/wwwroot/css/site.css | 64 +++++++++++++++++++ 4 files changed, 124 insertions(+), 50 deletions(-) diff --git a/src/TaxBaik.Web/Pages/Blog/Post.cshtml b/src/TaxBaik.Web/Pages/Blog/Post.cshtml index 9e8efc2..148e2d6 100644 --- a/src/TaxBaik.Web/Pages/Blog/Post.cshtml +++ b/src/TaxBaik.Web/Pages/Blog/Post.cshtml @@ -11,7 +11,7 @@ @if (Model.Post != null) { -
+
-
+ @if (!string.IsNullOrEmpty(Model.Post.ThumbnailUrl)) { @Model.Post.Title + loading="lazy" class="img-fluid rounded-4 mb-4 w-100" style="max-height: 400px; object-fit: cover;" /> }

@Model.Post.Title

📅 @Model.Post.CreatedAt.ToString("yyyy년 MM월 dd일") 👁️ @Model.Post.ViewCount 조회 - @Model.Post.CategoryName + @Model.Post.CategoryName

-
+
@Html.Raw(Model.HtmlContent)

-
+
상담이 필요하신가요?

이 글과 관련된 상담이 필요하면 언제든 연락주세요.

📞 상담 신청하기
- - -
-

이 글을 공유하세요:

- -
} else @@ -67,13 +62,15 @@ else } - } - diff --git a/src/TaxBaik.Web/Pages/Shared/_BlogEditor.cshtml b/src/TaxBaik.Web/Pages/Shared/_BlogEditor.cshtml index cf11e95..77ce23e 100644 --- a/src/TaxBaik.Web/Pages/Shared/_BlogEditor.cshtml +++ b/src/TaxBaik.Web/Pages/Shared/_BlogEditor.cshtml @@ -1,6 +1,6 @@ @model TaxBaik.Web.Pages.Shared.BlogEditorModel -
+
-
+
-
- - - - - + -
@Html.Raw(Model.Content)
-
HTML 태그는 그대로 저장되고 홈페이지에서 렌더링됩니다.
+
@Html.Raw(Model.Content)
+
편집 결과는 HTML로 저장되고, 홈페이지에서도 같은 스타일 규칙으로 렌더링됩니다.
-
+
@@ -62,30 +62,26 @@
-