first commit

This commit is contained in:
2026-06-16 13:04:11 +03:00
commit 7ecdb30afc
54 changed files with 15479 additions and 0 deletions
+78
View File
@@ -0,0 +1,78 @@
import { useTranslations } from 'next-intl'
import Link from 'next/link'
import { MapPin, Phone, Mail } from 'lucide-react'
export function Footer() {
const t = useTranslations('nav')
const f = useTranslations('footer')
return (
<footer className="bg-zinc-950 text-zinc-300 pt-16 pb-8 border-t border-zinc-900">
<div className="container mx-auto px-4 grid grid-cols-1 md:grid-cols-4 gap-12 mb-12">
<div className="space-y-4">
<Link href="/" className="flex items-center">
<span className="text-2xl font-black tracking-tighter text-orange-500">FETHIYE</span>
<span className="text-2xl font-bold tracking-tighter text-white">HOLIDAY</span>
</Link>
<p className="text-sm text-zinc-400 leading-relaxed">
{f('description')}
</p>
</div>
<div>
<h4 className="text-white font-bold mb-4 uppercase tracking-wider text-sm">Quick Links</h4>
<ul className="space-y-2 text-sm text-zinc-400">
<li><Link href="/" className="hover:text-orange-500 transition">{t('home')}</Link></li>
<li><Link href="/about" className="hover:text-orange-500 transition">{t('about')}</Link></li>
<li><Link href="/tours" className="hover:text-orange-500 transition">{t('tours')}</Link></li>
<li><Link href="/blog" className="hover:text-orange-500 transition">{t('blog')}</Link></li>
<li><Link href="/contact" className="hover:text-orange-500 transition">{t('contact')}</Link></li>
</ul>
</div>
<div>
<h4 className="text-white font-bold mb-4 uppercase tracking-wider text-sm">Contact</h4>
<ul className="space-y-3 text-sm text-zinc-400">
<li className="flex items-start">
<MapPin className="w-5 h-5 mr-3 text-orange-500 flex-shrink-0" />
<span>{f('contact_info')}</span>
</li>
<li className="flex items-center">
<Phone className="w-5 h-5 mr-3 text-orange-500 flex-shrink-0" />
<span>+90 530 378 48 82</span>
</li>
<li className="flex items-center">
<Mail className="w-5 h-5 mr-3 text-orange-500 flex-shrink-0" />
<span>info@fethiyeholiday.com</span>
</li>
</ul>
</div>
<div>
<h4 className="text-white font-bold mb-4 uppercase tracking-wider text-sm">Follow Us</h4>
<div className="flex space-x-4">
<a href="#" className="w-10 h-10 rounded-full bg-zinc-900 flex items-center justify-center hover:bg-orange-500 hover:text-white transition">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"/></svg>
</a>
<a href="#" className="w-10 h-10 rounded-full bg-zinc-900 flex items-center justify-center hover:bg-orange-500 hover:text-white transition">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><rect width="20" height="20" x="2" y="2" rx="5" ry="5"/><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"/><line x1="17.5" x2="17.51" y1="6.5" y2="6.5"/></svg>
</a>
</div>
<div className="mt-6">
<p className="text-xs text-zinc-500">TURSAB Licence No: 6105</p>
</div>
</div>
</div>
<div className="container mx-auto px-4 pt-8 border-t border-zinc-900 text-center text-xs text-zinc-500 flex flex-col items-center justify-center space-y-2">
<p>{f('rights')}</p>
<div>
Created by{' '}
<a href="https://ayris.tech" target="_blank" rel="noopener noreferrer" className="text-orange-500 hover:text-orange-400 transition font-medium">
ayris.tech
</a>
</div>
</div>
</footer>
)
}
+105
View File
@@ -0,0 +1,105 @@
'use client'
import { useTranslations } from 'next-intl'
import Link from 'next/link'
import { Menu } from 'lucide-react'
import { useState, useEffect } from 'react'
import { motion, AnimatePresence } from 'framer-motion'
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export function Navbar({ locale }: { locale: string }) {
const t = useTranslations('nav')
const [scrolled, setScrolled] = useState(false)
const [mobileOpen, setMobileOpen] = useState(false)
useEffect(() => {
const handler = () => setScrolled(window.scrollY > 50)
window.addEventListener('scroll', handler, { passive: true })
return () => window.removeEventListener('scroll', handler)
}, [])
return (
<>
<motion.nav
initial={{ y: -20, opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
transition={{ duration: 0.6, ease: [0.22, 1, 0.36, 1] }}
className={cn(
'fixed top-0 inset-x-0 z-50 transition-all duration-500',
scrolled ? 'bg-background/80 backdrop-blur-xl border-b border-border/40 shadow-sm'
: 'bg-transparent border-b border-transparent'
)}
>
<div className="container mx-auto px-6 h-20 flex items-center justify-between">
<Link href="/" className="font-heading text-xl md:text-2xl tracking-[0.2em] uppercase flex items-center gap-2">
<span className="font-bold text-foreground">PIONEER</span>
<span className="font-light text-primary">TRAVEL</span>
</Link>
<div className="hidden md:flex items-center space-x-10">
{['home', 'about', 'tours', 'blog', 'contact'].map((item) => (
<Link
key={item}
href={item === 'home' ? '/' : `/${item}`}
className="text-xs font-medium tracking-[0.15em] uppercase text-foreground/80 hover:text-primary transition-colors duration-300 relative group"
>
{t(item)}
<span className="absolute -bottom-2 left-0 w-0 h-[2px] bg-primary transition-all duration-300 group-hover:w-full rounded-full" />
</Link>
))}
</div>
<div className="flex items-center space-x-6">
<div className="hidden md:flex bg-card/50 backdrop-blur-md rounded-full p-1 border border-border/50">
<Link href="/tr" className={cn("px-4 py-1.5 rounded-full text-xs tracking-wider font-bold transition-all duration-300", locale === 'tr' ? 'bg-primary text-primary-foreground shadow-md' : 'text-muted-foreground hover:text-foreground')}>TR</Link>
<Link href="/en" className={cn("px-4 py-1.5 rounded-full text-xs tracking-wider font-bold transition-all duration-300", locale === 'en' ? 'bg-primary text-primary-foreground shadow-md' : 'text-muted-foreground hover:text-foreground')}>EN</Link>
</div>
<button
className="md:hidden text-foreground hover:text-primary transition"
onClick={() => setMobileOpen(true)}
>
<Menu className="w-6 h-6" />
</button>
</div>
</div>
</motion.nav>
<AnimatePresence>
{mobileOpen && (
<motion.div
initial={{ opacity: 0, x: '100%' }}
animate={{ opacity: 1, x: 0 }}
exit={{ opacity: 0, x: '100%' }}
transition={{ duration: 0.4, ease: [0.22, 1, 0.36, 1] }}
className="fixed inset-0 z-[60] bg-background/95 backdrop-blur-2xl flex flex-col justify-center items-center"
>
<button
className="absolute top-6 right-6 text-foreground text-sm tracking-widest uppercase font-bold hover:text-primary"
onClick={() => setMobileOpen(false)}
>
Close
</button>
<div className="flex flex-col space-y-8 text-center">
{['home', 'about', 'tours', 'blog', 'contact'].map((item) => (
<Link
key={item}
href={item === 'home' ? '/' : `/${item}`}
onClick={() => setMobileOpen(false)}
className="font-heading text-3xl font-light text-foreground hover:text-primary hover:scale-105 transition-all"
>
{t(item)}
</Link>
))}
</div>
</motion.div>
)}
</AnimatePresence>
</>
)
}
+62
View File
@@ -0,0 +1,62 @@
'use client';
import React from "react";
import { cn } from "@/components/common/Navbar"; // reuse cn
export interface ShimmerButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement> {
shimmerColor?: string;
shimmerSize?: string;
borderRadius?: string;
shimmerDuration?: string;
background?: string;
className?: string;
children?: React.ReactNode;
}
export const ShimmerButton = React.forwardRef<HTMLButtonElement, ShimmerButtonProps>(
(
{
shimmerColor = "#ffffff",
shimmerSize = "0.05em",
shimmerDuration = "3s",
borderRadius = "100px",
background = "rgba(0, 0, 0, 1)",
className,
children,
...props
},
ref,
) => {
return (
<button
style={
{
"--spread": "90deg",
"--shimmer-color": shimmerColor,
"--radius": borderRadius,
"--speed": shimmerDuration,
"--cut": shimmerSize,
"--bg": background,
} as React.CSSProperties
}
className={cn(
"group relative z-0 flex cursor-pointer items-center justify-center overflow-hidden whitespace-nowrap border border-white/10 px-6 py-3 text-white [background:var(--bg)] [border-radius:var(--radius)] dark:text-black transform-gpu transition-transform duration-300 ease-in-out active:translate-y-px",
className,
)}
ref={ref}
{...props}
>
<div className="absolute inset-0 overflow-visible [container-type:size]">
<div className="absolute inset-0 h-[100cqh] animate-[shimmer_var(--speed)_infinite_linear] bg-[length:200%_100%] bg-[linear-gradient(var(--spread),transparent_0%,var(--shimmer-color)_50%,transparent_100%)] [aspect-ratio:1/1]" />
</div>
<div className="absolute inset-[var(--cut)] bg-[var(--bg)] [border-radius:var(--radius)]" />
<span className="relative z-10 flex w-full items-center justify-center gap-2">
{children}
</span>
</button>
);
},
);
ShimmerButton.displayName = "ShimmerButton";
+58
View File
@@ -0,0 +1,58 @@
import { Button as ButtonPrimitive } from "@base-ui/react/button"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
const buttonVariants = cva(
"group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
{
variants: {
variant: {
default: "bg-primary text-primary-foreground hover:bg-primary/80",
outline:
"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
secondary:
"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
ghost:
"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
destructive:
"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
link: "text-primary underline-offset-4 hover:underline",
},
size: {
default:
"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
icon: "size-8",
"icon-xs":
"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
"icon-sm":
"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg",
"icon-lg": "size-9",
},
},
defaultVariants: {
variant: "default",
size: "default",
},
}
)
function Button({
className,
variant = "default",
size = "default",
...props
}: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>) {
return (
<ButtonPrimitive
data-slot="button"
className={cn(buttonVariants({ variant, size, className }))}
{...props}
/>
)
}
export { Button, buttonVariants }
+103
View File
@@ -0,0 +1,103 @@
import * as React from "react"
import { cn } from "@/lib/utils"
function Card({
className,
size = "default",
...props
}: React.ComponentProps<"div"> & { size?: "default" | "sm" }) {
return (
<div
data-slot="card"
data-size={size}
className={cn(
"group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
className
)}
{...props}
/>
)
}
function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card-header"
className={cn(
"group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",
className
)}
{...props}
/>
)
}
function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card-title"
className={cn(
"font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",
className
)}
{...props}
/>
)
}
function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card-description"
className={cn("text-sm text-muted-foreground", className)}
{...props}
/>
)
}
function CardAction({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card-action"
className={cn(
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
className
)}
{...props}
/>
)
}
function CardContent({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card-content"
className={cn("px-(--card-spacing)", className)}
{...props}
/>
)
}
function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card-footer"
className={cn(
"flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",
className
)}
{...props}
/>
)
}
export {
Card,
CardHeader,
CardFooter,
CardTitle,
CardAction,
CardDescription,
CardContent,
}
+20
View File
@@ -0,0 +1,20 @@
import * as React from "react"
import { Input as InputPrimitive } from "@base-ui/react/input"
import { cn } from "@/lib/utils"
function Input({ className, type, ...props }: React.ComponentProps<"input">) {
return (
<InputPrimitive
type={type}
data-slot="input"
className={cn(
"h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
className
)}
{...props}
/>
)
}
export { Input }