Версия 1.0.4 Различные улучшения.

This commit is contained in:
anibilag 2025-10-14 21:50:28 +03:00
parent ba009ab071
commit 6daed3649e
8 changed files with 11 additions and 9 deletions

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> <link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title> <title>Культура двух Столиц</title>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,8 @@ async function generateSitemap() {
async function fetchArticlePaths() { async function fetchArticlePaths() {
try { try {
const response = await axios.get(`${API_URL}/api/articles/sitemap/`); const response = await axios.get(`${API_URL}/api/articles/sitemap`);
console.log(response.data.articles[0]);
return response.data.articles; return response.data.articles;
} catch (error) { } catch (error) {
console.error('Ошибка при получении путей статей:', error.message); console.error('Ошибка при получении путей статей:', error.message);

View File

@ -29,6 +29,7 @@ export function FeaturedSection() {
cityId: city || undefined, cityId: city || undefined,
}, },
}); });
console.log(response.data.articles[0]);
setArticles(response.data.articles); setArticles(response.data.articles);
setTotalPages(response.data.totalPages); setTotalPages(response.data.totalPages);

View File

@ -83,7 +83,7 @@ export function Footer() {
<li className="flex items-center"> <li className="flex items-center">
<Mail size={18} className="mr-2" /> <Mail size={18} className="mr-2" />
<a href="mailto:contact@culturescope.com" className="hover:text-white transition-colors"> <a href="mailto:contact@culturescope.com" className="hover:text-white transition-colors">
izolkin@yandex.ru russcult@yandex.ru
</a> </a>
</li> </li>
<li className="flex items-center"> <li className="flex items-center">

View File

@ -11,8 +11,8 @@ interface SEOProps {
export function SEO({ export function SEO({
title = 'Культура двух столиц', title = 'Культура двух столиц',
description = 'Discover the latest in art, music, theater, and cultural events from around the globe.', description = 'Последние новинки искусства, музыки, театра и культурных мероприятий Москвы и Санкт-Петербурга.',
keywords = ['culture', 'art', 'music', 'theater', 'film'], keywords = ['культура', 'искусство', 'музыка', 'театр', 'кино'],
image = 'https://images.unsplash.com/photo-1460661419201-fd4cecdf8a8b?auto=format&fit=crop&q=80&w=2070', image = 'https://images.unsplash.com/photo-1460661419201-fd4cecdf8a8b?auto=format&fit=crop&q=80&w=2070',
url = typeof window !== 'undefined' ? window.location.href : '', url = typeof window !== 'undefined' ? window.location.href : '',
type = 'website' type = 'website'

View File

@ -128,7 +128,7 @@ export function ArticlePage() {
description={articleData.excerpt} description={articleData.excerpt}
image={articleData.coverImage} image={articleData.coverImage}
type="article" type="article"
keywords={[CategoryTitles[Number(articleData.categoryId)], 'culture', 'article', CityTitles[Number(articleData.cityId)].toLowerCase()]} keywords={[CategoryTitles[Number(articleData.categoryId)], 'культура', 'статья', CityTitles[Number(articleData.cityId)].toLowerCase()]}
/> />
<Header /> <Header />
<main className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12"> <main className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12">

View File

@ -25,10 +25,10 @@ export function BookmarksPage() {
<div className="text-center py-12"> <div className="text-center py-12">
<Bookmark size={48} className="mx-auto text-gray-400 mb-4" /> <Bookmark size={48} className="mx-auto text-gray-400 mb-4" />
<h2 className="text-xl font-medium text-gray-900 mb-2"> <h2 className="text-xl font-medium text-gray-900 mb-2">
No bookmarks yet У вас еще нет закладок
</h2> </h2>
<p className="text-gray-500"> <p className="text-gray-500">
Start bookmarking articles you want to read later Добавьте в закладки статьи, которые вы хотите прочитать позже
</p> </p>
</div> </div>
)} )}