diff --git a/AGENTS.md b/AGENTS.md index 1a9d257..8e4a1f4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -12,6 +12,7 @@ - Ассистент должен объяснить, какие изменения планируется внести - Необходимо указать, в какие файлы будут внесены изменения - Следует объяснить последствия предполагаемых изменений + - Внимательно читай промпт и не выходи за рамки описанных в нем измнений 3. **Безопасность кода** - Все изменения должны проходить проверку на безопасность diff --git a/frontend/src/components/base/PageHero.astro b/frontend/src/components/base/PageHero.astro index 96eac64..30b9ca3 100644 --- a/frontend/src/components/base/PageHero.astro +++ b/frontend/src/components/base/PageHero.astro @@ -364,6 +364,7 @@ const showImage = layout === 'with-image' && sideImage; border-radius: 8px; box-shadow: 0 15px 35px rgba(0,0,0,0.2); min-width: 180px; + text-align: center; } .exp-number { @@ -372,6 +373,7 @@ const showImage = layout === 'with-image' && sideImage; color: #1e3050; line-height: 1; display: block; + text-align: center; } .exp-text { @@ -379,6 +381,7 @@ const showImage = layout === 'with-image' && sideImage; font-weight: 800; color: #535e6c; text-transform: uppercase; + text-align: center; } /* --- АДАПТАЦИЯ --- */ diff --git a/frontend/src/components/blog/PostReactionButtons.astro b/frontend/src/components/blog/PostReactionButtons.astro index 8cb79d5..e36fe95 100644 --- a/frontend/src/components/blog/PostReactionButtons.astro +++ b/frontend/src/components/blog/PostReactionButtons.astro @@ -96,6 +96,9 @@ const { initialLikes = 0, initialDislikes = 0, postId } = Astro.props; padding: 0.4rem 0.75rem; font-size: 0.8rem; } + .post-reactions { + align-items: flex-end; + } } :global(.toast-link) { diff --git a/frontend/src/components/blog/PostSocialShare.astro b/frontend/src/components/blog/PostSocialShare.astro index 2391853..bf42d96 100644 --- a/frontend/src/components/blog/PostSocialShare.astro +++ b/frontend/src/components/blog/PostSocialShare.astro @@ -109,6 +109,7 @@ const encodedUrl = encodeURIComponent(url); @media (max-width: 768px) { .post-social-share { flex-wrap: wrap; + align-items: flex-end; } } diff --git a/frontend/src/layouts/ArticleLayout.astro b/frontend/src/layouts/ArticleLayout.astro index 2d0194e..b8588ba 100644 --- a/frontend/src/layouts/ArticleLayout.astro +++ b/frontend/src/layouts/ArticleLayout.astro @@ -19,6 +19,7 @@ export interface Props { heroImage: string; heroAlt: string; category: string; + categoryColor?: string; postTitle: string; date: string; author: string; @@ -39,6 +40,7 @@ const { heroImage, heroAlt, category, + categoryColor = 'bg-gold', postTitle, date, author, @@ -87,8 +89,8 @@ const {