first commit
41
.gitignore
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||
|
||||
# dependencies
|
||||
/node_modules
|
||||
/.pnp
|
||||
.pnp.*
|
||||
.yarn/*
|
||||
!.yarn/patches
|
||||
!.yarn/plugins
|
||||
!.yarn/releases
|
||||
!.yarn/versions
|
||||
|
||||
# testing
|
||||
/coverage
|
||||
|
||||
# next.js
|
||||
/.next/
|
||||
/out/
|
||||
|
||||
# production
|
||||
/build
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
*.pem
|
||||
|
||||
# debug
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
.pnpm-debug.log*
|
||||
|
||||
# env files (can opt-in for committing if needed)
|
||||
.env*
|
||||
|
||||
# vercel
|
||||
.vercel
|
||||
|
||||
# typescript
|
||||
*.tsbuildinfo
|
||||
next-env.d.ts
|
||||
36
README.md
Normal file
@ -0,0 +1,36 @@
|
||||
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
|
||||
|
||||
## Getting Started
|
||||
|
||||
First, run the development server:
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
# or
|
||||
yarn dev
|
||||
# or
|
||||
pnpm dev
|
||||
# or
|
||||
bun dev
|
||||
```
|
||||
|
||||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
||||
|
||||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
||||
|
||||
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
|
||||
|
||||
## Learn More
|
||||
|
||||
To learn more about Next.js, take a look at the following resources:
|
||||
|
||||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
||||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
||||
|
||||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
|
||||
|
||||
## Deploy on Vercel
|
||||
|
||||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
||||
|
||||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
|
||||
39
deploy.bat
Normal file
@ -0,0 +1,39 @@
|
||||
@echo off
|
||||
echo ========================================
|
||||
echo Antalya Restaurant - Deploy Script
|
||||
echo ========================================
|
||||
echo.
|
||||
|
||||
echo Step 1: Building site...
|
||||
call npm run build
|
||||
|
||||
if %ERRORLEVEL% NEQ 0 (
|
||||
echo Build failed! Please fix errors and try again.
|
||||
pause
|
||||
exit /b %ERRORLEVEL%
|
||||
)
|
||||
|
||||
echo.
|
||||
echo ========================================
|
||||
echo Build successful!
|
||||
echo ========================================
|
||||
echo.
|
||||
|
||||
echo IMPORTANT: Upload ALL contents from the 'out' folder to your server.
|
||||
echo.
|
||||
echo Make sure to upload:
|
||||
echo - All HTML files and folders
|
||||
echo - The .htaccess file (Apache servers)
|
||||
echo - The web.config file (IIS servers)
|
||||
echo - All _next folder contents
|
||||
echo - All images folder
|
||||
echo.
|
||||
echo Server upload location: public_html or www folder
|
||||
echo.
|
||||
echo After upload, test these URLs:
|
||||
echo https://antalya.metatronnest.com/
|
||||
echo https://antalya.metatronnest.com/about-antalya-restaurant/
|
||||
echo https://antalya.metatronnest.com/antalya-turkish-food-blog/
|
||||
echo.
|
||||
|
||||
pause
|
||||
18
eslint.config.mjs
Normal file
@ -0,0 +1,18 @@
|
||||
import { defineConfig, globalIgnores } from "eslint/config";
|
||||
import nextVitals from "eslint-config-next/core-web-vitals";
|
||||
import nextTs from "eslint-config-next/typescript";
|
||||
|
||||
const eslintConfig = defineConfig([
|
||||
...nextVitals,
|
||||
...nextTs,
|
||||
// Override default ignores of eslint-config-next.
|
||||
globalIgnores([
|
||||
// Default ignores of eslint-config-next:
|
||||
".next/**",
|
||||
"out/**",
|
||||
"build/**",
|
||||
"next-env.d.ts",
|
||||
]),
|
||||
]);
|
||||
|
||||
export default eslintConfig;
|
||||
11
next.config.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: 'export',
|
||||
trailingSlash: true,
|
||||
images: {
|
||||
unoptimized: true,
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
10234
package-lock.json
generated
Normal file
40
package.json
Normal file
@ -0,0 +1,40 @@
|
||||
{
|
||||
"name": "antalya-kitchener",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build && node scripts/copy-server-config.cjs",
|
||||
"start": "next start",
|
||||
"lint": "eslint",
|
||||
"sitemap": "node scripts/generate-sitemap.cjs",
|
||||
"optimize-images": "node scripts/optimize-images.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^1.13.2",
|
||||
"framer-motion": "^12.23.24",
|
||||
"next": "16.0.3",
|
||||
"react": "19.2.0",
|
||||
"react-dom": "19.2.0",
|
||||
"react-google-recaptcha": "^3.1.0",
|
||||
"react-icons": "^5.5.0",
|
||||
"sitemap": "^9.0.0",
|
||||
"swiper": "^12.0.3",
|
||||
"xml2js": "^0.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20",
|
||||
"@types/react": "^19",
|
||||
"@types/react-dom": "^19",
|
||||
"@types/react-google-recaptcha": "^2.1.9",
|
||||
"eslint": "^9",
|
||||
"eslint-config-next": "16.0.3",
|
||||
"imagemin": "^9.0.1",
|
||||
"imagemin-avif": "^0.1.6",
|
||||
"imagemin-mozjpeg": "^10.0.0",
|
||||
"imagemin-optipng": "^8.0.0",
|
||||
"imagemin-webp": "^8.0.0",
|
||||
"selenium-webdriver": "^4.38.0",
|
||||
"typescript": "^5"
|
||||
}
|
||||
}
|
||||
54
public/.htaccess
Normal file
@ -0,0 +1,54 @@
|
||||
# Antalya Restaurant - Apache Configuration
|
||||
# FIXED - Handles Next.js static export with trailing slashes 100%
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
|
||||
# Prevent directory listing and disable MultiViews (Critical for Next.js)
|
||||
Options -Indexes
|
||||
Options +FollowSymLinks
|
||||
Options -MultiViews
|
||||
|
||||
# Force trailing slash for directory-like URLs (helps with DirectoryIndex)
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
|
||||
RewriteRule (.*)$ /$1/ [R=301,L]
|
||||
|
||||
# Handle Next.js App Router RSC payload files
|
||||
# (Removed RSC rewrites as we are disabling prefetch instead)
|
||||
|
||||
|
||||
# 1. Custom 404 handling
|
||||
ErrorDocument 404 /404.html
|
||||
|
||||
# 2. Standard directory handling (Optional explicitly, usually default)
|
||||
DirectoryIndex index.html
|
||||
</IfModule>
|
||||
|
||||
# Security Headers
|
||||
<IfModule mod_headers.c>
|
||||
Header set X-Content-Type-Options "nosniff"
|
||||
Header set X-Frame-Options "DENY"
|
||||
Header set X-XSS-Protection "1; mode=block"
|
||||
Header set Referrer-Policy "strict-origin-when-cross-origin"
|
||||
</IfModule>
|
||||
|
||||
# Cache Control
|
||||
<IfModule mod_expires.c>
|
||||
ExpiresActive On
|
||||
ExpiresDefault "access plus 1 month"
|
||||
ExpiresByType text/html "access plus 0 seconds"
|
||||
ExpiresByType text/xml "access plus 0 seconds"
|
||||
ExpiresByType application/xml "access plus 0 seconds"
|
||||
ExpiresByType application/json "access plus 0 seconds"
|
||||
ExpiresByType image/jpg "access plus 1 year"
|
||||
ExpiresByType image/jpeg "access plus 1 year"
|
||||
ExpiresByType image/gif "access plus 1 year"
|
||||
ExpiresByType image/png "access plus 1 year"
|
||||
ExpiresByType image/webp "access plus 1 year"
|
||||
ExpiresByType image/svg+xml "access plus 1 year"
|
||||
ExpiresByType image/x-icon "access plus 1 year"
|
||||
ExpiresByType application/javascript "access plus 1 year"
|
||||
ExpiresByType text/css "access plus 1 year"
|
||||
</IfModule>
|
||||
1
public/file.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg fill="none" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 13.5V5.41a1 1 0 0 0-.3-.7L9.8.29A1 1 0 0 0 9.08 0H1.5v13.5A2.5 2.5 0 0 0 4 16h8a2.5 2.5 0 0 0 2.5-2.5m-1.5 0v-7H8v-5H3v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1M9.5 5V2.12L12.38 5zM5.13 5h-.62v1.25h2.12V5zm-.62 3h7.12v1.25H4.5zm.62 3h-.62v1.25h7.12V11z" clip-rule="evenodd" fill="#666" fill-rule="evenodd"/></svg>
|
||||
|
After Width: | Height: | Size: 391 B |
1
public/globe.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.27 14.1a6.5 6.5 0 0 0 3.67-3.45q-1.24.21-2.7.34-.31 1.83-.97 3.1M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.48-1.52a7 7 0 0 1-.96 0H7.5a4 4 0 0 1-.84-1.32q-.38-.89-.63-2.08a40 40 0 0 0 3.92 0q-.25 1.2-.63 2.08a4 4 0 0 1-.84 1.31zm2.94-4.76q1.66-.15 2.95-.43a7 7 0 0 0 0-2.58q-1.3-.27-2.95-.43a18 18 0 0 1 0 3.44m-1.27-3.54a17 17 0 0 1 0 3.64 39 39 0 0 1-4.3 0 17 17 0 0 1 0-3.64 39 39 0 0 1 4.3 0m1.1-1.17q1.45.13 2.69.34a6.5 6.5 0 0 0-3.67-3.44q.65 1.26.98 3.1M8.48 1.5l.01.02q.41.37.84 1.31.38.89.63 2.08a40 40 0 0 0-3.92 0q.25-1.2.63-2.08a4 4 0 0 1 .85-1.32 7 7 0 0 1 .96 0m-2.75.4a6.5 6.5 0 0 0-3.67 3.44 29 29 0 0 1 2.7-.34q.31-1.83.97-3.1M4.58 6.28q-1.66.16-2.95.43a7 7 0 0 0 0 2.58q1.3.27 2.95.43a18 18 0 0 1 0-3.44m.17 4.71q-1.45-.12-2.69-.34a6.5 6.5 0 0 0 3.67 3.44q-.65-1.27-.98-3.1" fill="#666"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
BIN
public/images-optimized/about-testimonial-bg.jpg
Normal file
|
After Width: | Height: | Size: 95 KiB |
BIN
public/images-optimized/about-testimonial-bg.webp
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
public/images-optimized/antalya-logo.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images-optimized/antalya-logo.webp
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
public/images-optimized/avatar-anya.png
Normal file
|
After Width: | Height: | Size: 122 KiB |
BIN
public/images-optimized/avatar-anya.webp
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
public/images-optimized/avatar-emily.png
Normal file
|
After Width: | Height: | Size: 148 KiB |
BIN
public/images-optimized/avatar-emily.webp
Normal file
|
After Width: | Height: | Size: 69 KiB |
BIN
public/images-optimized/avatar-michael.png
Normal file
|
After Width: | Height: | Size: 131 KiB |
BIN
public/images-optimized/avatar-michael.webp
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
public/images-optimized/avatar-sarah.png
Normal file
|
After Width: | Height: | Size: 107 KiB |
BIN
public/images-optimized/avatar-sarah.webp
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
public/images-optimized/avatar-tariq.png
Normal file
|
After Width: | Height: | Size: 138 KiB |
BIN
public/images-optimized/avatar-tariq.webp
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
public/images-optimized/avatar-tuest.png
Normal file
|
After Width: | Height: | Size: 163 KiB |
BIN
public/images-optimized/avatar-tuest.webp
Normal file
|
After Width: | Height: | Size: 77 KiB |
BIN
public/images-optimized/avif/about-testimonial-bg.jpg
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
public/images-optimized/avif/antalya-logo.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
public/images-optimized/avif/avatar-anya.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/images-optimized/avif/avatar-emily.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
public/images-optimized/avif/avatar-michael.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
public/images-optimized/avif/avatar-sarah.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
public/images-optimized/avif/avatar-tariq.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
public/images-optimized/avif/avatar-tuest.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
public/images-optimized/avif/catering-categories.png
Normal file
|
After Width: | Height: | Size: 9.4 KiB |
BIN
public/images-optimized/avif/catering-delivery.png
Normal file
|
After Width: | Height: | Size: 8.5 KiB |
BIN
public/images-optimized/avif/catering-orbital.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
public/images-optimized/avif/cloche-icon.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
public/images-optimized/avif/dinner.png
Normal file
|
After Width: | Height: | Size: 671 B |
BIN
public/images-optimized/avif/dish.png
Normal file
|
After Width: | Height: | Size: 895 B |
BIN
public/images-optimized/avif/eat.png
Normal file
|
After Width: | Height: | Size: 782 B |
BIN
public/images-optimized/avif/email.png
Normal file
|
After Width: | Height: | Size: 663 B |
BIN
public/images-optimized/avif/footer-bg.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
public/images-optimized/avif/footer.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
public/images-optimized/avif/fork-icon.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/images-optimized/avif/header-logo.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
public/images-optimized/avif/logo-header.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
public/images-optimized/avif/marble-bg.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
public/images-optimized/avif/phone-call.png
Normal file
|
After Width: | Height: | Size: 708 B |
BIN
public/images-optimized/avif/section-bg.jpg
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
public/images-optimized/catering-categories.png
Normal file
|
After Width: | Height: | Size: 207 KiB |
BIN
public/images-optimized/catering-categories.webp
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
public/images-optimized/catering-delivery.png
Normal file
|
After Width: | Height: | Size: 150 KiB |
BIN
public/images-optimized/catering-delivery.webp
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
public/images-optimized/catering-orbital.png
Normal file
|
After Width: | Height: | Size: 265 KiB |
BIN
public/images-optimized/catering-orbital.webp
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/images-optimized/cloche-icon.png
Normal file
|
After Width: | Height: | Size: 147 KiB |
BIN
public/images-optimized/cloche-icon.webp
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
public/images-optimized/dinner.png
Normal file
|
After Width: | Height: | Size: 467 B |
BIN
public/images-optimized/dinner.webp
Normal file
|
After Width: | Height: | Size: 320 B |
BIN
public/images-optimized/dish.png
Normal file
|
After Width: | Height: | Size: 893 B |
BIN
public/images-optimized/dish.webp
Normal file
|
After Width: | Height: | Size: 568 B |
BIN
public/images-optimized/eat.png
Normal file
|
After Width: | Height: | Size: 785 B |
BIN
public/images-optimized/eat.webp
Normal file
|
After Width: | Height: | Size: 464 B |
BIN
public/images-optimized/email.png
Normal file
|
After Width: | Height: | Size: 409 B |
BIN
public/images-optimized/email.webp
Normal file
|
After Width: | Height: | Size: 290 B |
BIN
public/images-optimized/footer-bg.png
Normal file
|
After Width: | Height: | Size: 319 KiB |
BIN
public/images-optimized/footer-bg.webp
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
public/images-optimized/footer.png
Normal file
|
After Width: | Height: | Size: 717 KiB |
BIN
public/images-optimized/footer.webp
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
public/images-optimized/fork-icon.png
Normal file
|
After Width: | Height: | Size: 128 KiB |
BIN
public/images-optimized/fork-icon.webp
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
public/images-optimized/header-logo.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images-optimized/header-logo.webp
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
public/images-optimized/logo-header.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images-optimized/logo-header.webp
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
public/images-optimized/marble-bg.png
Normal file
|
After Width: | Height: | Size: 153 KiB |
BIN
public/images-optimized/marble-bg.webp
Normal file
|
After Width: | Height: | Size: 67 KiB |
BIN
public/images-optimized/phone-call.png
Normal file
|
After Width: | Height: | Size: 577 B |
BIN
public/images-optimized/phone-call.webp
Normal file
|
After Width: | Height: | Size: 374 B |
BIN
public/images-optimized/section-bg.jpg
Normal file
|
After Width: | Height: | Size: 95 KiB |
BIN
public/images-optimized/section-bg.webp
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
public/images-optimized/webp/about-testimonial-bg.webp
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
public/images-optimized/webp/antalya-logo.webp
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
public/images-optimized/webp/avatar-anya.webp
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
public/images-optimized/webp/avatar-emily.webp
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
public/images-optimized/webp/avatar-michael.webp
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
public/images-optimized/webp/avatar-sarah.webp
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
public/images-optimized/webp/avatar-tariq.webp
Normal file
|
After Width: | Height: | Size: 69 KiB |
BIN
public/images-optimized/webp/avatar-tuest.webp
Normal file
|
After Width: | Height: | Size: 86 KiB |
BIN
public/images-optimized/webp/catering-categories.webp
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
public/images-optimized/webp/catering-delivery.webp
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
public/images-optimized/webp/catering-orbital.webp
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
public/images-optimized/webp/cloche-icon.webp
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
public/images-optimized/webp/dinner.webp
Normal file
|
After Width: | Height: | Size: 320 B |
BIN
public/images-optimized/webp/dish.webp
Normal file
|
After Width: | Height: | Size: 568 B |
BIN
public/images-optimized/webp/eat.webp
Normal file
|
After Width: | Height: | Size: 464 B |
BIN
public/images-optimized/webp/email.webp
Normal file
|
After Width: | Height: | Size: 290 B |
BIN
public/images-optimized/webp/footer-bg.webp
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
public/images-optimized/webp/footer.webp
Normal file
|
After Width: | Height: | Size: 9.0 KiB |