This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-01-22 16:29:34 +05:00
commit ff10553786
123 changed files with 11006 additions and 0 deletions

View File

@@ -0,0 +1,215 @@
"use client";
import React from "react";
import { useState } from "react";
import { Mail, Phone, MapPin } from "lucide-react";
export function Footer() {
const [email, setEmail] = useState("");
const [subscribed, setSubscribed] = useState(false);
const handleSubscribe = (e: React.FormEvent) => {
e.preventDefault();
if (email) {
setSubscribed(true);
setEmail("");
setTimeout(() => setSubscribed(false), 3000);
}
};
return (
<footer
className="relative bg-linear-to-tr from-[#452811] via-black to-black text-white lg:pt-20 sm:pt-28 pt-50"
style={{
backgroundImage:
"linear-gradient(to top right, #452811 0%, #000000 20%, #000000 40%, #000000 60%, #000000 80%, #000000 100%)",
}}
>
{/* Newsletter Section */}
<div className=" absolute w-full -top-40 px-4 py-12 md:py-16">
<div className="mx-auto max-w-6xl">
<div className="rounded-2xl bg-[#fa1d1d] px-6 py-8 md:flex lg:flex-row flex-col max-lg:gap-5 md:items-center lg:justify-between justify-center md:px-10 md:py-12">
<div className="mb-8 md:mb-0">
<h2 className="text-2xl font-bold text-white md:text-3xl">
SUBSCRIBE OUR NEWSLETTER
</h2>
<p className="mt-2 text-gray-100">
Expect a friendly letter from us once a week. No spam.
</p>
</div>
<form
onSubmit={handleSubscribe}
className="flex sm:flex-row flex-col w-full gap-2 md:w-auto"
>
<input
type="email"
placeholder="Enter your email address"
value={email}
onChange={(e) => setEmail(e.target.value)}
className="flex-1 rounded-full bg-white px-6 py-3 text-gray-800 placeholder-gray-400 focus:outline-none md:w-64"
required
/>
<button
type="submit"
className="rounded-full bg-gray-800 px-6 py-3 font-bold text-white transition hover:bg-gray-700"
>
{subscribed ? "✓ Sent" : "SIGN UP"}
</button>
</form>
</div>
</div>
</div>
{/* Main Footer Content */}
<div className="px-4 py-16 md:py-24">
<div className="mx-auto max-w-6xl">
<div className="grid gap-12 md:grid-cols-4">
{/* Brand Section */}
<div>
<div className="mb-4 flex items-center gap-2">
<div className="flex h-8 w-8 items-center justify-center rounded-full bg-[#fa1d1d]">
<span className="text-lg font-bold text-white"></span>
</div>
<span className="text-xl font-bold text-white">FIREFORCE</span>
</div>
<p className="text-sm leading-relaxed text-gray-300">
They are seen as a beacon of hope, a figure who brings calm
amidst chaos and light in the darkest of moments.
</p>
</div>
{/* Quick Links */}
<div>
<h3 className="mb-6 text-lg font-bold text-white">QUICK LINK</h3>
<ul className="space-y-3 text-gray-300">
<li>
<a href="#home" className="transition hover:text-[#fa1d1d]">
Home
</a>
</li>
<li>
<a href="#about" className="transition hover:text-[#fa1d1d]">
About
</a>
</li>
<li>
<a
href="#services"
className="transition hover:text-[#fa1d1d]"
>
Services
</a>
</li>
<li>
<a
href="#pricing"
className="transition hover:text-[#fa1d1d]"
>
Pricing
</a>
</li>
<li>
<a href="#blog" className="transition hover:text-[#fa1d1d]">
Blog
</a>
</li>
</ul>
</div>
{/* Support */}
<div>
<h3 className="mb-6 text-lg font-bold text-white">SUPPORT</h3>
<ul className="space-y-3 text-gray-300">
<li>
<a href="#help" className="transition hover:text-[#fa1d1d]">
Help Center
</a>
</li>
<li>
<a
href="#disclaimer"
className="transition hover:text-[#fa1d1d]"
>
Disclaimer
</a>
</li>
<li>
<a href="#faq" className="transition hover:text-[#fa1d1d]">
FAQ
</a>
</li>
<li>
<a
href="#support"
className="transition hover:text-[#fa1d1d]"
>
Support
</a>
</li>
<li>
<a
href="#contact"
className="transition hover:text-[#fa1d1d]"
>
Contact
</a>
</li>
</ul>
</div>
{/* Contact */}
<div>
<h3 className="mb-6 text-lg font-bold text-white">CONTACT</h3>
<ul className="space-y-4 text-gray-300">
<li className="flex items-start gap-3">
<Phone className="mt-1 h-5 w-5 shrink-0 text-white" />
<a href="tel:+1234567890" className="hover:text-[#fa1d1d]">
+123-456-7890
</a>
</li>
<li className="flex items-start gap-3">
<Mail className="mt-1 h-5 w-5 shrink-0 text-white" />
<a
href="mailto:support@fireforce.com"
className="hover:text-[#fa1d1d]"
>
support@fireforce.com
</a>
</li>
<li className="flex items-start gap-3">
<MapPin className="mt-1 h-5 w-5 shrink-0 text-white" />
<span>Jl. Dr. Ir Soekarno No. 99x Tabanan - Bali</span>
</li>
</ul>
</div>
</div>
</div>
</div>
{/* Copyright Section */}
<div className="border-t border-gray-800 px-4 py-8">
<div className="mx-auto max-w-6xl">
<div className="flex flex-col justify-between gap-4 text-sm text-gray-400 md:flex-row md:items-center">
<div>
Copyright © 2025 Fireforce. Built with
<span className="text-white">
{" "}
Guniverse WordPress Blocks Addons
</span>
</div>
<div className="flex gap-6">
<a href="#terms" className="hover:text-white">
Terms & Conditions
</a>
<a href="#privacy" className="hover:text-white">
Privacy Policy
</a>
</div>
</div>
</div>
</div>
</footer>
);
}

View File

@@ -0,0 +1,2 @@
export { Navbar } from "./navbar";
export { Footer } from "./footer";

View File

@@ -0,0 +1,199 @@
'use client';
import { useEffect, useState } from 'react';
import Link from 'next/link';
import { ChevronDown, Phone, Menu, X } from 'lucide-react';
export function Navbar() {
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
const [scrolled, setScrolled] = useState(false);
useEffect(() => {
const handleScroll = () => {
setScrolled(window.scrollY > 50);
};
window.addEventListener("scroll", handleScroll);
return () => window.removeEventListener("scroll", handleScroll);
}, []);
// Prevent body scroll when mobile menu is open
useEffect(() => {
if (isMobileMenuOpen) {
document.body.style.overflow = 'hidden';
} else {
document.body.style.overflow = 'unset';
}
}, [isMobileMenuOpen]);
return (
<>
<nav className={`fixed top-0 left-0 right-0 z-50 border-b border-gray-400/50 ${scrolled && 'bg-black'} transition`}>
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex justify-between items-center h-20">
{/* Logo */}
<div className="flex items-center gap-2">
<div className="w-8 h-8 bg-red-600 rounded-full flex items-center justify-center">
<div className="w-6 h-6 bg-white rounded-full"></div>
</div>
<span className="text-white font-bold text-lg tracking-wider">FIREFORCE</span>
</div>
{/* Desktop Navigation Menu */}
<div className="hidden lg:flex items-center gap-8">
<Link href="/" className="text-white text-sm font-semibold hover:text-red-500 transition">
HOME
</Link>
<Link href="/about" className="text-white text-sm font-semibold hover:text-red-500 transition">
ABOUT
</Link>
{/* Pages Dropdown */}
<div className="relative">
<button
onClick={() => setIsDropdownOpen(!isDropdownOpen)}
className="text-white text-sm font-semibold hover:text-red-500 transition flex items-center gap-1"
>
PAGES
<ChevronDown size={16} />
</button>
{isDropdownOpen && (
<div className="absolute top-full left-0 mt-2 w-40 bg-white rounded-md shadow-lg font-semibold">
<Link
href="/faq"
className="block px-4 py-2 text-black text-sm hover:bg-red-600 hover:text-white rounded-t-md"
>
FAQ
</Link>
<Link
href="/services"
className="block px-4 py-2 text-black text-sm hover:bg-red-600 hover:text-white rounded-b-md"
>
Services
</Link>
</div>
)}
</div>
<Link href="/blog" className="text-white text-sm font-semibold hover:text-red-500 transition">
BLOG
</Link>
<Link href="/contact" className="text-white text-sm font-semibold hover:text-red-500 transition">
CONTACT
</Link>
</div>
{/* Emergency Call Button - Hidden on mobile */}
<div className="hidden lg:flex items-center gap-3 bg-red-600 px-4 py-2 rounded-full">
<Phone size={20} className="text-white" />
<div>
<div className="text-white text-xs font-semibold">Emergency Call!</div>
<div className="text-white text-sm font-bold">+123-456-7890</div>
</div>
</div>
{/* Mobile Menu Button */}
<button
onClick={() => setIsMobileMenuOpen(true)}
className="lg:hidden text-white p-2 hover:bg-red-600 rounded-md transition"
>
<Menu size={24} />
</button>
</div>
</div>
</nav>
{/* Mobile Menu Overlay */}
<div
className={`fixed inset-0 bg-black/50 z-50 transition-opacity duration-300 lg:hidden ${
isMobileMenuOpen ? 'opacity-100 pointer-events-auto' : 'opacity-0 pointer-events-none'
}`}
onClick={() => setIsMobileMenuOpen(false)}
/>
{/* Mobile Menu Sidebar */}
<div
className={`fixed top-0 left-0 bottom-0 w-80 bg-black z-50 transform transition-transform duration-300 ease-in-out lg:hidden ${
isMobileMenuOpen ? 'translate-x-0' : '-translate-x-full'
}`}
>
{/* Mobile Menu Header */}
<div className="flex justify-between items-center p-6 border-b border-gray-700">
<div className="flex items-center gap-2">
<div className="w-8 h-8 bg-red-600 rounded-full flex items-center justify-center">
<div className="w-6 h-6 bg-white rounded-full"></div>
</div>
<span className="text-white font-bold text-lg tracking-wider">FIREFORCE</span>
</div>
<button
onClick={() => setIsMobileMenuOpen(false)}
className="text-white p-2 hover:bg-red-600 rounded-md transition"
>
<X size={24} />
</button>
</div>
{/* Mobile Menu Links */}
<div className="flex flex-col p-6 gap-4">
<Link
href="/"
className="text-white text-base font-semibold hover:text-red-500 transition py-2"
onClick={() => setIsMobileMenuOpen(false)}
>
HOME
</Link>
<Link
href="/about"
className="text-white text-base font-semibold hover:text-red-500 transition py-2"
onClick={() => setIsMobileMenuOpen(false)}
>
ABOUT
</Link>
{/* Mobile Pages Dropdown */}
<div>
<button
onClick={() => setIsDropdownOpen(!isDropdownOpen)}
className="text-white text-base font-semibold hover:text-red-500 transition flex items-center gap-1 py-2 w-full"
>
PAGES
<ChevronDown size={16} className={`transition-transform ${isDropdownOpen ? 'rotate-180' : ''}`} />
</button>
{isDropdownOpen && (
<div className="ml-4 mt-2 flex flex-col gap-2">
<Link
href="/faq"
className="text-white/80 text-sm hover:text-red-500 transition py-2"
onClick={() => setIsMobileMenuOpen(false)}
>
FAQ
</Link>
<Link
href="/services"
className="text-white/80 text-sm hover:text-red-500 transition py-2"
onClick={() => setIsMobileMenuOpen(false)}
>
Services
</Link>
</div>
)}
</div>
<Link
href="/blog"
className="text-white text-base font-semibold hover:text-red-500 transition py-2"
onClick={() => setIsMobileMenuOpen(false)}
>
BLOG
</Link>
<Link
href="/contact"
className="text-white text-base font-semibold hover:text-red-500 transition py-2"
onClick={() => setIsMobileMenuOpen(false)}
>
CONTACT
</Link>
</div>
</div>
</>
);
}