diff --git a/frontend/public/favicon.ico b/frontend/public/favicon.ico deleted file mode 100644 index 7f48a94..0000000 Binary files a/frontend/public/favicon.ico and /dev/null differ diff --git a/frontend/public/favicon.svg b/frontend/public/favicon.svg deleted file mode 100644 index f157bd1..0000000 --- a/frontend/public/favicon.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - diff --git a/frontend/public/images/posts/2026/04/dtp-instruction.avif b/frontend/public/images/posts/2026/04/dtp-instruction.avif new file mode 100644 index 0000000..50ef18c Binary files /dev/null and b/frontend/public/images/posts/2026/04/dtp-instruction.avif differ diff --git a/frontend/src/components/blog/ArticleTableOfContents.astro b/frontend/src/components/blog/ArticleTableOfContents.astro new file mode 100644 index 0000000..3d11045 --- /dev/null +++ b/frontend/src/components/blog/ArticleTableOfContents.astro @@ -0,0 +1,161 @@ +--- +interface TOCItem { + id: string; + text: string; + level: number; +} +interface Props { + items: TOCItem[]; +} +const { items } = Astro.props; +--- + +{items.length > 0 && ( + + )} + + + + \ No newline at end of file diff --git a/frontend/src/components/blog/BlogCard.astro b/frontend/src/components/blog/BlogCard.astro index 13fd834..73df787 100644 --- a/frontend/src/components/blog/BlogCard.astro +++ b/frontend/src/components/blog/BlogCard.astro @@ -20,16 +20,6 @@ const { imageUrl = '/images/blog/default.avif', slug = '#' } = Astro.props; - -// Форматируем дату -const formatDate = (dateStr: string) => { - const d = new Date(dateStr); - return d.toLocaleDateString('ru-RU', { - day: 'numeric', - month: 'long', - year: 'numeric' - }); -}; ---
@@ -53,7 +43,7 @@ const formatDate = (dateStr: string) => { - {formatDate(date)} + {date} @@ -178,7 +168,7 @@ const formatDate = (dateStr: string) => { .card-meta { display: flex; align-items: center; - gap: 1.25rem; + justify-content: space-between; padding-top: 1rem; border-top: 1px solid #f1f5f9; margin-top: auto; diff --git a/frontend/src/components/blog/PostReactionButtons.astro b/frontend/src/components/blog/PostReactionButtons.astro index 963d6b9..062122a 100644 --- a/frontend/src/components/blog/PostReactionButtons.astro +++ b/frontend/src/components/blog/PostReactionButtons.astro @@ -37,8 +37,8 @@ const { initialLikes = 0, initialDislikes = 0, postId } = Astro.props; align-items: center; gap: 0.375rem; padding: 0.5rem 0.875rem; - background: rgba(255, 255, 255, 0.95); - border: 1px solid rgba(255, 255, 255, 0.3); + background: rgba(15, 23, 42, 0.75); + border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 2rem; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); diff --git a/frontend/src/components/blog/PostSocialShare.astro b/frontend/src/components/blog/PostSocialShare.astro index e0ed821..a065f0d 100644 --- a/frontend/src/components/blog/PostSocialShare.astro +++ b/frontend/src/components/blog/PostSocialShare.astro @@ -76,7 +76,7 @@ const encodedUrl = encodeURIComponent(url); } .share-label { - color: #64748b; + color: #ffffff; font-size: 0.875rem; font-weight: 600; } diff --git a/frontend/src/components/blog/RelatedPosts.astro b/frontend/src/components/blog/RelatedPosts.astro index 7f87649..3f178d8 100644 --- a/frontend/src/components/blog/RelatedPosts.astro +++ b/frontend/src/components/blog/RelatedPosts.astro @@ -62,6 +62,16 @@ const filteredPosts = currentSlug border-top: 2px solid #f1f5f9; } + /* Сбрасываем нумерацию заголовков от ArticleLayout */ + .related-posts .blog-card .card-title { + counter-increment: none !important; + display: block !important; + } + + .related-posts .blog-card .card-title::before { + display: none !important; + } + .section-title { color: #1e293b; font-size: clamp(1.5rem, 3vw, 2rem); diff --git a/frontend/src/content/blog/dtp-instruction-2024.mdx b/frontend/src/content/blog/dtp-instruction-2024.mdx index 2682250..dcfe543 100644 --- a/frontend/src/content/blog/dtp-instruction-2024.mdx +++ b/frontend/src/content/blog/dtp-instruction-2024.mdx @@ -1,7 +1,7 @@ --- title: "Что делать при ДТП: пошаговая инструкция 2024" description: "Подробный разбор действий после дорожно-транспортного происшествия. Как оформить ДТП, какие документы собрать и куда обращаться за компенсацией." -author: "Юрист АВ" +author: "Автоюрист" category: "ДТП" categoryColor: "bg-red" date: 2024-03-20 diff --git a/frontend/src/layouts/ArticleLayout.astro b/frontend/src/layouts/ArticleLayout.astro index ad5b118..1727e15 100644 --- a/frontend/src/layouts/ArticleLayout.astro +++ b/frontend/src/layouts/ArticleLayout.astro @@ -48,297 +48,231 @@ const { - - - - - - {title} {SITE_TITLE_SUFFIX} - - {canonicalLink && } - - - -
-
- {breadcrumbs && breadcrumbs.length > 0 && ( - + + + +
+
+
+
+
+ +
+
+ + +
+
+
+
+