From a2c4fcc91a9421e186691c4599f86b3810cbf2cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=9Eahan=20Hasret?= Date: Sun, 14 Dec 2025 00:33:20 +0300 Subject: [PATCH] robottxt --- package-lock.json | 49 +++ package.json | 2 + public/robots.txt | 11 + src/app/globals.css | 53 +++ src/app/layout.tsx | 10 +- src/app/not-found.tsx | 29 +- src/app/page.tsx | 111 +++++-- .../projects/[slug]/ProjectDetailClient.tsx | 303 ++++++++++++++++++ src/app/projects/[slug]/page.tsx | 46 +++ src/app/sitemap.ts | 58 ++++ src/components/ContactForm.tsx | 225 +++++++++++++ src/components/CustomCursor.tsx | 66 ++-- src/data/projects.ts | 190 +++++++++++ 13 files changed, 1096 insertions(+), 57 deletions(-) create mode 100644 public/robots.txt create mode 100644 src/app/projects/[slug]/ProjectDetailClient.tsx create mode 100644 src/app/projects/[slug]/page.tsx create mode 100644 src/app/sitemap.ts create mode 100644 src/components/ContactForm.tsx create mode 100644 src/data/projects.ts diff --git a/package-lock.json b/package-lock.json index 07f16f9..48e36ad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,8 @@ "name": "my-app", "version": "0.1.0", "dependencies": { + "@emailjs/browser": "^4.4.1", + "@vercel/analytics": "^1.6.1", "next": "16.0.10", "react": "19.2.1", "react-dom": "19.2.1" @@ -276,6 +278,15 @@ "node": ">=6.9.0" } }, + "node_modules/@emailjs/browser": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@emailjs/browser/-/browser-4.4.1.tgz", + "integrity": "sha512-DGSlP9sPvyFba3to2A50kDtZ+pXVp/0rhmqs2LmbMS3I5J8FSOgLwzY2Xb4qfKlOVHh29EAutLYwe5yuEZmEFg==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/@emnapi/core": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.7.1.tgz", @@ -2113,6 +2124,44 @@ "win32" ] }, + "node_modules/@vercel/analytics": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.6.1.tgz", + "integrity": "sha512-oH9He/bEM+6oKlv3chWuOOcp8Y6fo6/PSro8hEkgCW3pu9/OiCXiUpRUogDh3Fs3LH2sosDrx8CxeOLBEE+afg==", + "license": "MPL-2.0", + "peerDependencies": { + "@remix-run/react": "^2", + "@sveltejs/kit": "^1 || ^2", + "next": ">= 13", + "react": "^18 || ^19 || ^19.0.0-rc", + "svelte": ">= 4", + "vue": "^3", + "vue-router": "^4" + }, + "peerDependenciesMeta": { + "@remix-run/react": { + "optional": true + }, + "@sveltejs/kit": { + "optional": true + }, + "next": { + "optional": true + }, + "react": { + "optional": true + }, + "svelte": { + "optional": true + }, + "vue": { + "optional": true + }, + "vue-router": { + "optional": true + } + } + }, "node_modules/acorn": { "version": "8.15.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", diff --git a/package.json b/package.json index 18140f2..fe1c5ea 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,8 @@ "lint": "eslint" }, "dependencies": { + "@emailjs/browser": "^4.4.1", + "@vercel/analytics": "^1.6.1", "next": "16.0.10", "react": "19.2.1", "react-dom": "19.2.1" diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..f16d30c --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,11 @@ +# https://www.robotstxt.org/robotstxt.html +User-agent: * +Allow: / + +# Sitemap +Sitemap: https://zerosixlab.com/sitemap.xml + +# Disallow admin/private areas +Disallow: /api/ +Disallow: /_next/ +Disallow: /static/ diff --git a/src/app/globals.css b/src/app/globals.css index 1932d84..b096574 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -105,3 +105,56 @@ body { z-index: 9999; opacity: 0.15; } + +/* Accessibility: Reduce motion for users who prefer it */ +@media (prefers-reduced-motion: reduce) { + *, + *::before, + *::after { + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + transition-duration: 0.01ms !important; + scroll-behavior: auto !important; + } + + .scanlines { + display: none; + } + + .animate-pulse, + .animate-spin, + .animate-bounce { + animation: none !important; + } +} + +/* Skip to main content link for keyboard users */ +.skip-link { + position: absolute; + top: -40px; + left: 0; + background: var(--zsl-primary); + color: black; + padding: 8px 16px; + z-index: 10000; + font-weight: bold; + transition: top 0.3s; +} + +.skip-link:focus { + top: 0; +} + +/* Focus visible styles for better keyboard navigation */ +:focus-visible { + outline: 2px solid var(--zsl-primary); + outline-offset: 2px; +} + +/* Better button and link focus states */ +button:focus-visible, +a:focus-visible { + outline: 2px solid var(--zsl-primary); + outline-offset: 2px; + border-radius: 4px; +} diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 7d5713f..43942e3 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,5 +1,6 @@ import type { Metadata, Viewport } from "next"; import { Inter, Orbitron } from "next/font/google"; +import { Analytics } from '@vercel/analytics/next'; import React from 'react'; import "./globals.css"; @@ -13,6 +14,7 @@ export const viewport: Viewport = { }; export const metadata: Metadata = { + metadataBase: new URL('https://zerosixlab.com'), title: { default: "ZeroSixLab - Geleceği Kodlayan Laboratuvar", template: "%s | ZeroSixLab" @@ -90,7 +92,13 @@ export default function RootLayout({ - {children} + + Ana içeriğe atla + +
+ {children} +
+
diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index ae0a076..a6275f5 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -1,24 +1,38 @@ -"use client"; +'use client'; import React from 'react'; import Link from 'next/link'; +// Static positions for floating elements to avoid hydration mismatch +const FLOATING_POSITIONS = [ + { left: '10%', top: '15%', delay: '0s' }, + { left: '25%', top: '45%', delay: '0.3s' }, + { left: '45%', top: '75%', delay: '0.6s' }, + { left: '65%', top: '25%', delay: '0.9s' }, + { left: '80%', top: '55%', delay: '1.2s' }, + { left: '15%', top: '85%', delay: '1.5s' }, + { left: '55%', top: '10%', delay: '1.8s' }, + { left: '90%', top: '35%', delay: '0.2s' }, + { left: '35%', top: '65%', delay: '0.5s' }, + { left: '75%', top: '90%', delay: '0.8s' }, +]; + export default function NotFound() { return ( -
+
{/* Background Grid */}
{/* Floating elements */}
- {[...Array(10)].map((_, i) => ( + {FLOATING_POSITIONS.map((pos, i) => (
))} @@ -58,7 +72,7 @@ export default function NotFound() { terminal
-
$ find /page --name "{typeof window !== 'undefined' ? window.location.pathname : '/unknown'}"
+
$ find /page --name "/unknown"
Error: Page not found
$ suggest --redirect home
Suggestion: Return to homepage
@@ -93,7 +107,6 @@ export default function NotFound() {
STATUS: 404
LOCATION: UNKNOWN
-
TIME: {new Date().toISOString()}
diff --git a/src/app/page.tsx b/src/app/page.tsx index 9392adc..1ca8036 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -17,6 +17,15 @@ import { CookieBanner } from '@/components/CookieBanner'; import { ProjectModal } from '@/components/ProjectModal'; import { NavPage } from '@/types'; +// Social Links +const socialLinks = { + github: "https://github.com/zerosixlab", + discord: "https://discord.gg/zerosixlab", + twitter: "https://twitter.com/zerosixlab", + linkedin: "https://linkedin.com/company/zerosixlab", + instagram: "https://instagram.com/zerosixlab" +}; + // Data const testimonials = [ { @@ -720,7 +729,7 @@ export default function Home() { } /> } />
@@ -783,8 +792,8 @@ export default function Home() {
- MÜŞTERİ YORUMLARI -

Müşterilerimiz Ne Diyor?

+ REFERANSLAR +

İş Ortaklarımız Ne Diyor?

@@ -910,28 +919,84 @@ export default function Home() { {/* Footer */} -