From 5bb9db2aadab8e21029064ccf0755232ca20d6e6 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Mon, 15 Jun 2026 16:07:42 +0200 Subject: [PATCH] seo-improvements --- client/index.html | 24 ++-- client/src/components/LoginForm.vue | 23 ++++ client/src/router/index.js | 125 ++++++++++++++++++-- client/src/views/PrivacyView.vue | 4 +- client/src/views/SeoLandingView.vue | 177 ++++++++++++++++++++++++++++ server/index.js | 6 +- server/routes-seo.js | 118 +++++++++++++++++-- 7 files changed, 439 insertions(+), 38 deletions(-) create mode 100644 client/src/views/SeoLandingView.vue diff --git a/client/index.html b/client/index.html index f80d953..6795a09 100644 --- a/client/index.html +++ b/client/index.html @@ -3,36 +3,36 @@ - SingleChat - Chat, Single-Chat und Bildaustausch - - + SingleChat - Kostenloser Single Chat ohne Anmeldung + + - - + + - - + + - - - + + + - + - +
diff --git a/client/src/components/LoginForm.vue b/client/src/components/LoginForm.vue index f41de9c..363b2c1 100644 --- a/client/src/components/LoginForm.vue +++ b/client/src/components/LoginForm.vue @@ -11,6 +11,11 @@ Bildaustausch Kompakte Bedienung +
@@ -242,6 +247,24 @@ function handleSubmit() { font-weight: 600; } +.landing-login-topic-links { + display: flex; + flex-wrap: wrap; + gap: 8px; + margin: 0 0 18px; +} + +.landing-login-topic-links a { + color: #245c3a; + font-size: 13px; + font-weight: 700; + text-decoration: none; +} + +.landing-login-topic-links a:hover { + text-decoration: underline; +} + .landing-login-card { padding: 24px; border-radius: 20px; diff --git a/client/src/router/index.js b/client/src/router/index.js index e875808..73d0542 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -12,15 +12,16 @@ import GuideFirstMessageView from '../views/GuideFirstMessageView.vue'; import GuideProfileView from '../views/GuideProfileView.vue'; import GuideSafetyView from '../views/GuideSafetyView.vue'; import GuideRedFlagsView from '../views/GuideRedFlagsView.vue'; +import SeoLandingView from '../views/SeoLandingView.vue'; -const SITE_URL = 'https://www.ypchat.net'; +const SITE_URL = 'https://www.single-chat.net'; const DEFAULT_IMAGE = `${SITE_URL}/static/favicon.png`; const SUPPORTED_LOCALES = ['de', 'en', 'fr', 'es', 'it', 'ja', 'zh', 'th', 'tl']; const LOCALIZED_HOME_META = { de: { - title: 'SingleChat: Kostenloser Single Chat, privat & anonym', - description: 'Kostenloser Single Chat für private und anonyme Gespräche. Lerne neue Kontakte kennen und teile Bilder sicher online.', - keywords: 'single chat, kostenloser chat, privat chatten, anonym chat, free chat, private chat, anonymous chat, online chat' + title: 'SingleChat - Kostenloser Single Chat ohne Anmeldung', + description: 'Kostenloser Single Chat ohne lange Registrierung: Profil starten, Singles kennenlernen, privat chatten und Bilder sicher austauschen.', + keywords: 'single chat, kostenloser single chat, single chat ohne anmeldung, single treff chat, chatten für singles, online chat' }, en: { title: 'SingleChat: Free Private & Anonymous Single Chat', @@ -68,11 +69,87 @@ const homeSchema = { '@context': 'https://schema.org', '@type': 'WebSite', name: 'SingleChat', + alternateName: 'Single-Chat.net', url: `${SITE_URL}/`, - description: 'Kostenloser Single Chat für private und anonyme Gespräche. Lerne neue Kontakte kennen und tausche Bilder sicher aus.', + description: 'Kostenloser Single Chat ohne lange Registrierung. Lerne Singles kennen, chatte privat und tausche Bilder sicher aus.', inLanguage: 'de-DE' }; +const landingPages = [ + { + path: '/kostenloser-single-chat', + name: 'kostenloser-single-chat', + title: 'Kostenloser Single Chat - direkt online chatten', + description: 'Starte kostenlos im Single Chat: Profil anlegen, Singles finden, privat schreiben und Bilder sicher austauschen.', + keywords: 'kostenloser single chat, single chat kostenlos, gratis chat singles, kostenlos chatten', + heading: 'Kostenloser Single Chat', + intro: 'SingleChat ist fuer alle gedacht, die unkompliziert neue Kontakte finden und direkt online chatten moechten. Du startest mit einem kurzen Profil und kannst danach passende Singles suchen oder in der Lobby ins Gespraech kommen.', + sections: [ + { + title: 'Warum kostenlos starten?', + text: 'Ein Single Chat funktioniert am besten, wenn der Einstieg niedrig bleibt. Deshalb steht der schnelle Start im Mittelpunkt: Nickname waehlen, Alter und Land angeben, Chat oeffnen.' + }, + { + title: 'Privat schreiben und Bilder teilen', + text: 'Neben offenen Kontakten sind private Unterhaltungen moeglich. Bilder lassen sich im Chat austauschen, waehrend Regeln und Blockierfunktionen fuer einen respektvollen Rahmen sorgen.' + } + ], + links: [ + { to: '/', label: 'Jetzt Single Chat starten' }, + { to: '/sicherheit', label: 'Sicher chatten' }, + { to: '/faq', label: 'FAQ lesen' } + ] + }, + { + path: '/single-chat-ohne-anmeldung', + name: 'single-chat-ohne-anmeldung', + title: 'Single Chat ohne Anmeldung - schnell und privat', + description: 'Single Chat ohne lange Anmeldung: Nickname eingeben, Profil starten und direkt mit Singles online chatten.', + keywords: 'single chat ohne anmeldung, chat ohne anmeldung, single chat sofort, anonym chatten', + heading: 'Single Chat ohne Anmeldung', + intro: 'Wenn du nicht erst ein langes Konto erstellen moechtest, passt SingleChat zu diesem Suchwunsch: wenige Angaben reichen fuer den Einstieg, danach kannst du sofort loslegen.', + sections: [ + { + title: 'Schneller Einstieg mit Nickname', + text: 'Du brauchst keinen langen Registrierungsprozess. Ein Nickname und die noetigen Basisangaben genuegen, damit andere Nutzer dich im Chat einordnen koennen.' + }, + { + title: 'Anonym bleiben, respektvoll chatten', + text: 'Nutze einen Nickname, der keine privaten Daten verraet. Teile Telefonnummer, Adresse oder Zahlungsdaten nicht im Chat und blockiere Kontakte, wenn Grenzen ueberschritten werden.' + } + ], + links: [ + { to: '/', label: 'Ohne lange Anmeldung starten' }, + { to: '/ratgeber/sicher-chatten', label: 'Datenschutz-Tipps' }, + { to: '/regeln', label: 'Chat-Regeln' } + ] + }, + { + path: '/single-treff-chat', + name: 'single-treff-chat', + title: 'Single Treff Chat - neue Kontakte kennenlernen', + description: 'Single Treff Chat fuer neue Kontakte: finde Singles, starte private Gespraeche und lerne Menschen online kennen.', + keywords: 'single treff chat, single treff, singles kennenlernen chat, chatten fuer singles', + heading: 'Single Treff Chat', + intro: 'Der Single Treff Chat richtet sich an Nutzer, die online neue Menschen kennenlernen und aus ersten Nachrichten echte Gespraeche machen wollen.', + sections: [ + { + title: 'Kontakte finden statt endlos suchen', + text: 'Mit Profilangaben wie Land, Alter und Geschlecht kannst du leichter passende Kontakte einschaetzen und Gespraeche beginnen, die mehr als nur Smalltalk sind.' + }, + { + title: 'Gute erste Nachrichten', + text: 'Persoenliche, kurze Einstiege funktionieren besser als kopierte Standardsaetze. Im Ratgeber findest du Beispiele fuer natuerliche erste Nachrichten.' + } + ], + links: [ + { to: '/', label: 'Single Treff Chat oeffnen' }, + { to: '/ratgeber/erste-nachricht', label: 'Erste Nachricht verbessern' }, + { to: '/ratgeber/profil-tipps', label: 'Profil verbessern' } + ] + } +]; + const partnersSchema = { '@context': 'https://schema.org', '@type': 'CollectionPage', @@ -172,11 +249,11 @@ const routes = [ name: 'chat', component: ChatView, meta: { - title: 'SingleChat: Kostenloser Single Chat, privat & anonym', - description: 'Kostenloser Single Chat für private und anonyme Gespräche. Lerne neue Kontakte kennen und teile Bilder sicher online.', - keywords: 'single chat, kostenloser chat, privat chatten, anonym chat, free chat, private chat, anonymous chat, online chat', - ogTitle: 'SingleChat: Kostenloser Single Chat, privat & anonym', - ogDescription: 'Kostenlos chatten, privat bleiben und neue Kontakte kennenlernen - mit sicherem Bildaustausch.', + title: 'SingleChat - Kostenloser Single Chat ohne Anmeldung', + description: 'Kostenloser Single Chat ohne lange Registrierung: Profil starten, Singles kennenlernen, privat chatten und Bilder sicher austauschen.', + keywords: 'single chat, kostenloser single chat, single chat ohne anmeldung, single treff chat, chatten für singles, online chat', + ogTitle: 'SingleChat - Kostenloser Single Chat ohne Anmeldung', + ogDescription: 'Kostenlos chatten, Singles kennenlernen und Bilder sicher austauschen.', ogType: 'website', image: DEFAULT_IMAGE, robots: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1', @@ -377,6 +454,34 @@ const routes = [ } ]; +for (const page of landingPages) { + routes.push({ + path: page.path, + name: page.name, + component: SeoLandingView, + meta: { + title: `${page.title} - SingleChat`, + description: page.description, + keywords: page.keywords, + ogTitle: `${page.title} - SingleChat`, + ogDescription: page.description, + ogType: 'website', + image: DEFAULT_IMAGE, + robots: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1', + landing: page, + schema: { + '@context': 'https://schema.org', + '@type': 'WebPage', + name: `${page.title} - SingleChat`, + url: `${SITE_URL}${page.path}`, + description: page.description, + isPartOf: homeSchema, + inLanguage: 'de-DE' + } + } + }); +} + for (const locale of SUPPORTED_LOCALES) { const localized = LOCALIZED_HOME_META[locale] || LOCALIZED_HOME_META.de; routes.push({ diff --git a/client/src/views/PrivacyView.vue b/client/src/views/PrivacyView.vue index ed2faae..421fc7e 100644 --- a/client/src/views/PrivacyView.vue +++ b/client/src/views/PrivacyView.vue @@ -14,8 +14,8 @@

Datenschutzerklärung für Website und App

- Diese Datenschutzerklärung gilt für die Website und die Android-App von SingleChat beziehungsweise YPChat unter - der Domain www.ypchat.net. + Diese Datenschutzerklärung gilt für die Website und die Android-App von SingleChat unter + der Domain www.single-chat.net.

1. Verantwortlicher

diff --git a/client/src/views/SeoLandingView.vue b/client/src/views/SeoLandingView.vue new file mode 100644 index 0000000..a64170b --- /dev/null +++ b/client/src/views/SeoLandingView.vue @@ -0,0 +1,177 @@ + + + + + diff --git a/server/index.js b/server/index.js index 1b2e86d..8947793 100644 --- a/server/index.js +++ b/server/index.js @@ -20,12 +20,12 @@ const server = createServer(app); const NODE_ENV = process.env.NODE_ENV || 'development'; const PORT = process.env.PORT || (NODE_ENV === 'production' ? 4000 : 3300); const IS_PRODUCTION = NODE_ENV === 'production'; -const PRIMARY_HOST = 'www.ypchat.net'; -const LEGACY_HOSTS = new Set(['ypchat.net']); +const PRIMARY_HOST = 'www.single-chat.net'; +const LEGACY_HOSTS = new Set(['single-chat.net', 'ypchat.net', 'www.ypchat.net']); // CORS-Origins konfigurieren const allowedOrigins = IS_PRODUCTION - ? ['https://ypchat.net', 'https://www.ypchat.net'] + ? ['https://single-chat.net', 'https://www.single-chat.net', 'https://ypchat.net', 'https://www.ypchat.net'] : ['http://localhost:5175', 'http://127.0.0.1:5175']; // Socket.IO auf dem gleichen HTTP-Server wie Express diff --git a/server/routes-seo.js b/server/routes-seo.js index fa24313..5fbf75b 100644 --- a/server/routes-seo.js +++ b/server/routes-seo.js @@ -2,7 +2,7 @@ import { readFileSync, existsSync } from 'fs'; import { join, resolve } from 'path'; import { loadFeedback } from './feedback-store.js'; -const SITE_URL = 'https://www.ypchat.net'; +const SITE_URL = 'https://www.single-chat.net'; const DEFAULT_IMAGE = `${SITE_URL}/static/favicon.png`; const SEO_LOCALES = [ { code: 'de', label: 'Deutsch' }, @@ -18,9 +18,9 @@ const SEO_LOCALES = [ ]; const LOCALE_SEO_META = { de: { - title: 'SingleChat: Kostenloser Single Chat, privat & anonym', - description: 'Kostenloser Single Chat für private und anonyme Gespräche. Lerne neue Kontakte kennen und teile Bilder sicher online.', - keywords: 'single chat, kostenloser chat, privat chatten, anonym chat, free chat, private chat, anonymous chat, online chat' + title: 'SingleChat - Kostenloser Single Chat ohne Anmeldung', + description: 'Kostenloser Single Chat ohne lange Registrierung: Profil starten, Singles kennenlernen, privat chatten und Bilder sicher austauschen.', + keywords: 'single chat, kostenloser single chat, single chat ohne anmeldung, single treff chat, chatten fuer singles, online chat' }, en: { title: 'SingleChat: Free Private & Anonymous Single Chat', @@ -70,13 +70,52 @@ const LOCALE_SEO_META = { } }; +const landingPages = [ + { + route: '/kostenloser-single-chat', + title: 'Kostenloser Single Chat - direkt online chatten - SingleChat', + description: 'Starte kostenlos im Single Chat: Profil anlegen, Singles finden, privat schreiben und Bilder sicher austauschen.', + keywords: 'kostenloser single chat, single chat kostenlos, gratis chat singles, kostenlos chatten', + heading: 'Kostenloser Single Chat', + intro: 'SingleChat ist fuer alle gedacht, die unkompliziert neue Kontakte finden und direkt online chatten moechten. Du startest mit einem kurzen Profil und kannst danach passende Singles suchen oder in der Lobby ins Gespraech kommen.', + sections: [ + ['Warum kostenlos starten?', 'Ein Single Chat funktioniert am besten, wenn der Einstieg niedrig bleibt. Deshalb steht der schnelle Start im Mittelpunkt: Nickname waehlen, Alter und Land angeben, Chat oeffnen.'], + ['Privat schreiben und Bilder teilen', 'Neben offenen Kontakten sind private Unterhaltungen moeglich. Bilder lassen sich im Chat austauschen, waehrend Regeln und Blockierfunktionen fuer einen respektvollen Rahmen sorgen.'] + ] + }, + { + route: '/single-chat-ohne-anmeldung', + title: 'Single Chat ohne Anmeldung - schnell und privat - SingleChat', + description: 'Single Chat ohne lange Anmeldung: Nickname eingeben, Profil starten und direkt mit Singles online chatten.', + keywords: 'single chat ohne anmeldung, chat ohne anmeldung, single chat sofort, anonym chatten', + heading: 'Single Chat ohne Anmeldung', + intro: 'Wenn du nicht erst ein langes Konto erstellen moechtest, passt SingleChat zu diesem Suchwunsch: wenige Angaben reichen fuer den Einstieg, danach kannst du sofort loslegen.', + sections: [ + ['Schneller Einstieg mit Nickname', 'Du brauchst keinen langen Registrierungsprozess. Ein Nickname und die noetigen Basisangaben genuegen, damit andere Nutzer dich im Chat einordnen koennen.'], + ['Anonym bleiben, respektvoll chatten', 'Nutze einen Nickname, der keine privaten Daten verraet. Teile Telefonnummer, Adresse oder Zahlungsdaten nicht im Chat und blockiere Kontakte, wenn Grenzen ueberschritten werden.'] + ] + }, + { + route: '/single-treff-chat', + title: 'Single Treff Chat - neue Kontakte kennenlernen - SingleChat', + description: 'Single Treff Chat fuer neue Kontakte: finde Singles, starte private Gespraeche und lerne Menschen online kennen.', + keywords: 'single treff chat, single treff, singles kennenlernen chat, chatten fuer singles', + heading: 'Single Treff Chat', + intro: 'Der Single Treff Chat richtet sich an Nutzer, die online neue Menschen kennenlernen und aus ersten Nachrichten echte Gespraeche machen wollen.', + sections: [ + ['Kontakte finden statt endlos suchen', 'Mit Profilangaben wie Land, Alter und Geschlecht kannst du leichter passende Kontakte einschaetzen und Gespraeche beginnen, die mehr als nur Smalltalk sind.'], + ['Gute erste Nachrichten', 'Persoenliche, kurze Einstiege funktionieren besser als kopierte Standardsaetze. Im Ratgeber findest du Beispiele fuer natuerliche erste Nachrichten.'] + ] + } +]; + const seoData = { '/': { - title: 'SingleChat: Kostenloser Single Chat, privat & anonym', - description: 'Kostenloser Single Chat für private und anonyme Gespräche. Lerne neue Kontakte kennen und teile Bilder sicher online.', - keywords: 'single chat, kostenloser chat, privat chatten, anonym chat, free chat, private chat, anonymous chat, online chat', - ogTitle: 'SingleChat: Kostenloser Single Chat, privat & anonym', - ogDescription: 'Kostenlos chatten, privat bleiben und neue Kontakte kennenlernen - mit sicherem Bildaustausch.', + title: 'SingleChat - Kostenloser Single Chat ohne Anmeldung', + description: 'Kostenloser Single Chat ohne lange Registrierung: Profil starten, Singles kennenlernen, privat chatten und Bilder sicher austauschen.', + keywords: 'single chat, kostenloser single chat, single chat ohne anmeldung, single treff chat, chatten fuer singles, online chat', + ogTitle: 'SingleChat - Kostenloser Single Chat ohne Anmeldung', + ogDescription: 'Kostenlos chatten, Singles kennenlernen und Bilder sicher austauschen.', ogType: 'website', ogUrl: `${SITE_URL}/`, ogImage: DEFAULT_IMAGE, @@ -85,8 +124,9 @@ const seoData = { '@context': 'https://schema.org', '@type': 'WebSite', name: 'SingleChat', + alternateName: 'Single-Chat.net', url: `${SITE_URL}/`, - description: 'Kostenloser Single Chat für private und anonyme Gespräche. Lerne neue Kontakte kennen und tausche Bilder sicher aus.', + description: 'Kostenloser Single Chat ohne lange Registrierung. Lerne Singles kennen, chatte privat und tausche Bilder sicher aus.', inLanguage: 'de-DE' } }, @@ -303,6 +343,34 @@ const seoData = { } }; +for (const page of landingPages) { + seoData[page.route] = { + title: page.title, + description: page.description, + keywords: page.keywords, + ogTitle: page.title, + ogDescription: page.description, + ogType: 'website', + ogUrl: `${SITE_URL}${page.route}`, + ogImage: DEFAULT_IMAGE, + robots: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1', + schema: { + '@context': 'https://schema.org', + '@type': 'WebPage', + name: page.title, + url: `${SITE_URL}${page.route}`, + description: page.description, + isPartOf: { + '@type': 'WebSite', + name: 'SingleChat', + alternateName: 'Single-Chat.net', + url: `${SITE_URL}/` + }, + inLanguage: 'de-DE' + } + }; +} + for (const locale of SEO_LOCALES) { const meta = LOCALE_SEO_META[locale.code] || LOCALE_SEO_META.de; seoData[`/${locale.code}`] = { @@ -435,6 +503,26 @@ function buildLocalizedLandingContent(route, __dirname) { `; } +function buildSeoLandingContent(route) { + const page = landingPages.find((entry) => entry.route === route); + if (!page) return ''; + + const sectionMarkup = page.sections + .map(([title, text]) => `
+

${escapeHtml(title)}

+

${escapeHtml(text)}

+
`) + .join('\n'); + + return `
+

Single-Chat.net

+

${escapeHtml(page.heading)}

+

${escapeHtml(page.intro)}

+
${sectionMarkup}
+

Weitere Einstiege: kostenloser Single Chat, Single Chat ohne Anmeldung, Single Treff Chat.

+
`; +} + function generateHTML(route, meta, __dirname) { const distIndexPath = join(__dirname, '../docroot/dist/index.html'); @@ -482,6 +570,11 @@ function generateHTML(route, meta, __dirname) { } } + const seoLanding = buildSeoLandingContent(route); + if (seoLanding) { + html = html.replace('
', `
${seoLanding}
`); + } + if (route === '/feedback') { const feedbackItems = loadFeedback(__dirname) .sort((a, b) => new Date(b.createdAt) - new Date(a.createdAt)) @@ -547,12 +640,15 @@ Allow: /feedback Allow: /faq Allow: /regeln Allow: /sicherheit -<