Версия 1.0.4 Различные улучшения.
This commit is contained in:
parent
ba009ab071
commit
6daed3649e
@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite + React + TS</title>
|
||||
<title>Культура двух Столиц</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -9,7 +9,8 @@ async function generateSitemap() {
|
||||
|
||||
async function fetchArticlePaths() {
|
||||
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;
|
||||
} catch (error) {
|
||||
console.error('Ошибка при получении путей статей:', error.message);
|
||||
|
||||
@ -29,6 +29,7 @@ export function FeaturedSection() {
|
||||
cityId: city || undefined,
|
||||
},
|
||||
});
|
||||
console.log(response.data.articles[0]);
|
||||
|
||||
setArticles(response.data.articles);
|
||||
setTotalPages(response.data.totalPages);
|
||||
|
||||
@ -83,7 +83,7 @@ export function Footer() {
|
||||
<li className="flex items-center">
|
||||
<Mail size={18} className="mr-2" />
|
||||
<a href="mailto:contact@culturescope.com" className="hover:text-white transition-colors">
|
||||
izolkin@yandex.ru
|
||||
russcult@yandex.ru
|
||||
</a>
|
||||
</li>
|
||||
<li className="flex items-center">
|
||||
|
||||
@ -11,8 +11,8 @@ interface SEOProps {
|
||||
|
||||
export function SEO({
|
||||
title = 'Культура двух столиц',
|
||||
description = 'Discover the latest in art, music, theater, and cultural events from around the globe.',
|
||||
keywords = ['culture', 'art', 'music', 'theater', 'film'],
|
||||
description = 'Последние новинки искусства, музыки, театра и культурных мероприятий Москвы и Санкт-Петербурга.',
|
||||
keywords = ['культура', 'искусство', 'музыка', 'театр', 'кино'],
|
||||
image = 'https://images.unsplash.com/photo-1460661419201-fd4cecdf8a8b?auto=format&fit=crop&q=80&w=2070',
|
||||
url = typeof window !== 'undefined' ? window.location.href : '',
|
||||
type = 'website'
|
||||
|
||||
@ -128,7 +128,7 @@ export function ArticlePage() {
|
||||
description={articleData.excerpt}
|
||||
image={articleData.coverImage}
|
||||
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 />
|
||||
<main className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
|
||||
|
||||
@ -25,10 +25,10 @@ export function BookmarksPage() {
|
||||
<div className="text-center py-12">
|
||||
<Bookmark size={48} className="mx-auto text-gray-400 mb-4" />
|
||||
<h2 className="text-xl font-medium text-gray-900 mb-2">
|
||||
No bookmarks yet
|
||||
У вас еще нет закладок
|
||||
</h2>
|
||||
<p className="text-gray-500">
|
||||
Start bookmarking articles you want to read later
|
||||
Добавьте в закладки статьи, которые вы хотите прочитать позже
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user