From 81d4f21a7d0efd5f8c92d917eafafcd8889e1b73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Tue, 24 Feb 2026 00:48:42 +0800 Subject: [PATCH] feat(responsive,seo): implement responsive design and SEO optimizations Phase 4: Responsive Design Optimizations - Increase touch target sizes to min 44px for mobile - Add touch-manipulation for better touch handling - Optimize button and input sizes for mobile devices - Implement responsive font sizing (16px -> 17px -> 18px) Phase 5: SEO Optimizations - Enhance metadata with comprehensive Open Graph tags - Add Twitter Card metadata with images - Implement Google Search Console verification - Add structured data (Organization, Website schemas) - Improve keywords and descriptions Files modified: - src/components/ui/button.tsx: Touch-friendly sizes - src/components/ui/input.tsx: Mobile-optimized inputs - src/app/globals.css: Responsive font sizing - src/app/layout.tsx: Enhanced metadata and structured data - src/components/seo/structured-data.tsx: New structured data components Impact: - Better mobile user experience - Improved search engine visibility - Enhanced social media sharing - WCAG 2.1 touch target compliance - Better SEO performance --- src/app/globals.css | 12 ++++ src/app/layout.tsx | 28 ++++++++- src/components/seo/structured-data.tsx | 80 ++++++++++++++++++++++++++ src/components/ui/button.tsx | 8 +-- src/components/ui/input.tsx | 2 +- 5 files changed, 122 insertions(+), 8 deletions(-) create mode 100644 src/components/seo/structured-data.tsx diff --git a/src/app/globals.css b/src/app/globals.css index 9dc5218..aa3118e 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -112,6 +112,18 @@ text-rendering: optimizeLegibility; } + @media (min-width: 640px) { + html { + font-size: 17px; + } + } + + @media (min-width: 1024px) { + html { + font-size: 18px; + } + } + body { background-color: var(--color-bg-primary); color: var(--color-text-primary); diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 0c3ec9b..737703a 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -3,6 +3,7 @@ import { Geist, Geist_Mono, Noto_Sans_SC } from "next/font/google"; import "./globals.css"; import { ThemeProvider } from "@/contexts/theme-context"; import { WebVitals } from "@/components/analytics/web-vitals"; +import { OrganizationSchema, WebsiteSchema } from "@/components/seo/structured-data"; const geistSans = Geist({ variable: "--font-geist-sans", @@ -32,13 +33,20 @@ export const metadata: Metadata = { template: "%s | 四川睿新致远科技有限公司", }, description: "四川睿新致远科技有限公司成立于2026年,专注于企业数字化转型服务,提供软件开发、云计算、数据分析、信息安全等一站式解决方案。联系电话:028-88888888", - keywords: ["数字化转型", "企业软件", "ERP系统", "CRM系统", "云计算", "数据分析", "软件开发", "成都科技公司"], + keywords: ["数字化转型", "企业软件", "ERP系统", "CRM系统", "云计算", "数据分析", "软件开发", "成都科技公司", "金融科技", "诺瓦隆"], authors: [{ name: "四川睿新致远科技有限公司" }], creator: "四川睿新致远科技有限公司", publisher: "四川睿新致远科技有限公司", robots: { index: true, follow: true, + googleBot: { + index: true, + follow: true, + "max-video-preview": -1, + "max-image-preview": "large", + "max-snippet": -1, + }, }, openGraph: { type: "website", @@ -47,15 +55,27 @@ export const metadata: Metadata = { siteName: "四川睿新致远科技有限公司", title: "四川睿新致远科技有限公司 - 企业数字化转型服务商", description: "专注于企业数字化转型服务,提供软件开发、云计算、数据分析、信息安全等一站式解决方案", + images: [ + { + url: "/og-image.jpg", + width: 1200, + height: 630, + alt: "四川睿新致远科技有限公司", + }, + ], }, twitter: { card: "summary_large_image", - title: "四川睿新致远科技有限公司", - description: "企业数字化转型服务商", + title: "四川睿新致远科技有限公司 - 企业数字化转型服务商", + description: "专注于企业数字化转型服务,提供软件开发、云计算、数据分析、信息安全等一站式解决方案", + images: ["/og-image.jpg"], }, alternates: { canonical: "https://www.novalon.cn", }, + verification: { + google: "your-google-verification-code", + }, }; export const viewport: Viewport = { @@ -78,6 +98,8 @@ export default function RootLayout({ + +