diff --git a/parking-domain-landing-clean/.eslintrc.json b/parking-domain-landing-clean/.eslintrc.json new file mode 100644 index 0000000..7f745db --- /dev/null +++ b/parking-domain-landing-clean/.eslintrc.json @@ -0,0 +1,7 @@ +{ + "extends": "next/core-web-vitals", + "rules": { + "react/no-unescaped-entities": "off", + "react-hooks/exhaustive-deps": "off" + } +} \ No newline at end of file diff --git a/parking-domain-landing-clean/.gitignore b/parking-domain-landing-clean/.gitignore new file mode 100644 index 0000000..5ef6a52 --- /dev/null +++ b/parking-domain-landing-clean/.gitignore @@ -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 diff --git a/parking-domain-landing-clean/README.md b/parking-domain-landing-clean/README.md new file mode 100644 index 0000000..d910a0a --- /dev/null +++ b/parking-domain-landing-clean/README.md @@ -0,0 +1,60 @@ +# Domain Parking Landing Page + +A modern, responsive landing page for parking domain names with advertisement spaces. Built with Next.js, TypeScript, and Tailwind CSS. + +## Features + +- 🌐 Dynamic domain name detection +- 💰 Multiple ad placement options +- 📱 Fully responsive design with dark mode support +- 📝 Contact form for domain purchase inquiries +- 🔍 Related domains section +- 🚀 Fast loading and SEO-friendly + +## Tech Stack + +- **Framework**: Next.js 15 +- **Language**: TypeScript +- **Styling**: Tailwind CSS +- **Linting**: ESLint +- **Deployment**: Ready for Vercel, Netlify, or any hosting platform + +## Getting Started + +1. Clone the repository: + ```bash + git clone https://github.com/yourusername/parking-domain-landing.git + cd parking-domain-landing + ``` + +2. Install dependencies: + ```bash + npm install + ``` + +3. Run the development server: + ```bash + npm run dev + ``` + +4. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. + +## Customization + +- **Domain Information**: Edit the `DomainInfo.tsx` component to customize domain details +- **Ad Spaces**: Modify the `AdBanner.tsx` and `AdScript.tsx` components to integrate with your ad provider +- **Related Domains**: Update the domains list in `page.tsx` +- **Contact Form**: Customize the form fields in `ContactForm.tsx` + +## Deployment + +The application is optimized for deployment on platforms like Vercel, Netlify, or any hosting service that supports Next.js applications. + +```bash +npm run build +npm run start +``` + +## License + +MIT \ No newline at end of file diff --git a/parking-domain-landing-clean/eslint.config.mjs b/parking-domain-landing-clean/eslint.config.mjs new file mode 100644 index 0000000..c85fb67 --- /dev/null +++ b/parking-domain-landing-clean/eslint.config.mjs @@ -0,0 +1,16 @@ +import { dirname } from "path"; +import { fileURLToPath } from "url"; +import { FlatCompat } from "@eslint/eslintrc"; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = dirname(__filename); + +const compat = new FlatCompat({ + baseDirectory: __dirname, +}); + +const eslintConfig = [ + ...compat.extends("next/core-web-vitals", "next/typescript"), +]; + +export default eslintConfig; diff --git a/parking-domain-landing-clean/next.config.js b/parking-domain-landing-clean/next.config.js new file mode 100644 index 0000000..3ca40be --- /dev/null +++ b/parking-domain-landing-clean/next.config.js @@ -0,0 +1,27 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + /* config options here */ + async headers() { + return [ + { + source: "/(.*)", + headers: [ + { + key: "Access-Control-Allow-Origin", + value: "*", + }, + { + key: "Access-Control-Allow-Methods", + value: "GET,OPTIONS,PATCH,DELETE,POST,PUT", + }, + { + key: "Access-Control-Allow-Headers", + value: "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version", + }, + ], + }, + ]; + }, +}; + +module.exports = nextConfig; \ No newline at end of file diff --git a/parking-domain-landing-clean/package.json b/parking-domain-landing-clean/package.json new file mode 100644 index 0000000..a4f8f23 --- /dev/null +++ b/parking-domain-landing-clean/package.json @@ -0,0 +1,27 @@ +{ + "name": "parking-domain-landing", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "next dev --turbopack", + "build": "next build", + "start": "next start", + "lint": "next lint" + }, + "dependencies": { + "react": "^19.0.0", + "react-dom": "^19.0.0", + "next": "15.3.1" + }, + "devDependencies": { + "typescript": "^5", + "@types/node": "^20", + "@types/react": "^19", + "@types/react-dom": "^19", + "@tailwindcss/postcss": "^4", + "tailwindcss": "^4", + "eslint": "^9", + "eslint-config-next": "15.3.1", + "@eslint/eslintrc": "^3" + } +} diff --git a/parking-domain-landing-clean/postcss.config.mjs b/parking-domain-landing-clean/postcss.config.mjs new file mode 100644 index 0000000..c7bcb4b --- /dev/null +++ b/parking-domain-landing-clean/postcss.config.mjs @@ -0,0 +1,5 @@ +const config = { + plugins: ["@tailwindcss/postcss"], +}; + +export default config; diff --git a/parking-domain-landing-clean/public/file.svg b/parking-domain-landing-clean/public/file.svg new file mode 100644 index 0000000..004145c --- /dev/null +++ b/parking-domain-landing-clean/public/file.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/parking-domain-landing-clean/public/globe.svg b/parking-domain-landing-clean/public/globe.svg new file mode 100644 index 0000000..567f17b --- /dev/null +++ b/parking-domain-landing-clean/public/globe.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/parking-domain-landing-clean/public/next.svg b/parking-domain-landing-clean/public/next.svg new file mode 100644 index 0000000..5174b28 --- /dev/null +++ b/parking-domain-landing-clean/public/next.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/parking-domain-landing-clean/public/vercel.svg b/parking-domain-landing-clean/public/vercel.svg new file mode 100644 index 0000000..7705396 --- /dev/null +++ b/parking-domain-landing-clean/public/vercel.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/parking-domain-landing-clean/public/window.svg b/parking-domain-landing-clean/public/window.svg new file mode 100644 index 0000000..b2b2a44 --- /dev/null +++ b/parking-domain-landing-clean/public/window.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/parking-domain-landing-clean/src/app/favicon.ico b/parking-domain-landing-clean/src/app/favicon.ico new file mode 100644 index 0000000..718d6fe Binary files /dev/null and b/parking-domain-landing-clean/src/app/favicon.ico differ diff --git a/parking-domain-landing-clean/src/app/globals.css b/parking-domain-landing-clean/src/app/globals.css new file mode 100644 index 0000000..a2dc41e --- /dev/null +++ b/parking-domain-landing-clean/src/app/globals.css @@ -0,0 +1,26 @@ +@import "tailwindcss"; + +:root { + --background: #ffffff; + --foreground: #171717; +} + +@theme inline { + --color-background: var(--background); + --color-foreground: var(--foreground); + --font-sans: var(--font-geist-sans); + --font-mono: var(--font-geist-mono); +} + +@media (prefers-color-scheme: dark) { + :root { + --background: #0a0a0a; + --foreground: #ededed; + } +} + +body { + background: var(--background); + color: var(--foreground); + font-family: Arial, Helvetica, sans-serif; +} diff --git a/parking-domain-landing-clean/src/app/layout.tsx b/parking-domain-landing-clean/src/app/layout.tsx new file mode 100644 index 0000000..09bd0c1 --- /dev/null +++ b/parking-domain-landing-clean/src/app/layout.tsx @@ -0,0 +1,34 @@ +import type { Metadata } from "next"; +import { Geist, Geist_Mono } from "next/font/google"; +import "./globals.css"; + +const geistSans = Geist({ + variable: "--font-geist-sans", + subsets: ["latin"], +}); + +const geistMono = Geist_Mono({ + variable: "--font-geist-mono", + subsets: ["latin"], +}); + +export const metadata: Metadata = { + title: "Domain For Sale | Premium Domain Parking", + description: "This domain is currently parked and available for purchase. Contact the owner for more information.", +}; + +export default function RootLayout({ + children, +}: Readonly<{ + children: React.ReactNode; +}>) { + return ( + + + {children} + + + ); +} diff --git a/parking-domain-landing-clean/src/app/page.tsx b/parking-domain-landing-clean/src/app/page.tsx new file mode 100644 index 0000000..e78c8ca --- /dev/null +++ b/parking-domain-landing-clean/src/app/page.tsx @@ -0,0 +1,78 @@ + +import DomainInfo from '@/components/DomainInfo'; +import AdBanner from '@/components/AdBanner'; +import RelatedDomains from '@/components/RelatedDomains'; + +export default function Home() { + // Use a default domain name + const domainName = 'example.com'; + + return ( +
+ {/* Header */} +
+
+

+ {domainName} +

+
+
+ + {/* Main Content */} +
+ {/* Top Ad Banner */} +
+ +
+ + {/* Domain Information */} + + + {/* Ad Sections */} +
+ + +
+ + {/* Related Domains */} + +
+ + {/* Footer */} + +
+ ); +} \ No newline at end of file diff --git a/parking-domain-landing-clean/src/components/AdBanner.tsx b/parking-domain-landing-clean/src/components/AdBanner.tsx new file mode 100644 index 0000000..7db5a76 --- /dev/null +++ b/parking-domain-landing-clean/src/components/AdBanner.tsx @@ -0,0 +1,51 @@ +'use client'; + +import React from 'react'; +import dynamic from 'next/dynamic'; + +// Dynamically import the AdScript component with no SSR +const AdScript = dynamic(() => import('./AdScript'), { ssr: false }); + +interface AdBannerProps { + size?: 'small' | 'medium' | 'large'; + position?: 'top' | 'sidebar' | 'content'; + title?: string; + adClient?: string; + adSlot?: string; +} + +const AdBanner: React.FC = ({ + size = 'medium', + position = 'content', + title = 'Advertisement', + adClient = 'ca-pub-xxxxxxxxxxxxxxxx', + adSlot = '1234567890' +}) => { + // Define height based on size + const height = { + small: '100px', + medium: '250px', + large: '300px', + }[size]; + + // Define ad format based on position + const adFormat = { + top: 'horizontal', + sidebar: 'vertical', + content: 'rectangle', + }[position] as 'auto' | 'rectangle' | 'horizontal' | 'vertical'; + + return ( +
+
{title}
+ +
+ ); +}; + +export default AdBanner; \ No newline at end of file diff --git a/parking-domain-landing-clean/src/components/AdScript.tsx b/parking-domain-landing-clean/src/components/AdScript.tsx new file mode 100644 index 0000000..0065915 --- /dev/null +++ b/parking-domain-landing-clean/src/components/AdScript.tsx @@ -0,0 +1,60 @@ +'use client'; + +import React, { useEffect, useRef } from 'react'; + +interface AdScriptProps { + adClient?: string; + adSlot?: string; + adFormat?: 'auto' | 'rectangle' | 'horizontal' | 'vertical'; + style?: React.CSSProperties; +} + +const AdScript: React.FC = ({ + adClient = 'ca-pub-xxxxxxxxxxxxxxxx', + adSlot = '1234567890', + adFormat = 'auto', + style = { display: 'block', width: '100%', height: '250px' } +}) => { + const adRef = useRef(null); + + useEffect(() => { + // This is where you would normally load the ad script + // For example, Google AdSense script + const loadAdScript = () => { + try { + // In a real implementation, you would load the ad script here + // For now, we'll just simulate an ad with a placeholder + if (adRef.current) { + adRef.current.innerHTML = ` +
+
+
Advertisement
+
+ Ad Client: ${adClient}
+ Ad Slot: ${adSlot}
+ Format: ${adFormat} +
+
+
+ `; + } + } catch (error) { + console.error('Error loading ad:', error); + } + }; + + loadAdScript(); + + // Cleanup function + return () => { + const currentRef = adRef.current; + if (currentRef) { + currentRef.innerHTML = ''; + } + }; + }, [adClient, adSlot, adFormat]); + + return
; +}; + +export default AdScript; \ No newline at end of file diff --git a/parking-domain-landing-clean/src/components/ContactForm.tsx b/parking-domain-landing-clean/src/components/ContactForm.tsx new file mode 100644 index 0000000..8272bdb --- /dev/null +++ b/parking-domain-landing-clean/src/components/ContactForm.tsx @@ -0,0 +1,162 @@ +'use client'; + +import React, { useState } from 'react'; + +interface ContactFormProps { + domainName: string; +} + +const ContactForm: React.FC = ({ domainName }) => { + const [formData, setFormData] = useState({ + name: '', + email: '', + phone: '', + message: `I am interested in purchasing the domain ${domainName}. Please provide more information.`, + budget: '', + }); + + const [isSubmitting, setIsSubmitting] = useState(false); + const [isSubmitted, setIsSubmitted] = useState(false); + const [error, setError] = useState(''); + + const handleChange = (e: React.ChangeEvent) => { + const { name, value } = e.target; + setFormData(prev => ({ ...prev, [name]: value })); + }; + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + setIsSubmitting(true); + setError(''); + + // Simulate form submission + setTimeout(() => { + setIsSubmitting(false); + setIsSubmitted(true); + // In a real application, you would send the form data to a server here + }, 1500); + }; + + if (isSubmitted) { + return ( +
+

+ Thank You! +

+

+ Your inquiry about {domainName} has been received. We'll get back to you shortly. +

+
+ ); + } + + return ( +
+

+ Interested in {domainName}? +

+

+ Fill out the form below and we'll get back to you with more information. +

+ +
+
+
+ + +
+
+ + +
+
+ +
+
+ + +
+
+ + +
+
+ +
+ + +
+ + {error && ( +
+ {error} +
+ )} + + +
+
+ ); +}; + +export default ContactForm; \ No newline at end of file diff --git a/parking-domain-landing-clean/src/components/DomainInfo.tsx b/parking-domain-landing-clean/src/components/DomainInfo.tsx new file mode 100644 index 0000000..cb01d77 --- /dev/null +++ b/parking-domain-landing-clean/src/components/DomainInfo.tsx @@ -0,0 +1,78 @@ +'use client'; + +import React from 'react'; +import dynamic from 'next/dynamic'; + +// Dynamically import the ContactForm component with no SSR +const ContactForm = dynamic(() => import('./ContactForm'), { ssr: false }); + +interface DomainInfoProps { + domainName: string; +} + +const DomainInfo: React.FC = ({ domainName }) => { + return ( +
+
+

+ This Domain Is For Sale +

+

+ Interested in purchasing {domainName}? +

+
+ +
+
+

Why This Domain?

+
    +
  • + + Memorable and brandable name +
  • +
  • + + Perfect for your business or project +
  • +
  • + + Enhance your online presence +
  • +
  • + + Improve customer trust and credibility +
  • +
+
+ +
+

Contact Information

+

+ Interested in this domain? Get in touch with us today to discuss pricing and transfer details. +

+ +
+
+ + {/* Contact Form */} +
+ +
+
+ ); +}; + +export default DomainInfo; \ No newline at end of file diff --git a/parking-domain-landing-clean/src/components/RelatedDomains.tsx b/parking-domain-landing-clean/src/components/RelatedDomains.tsx new file mode 100644 index 0000000..6994448 --- /dev/null +++ b/parking-domain-landing-clean/src/components/RelatedDomains.tsx @@ -0,0 +1,27 @@ +'use client'; + +import React from 'react'; + +interface RelatedDomainsProps { + domains?: string[]; +} + +const RelatedDomains: React.FC = ({ + domains = ['example-domain.com', 'anotherdomain.net', 'bestdomain.org', 'premiumdomain.co', 'topdomain.io', 'amazingdomain.com'] +}) => { + return ( +
+

Similar Domains You Might Like

+
+ {domains.map((domain, index) => ( +
+

{domain}

+

Also available for purchase

+
+ ))} +
+
+ ); +}; + +export default RelatedDomains; \ No newline at end of file diff --git a/parking-domain-landing-clean/tsconfig.json b/parking-domain-landing-clean/tsconfig.json new file mode 100644 index 0000000..c133409 --- /dev/null +++ b/parking-domain-landing-clean/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "target": "ES2017", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./src/*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] +}