From 5e3af402217fac7804886f8cf287792138c5d7c8 Mon Sep 17 00:00:00 2001 From: Mitya Date: Sun, 19 Apr 2026 22:47:45 +0300 Subject: [PATCH] fix: update sitemap URL and enhance SEO metadata for sign-in page --- frontend/public/robots.txt | 2 +- frontend/src/app/auth/sign-in/page.tsx | 7 ++++++- frontend/src/app/layout.tsx | 22 +++++++++++++++++++++- frontend/src/app/sitemap.ts | 2 +- 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/frontend/public/robots.txt b/frontend/public/robots.txt index 2f3e419..edf1bd2 100644 --- a/frontend/public/robots.txt +++ b/frontend/public/robots.txt @@ -7,4 +7,4 @@ Disallow: /auth/syncing Allow: /auth/sign-in Allow: / -Sitemap: https://mashov.mitya/sitemap.xml +Sitemap: https://mashov.mitya.dev/sitemap.xml diff --git a/frontend/src/app/auth/sign-in/page.tsx b/frontend/src/app/auth/sign-in/page.tsx index ec60e2d..147a583 100644 --- a/frontend/src/app/auth/sign-in/page.tsx +++ b/frontend/src/app/auth/sign-in/page.tsx @@ -2,10 +2,15 @@ import type { Metadata } from 'next'; import SignInPageClient from './SignInPageClient'; export const metadata: Metadata = { - title: 'כניסה', + title: 'כניסה למרכז הורים', + description: 'התחברו למרכז הורים — צפו בציונים, שיעורי בית והודעות של ילדכם דרך מערכת משוב', alternates: { canonical: '/auth/sign-in', }, + openGraph: { + title: 'כניסה | מרכז הורים', + description: 'התחברו למרכז הורים — צפו בציונים, שיעורי בית והודעות של ילדכם דרך מערכת משוב', + }, robots: { index: true, follow: true, diff --git a/frontend/src/app/layout.tsx b/frontend/src/app/layout.tsx index 344010f..369b853 100644 --- a/frontend/src/app/layout.tsx +++ b/frontend/src/app/layout.tsx @@ -11,7 +11,7 @@ const assistant = Assistant({ }); export const metadata: Metadata = { - metadataBase: new URL('https://mashov.mitya'), + metadataBase: new URL(process.env.NEXT_PUBLIC_BASE_URL ?? 'https://mashov.mitya.dev'), title: { default: 'מרכז הורים', template: '%s | מרכז הורים', @@ -52,6 +52,22 @@ interface RootLayoutProps { children: React.ReactNode; } +const jsonLd = { + '@context': 'https://schema.org', + '@type': 'WebApplication', + name: 'מרכז הורים', + url: process.env.NEXT_PUBLIC_BASE_URL ?? 'https://mashov.mitya.dev', + description: 'ממשק מאוחד לנתוני בית הספר — ציונים, שיעורי בית, ומסרים', + inLanguage: 'he', + applicationCategory: 'EducationApplication', + operatingSystem: 'All', + offers: { + '@type': 'Offer', + price: '0', + priceCurrency: 'ILS', + }, +}; + export default function RootLayout({ children }: RootLayoutProps) { const themeBootstrap = ` (() => { @@ -73,6 +89,10 @@ export default function RootLayout({ children }: RootLayoutProps) {