upheader complated
This commit is contained in:
@@ -35,7 +35,16 @@ export function Navbar() {
|
|||||||
<nav
|
<nav
|
||||||
className={`fixed top-0 left-0 right-0 z-50 border-b border-gray-400/50 ${scrolled && "bg-black"} transition`}
|
className={`fixed top-0 left-0 right-0 z-50 border-b border-gray-400/50 ${scrolled && "bg-black"} transition`}
|
||||||
>
|
>
|
||||||
{!scrolled && <UpHeader />}
|
<div
|
||||||
|
className={`overflow-hidden transition-all duration-500 ease-in-out ${
|
||||||
|
scrolled
|
||||||
|
? "max-h-0 opacity-0 -translate-y-2"
|
||||||
|
: "max-h-20 opacity-100 translate-y-0"
|
||||||
|
}`}
|
||||||
|
style={{ transform: scrolled ? "translateY(-8px)" : "translateY(0)" }}
|
||||||
|
>
|
||||||
|
<UpHeader />
|
||||||
|
</div>
|
||||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||||
<div className="flex justify-between items-center h-20">
|
<div className="flex justify-between items-center h-20">
|
||||||
{/* Logo */}
|
{/* Logo */}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { Mail, Phone, Send } from "lucide-react";
|
import { Download, Mail, Phone, Send } from "lucide-react";
|
||||||
|
import { useTranslations } from "next-intl";
|
||||||
|
|
||||||
const downloadCatalog = () => {
|
const downloadCatalog = () => {
|
||||||
const link = document.createElement("a");
|
const link = document.createElement("a");
|
||||||
@@ -10,25 +11,39 @@ const downloadCatalog = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default function UpHeader() {
|
export default function UpHeader() {
|
||||||
|
const t = useTranslations();
|
||||||
return (
|
return (
|
||||||
<div className="w-full border-b border-gray-400/50">
|
<div className="w-full border-b border-gray-400/50">
|
||||||
<div className="max-w-7xl mx-auto py-2 px-4 sm:px-6 lg:px-8 flex justify-between items-center">
|
<div className="max-w-7xl mx-auto py-2 px-4 sm:px-6 lg:px-8 flex justify-between items-center">
|
||||||
<div className="flex items-center gap-4">
|
<div className="flex items-center gap-2">
|
||||||
<a>
|
<p className="text-white font-medium">{t("navbar.connect")}:</p>
|
||||||
<Mail />
|
<div className="flex items-center gap-3">
|
||||||
</a>
|
<a
|
||||||
<a>
|
href="mailto:support@fireforce.com"
|
||||||
<Phone />
|
className="p-1 rounded-sm text-white hover:text-white hover:border-red-700 hover:bg-red-700 transition"
|
||||||
</a>
|
>
|
||||||
<a>
|
<Mail size={20} />
|
||||||
<Send />
|
</a>
|
||||||
</a>
|
<a
|
||||||
|
href="tel:+998773722121"
|
||||||
|
className="p-1 rounded-sm text-white hover:text-white hover:border-red-700 hover:bg-red-700 transition"
|
||||||
|
>
|
||||||
|
<Phone size={20} />
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
href="https://t.me/ignum_tech"
|
||||||
|
className="p-1 rounded-sm text-white hover:text-white hover:border-red-700 hover:bg-red-700 transition"
|
||||||
|
>
|
||||||
|
<Send size={20} />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
onClick={downloadCatalog}
|
onClick={downloadCatalog}
|
||||||
className="py-1 px-4 hover:bg-red-700 hover:cursor-pointer hover:border-red-700 text-white font-medium border border-white rounded-md transition"
|
className="py-1 px-4 flex items-center gap-2 hover:bg-red-700 hover:cursor-pointer hover:border-red-700 text-white font-medium border border-white rounded-md transition"
|
||||||
>
|
>
|
||||||
Download Catalog
|
<Download size={18} />
|
||||||
|
{t("navbar.catalog")}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -113,14 +113,6 @@ export function RightSide({
|
|||||||
|
|
||||||
{/* Price Section */}
|
{/* Price Section */}
|
||||||
<div className="bg-[#1716169f] rounded-xl p-5 space-y-6">
|
<div className="bg-[#1716169f] rounded-xl p-5 space-y-6">
|
||||||
{/* Price */}
|
|
||||||
{/* <div>
|
|
||||||
<p className="text-gray-400 text-sm mb-2">{t("products.price")}:</p>
|
|
||||||
<h2 className="text-3xl md:text-4xl font-bold text-red-700">
|
|
||||||
${price}
|
|
||||||
</h2>
|
|
||||||
</div> */}
|
|
||||||
|
|
||||||
{/* Action Button */}
|
{/* Action Button */}
|
||||||
<button
|
<button
|
||||||
onClick={handleGetPrice}
|
onClick={handleGetPrice}
|
||||||
@@ -131,7 +123,7 @@ export function RightSide({
|
|||||||
|
|
||||||
{/* Social Share */}
|
{/* Social Share */}
|
||||||
<div className="pt-4 border-t border-gray-800 flex items-center gap-5">
|
<div className="pt-4 border-t border-gray-800 flex items-center gap-5">
|
||||||
<button
|
<button
|
||||||
onClick={handleShare}
|
onClick={handleShare}
|
||||||
className="flex items-center gap-3 mb-3 text-gray-400 hover:text-white transition-colors group"
|
className="flex items-center gap-3 mb-3 text-gray-400 hover:text-white transition-colors group"
|
||||||
>
|
>
|
||||||
@@ -149,9 +141,6 @@ export function RightSide({
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
{/* <a href="" className="p-2 rounded-md bg-white text-red-500 hover:text-white hover:bg-red-500">
|
|
||||||
<Instagram />
|
|
||||||
</a> */}
|
|
||||||
<a
|
<a
|
||||||
href="https://t.me/ignum_tech"
|
href="https://t.me/ignum_tech"
|
||||||
className="p-2 rounded-md bg-white text-red-500 hover:text-white hover:bg-red-500"
|
className="p-2 rounded-md bg-white text-red-500 hover:text-white hover:bg-red-500"
|
||||||
|
|||||||
@@ -215,7 +215,9 @@
|
|||||||
"faq": "FAQ",
|
"faq": "FAQ",
|
||||||
"products": "PRODUCTS",
|
"products": "PRODUCTS",
|
||||||
"contact": "CONTACT",
|
"contact": "CONTACT",
|
||||||
"emergency": "Emergency Call!"
|
"emergency": "Emergency Call!",
|
||||||
|
"catalog": "Catalog",
|
||||||
|
"connect": "Connect with us"
|
||||||
},
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
"description": "We provide professional services for the installation of fire safety systems and the sale of certified protective equipment.",
|
"description": "We provide professional services for the installation of fire safety systems and the sale of certified protective equipment.",
|
||||||
|
|||||||
@@ -215,7 +215,9 @@
|
|||||||
"faq": "ЧЗВ",
|
"faq": "ЧЗВ",
|
||||||
"products": "ПРОДУКТЫ",
|
"products": "ПРОДУКТЫ",
|
||||||
"contact": "КОНТАКТЫ",
|
"contact": "КОНТАКТЫ",
|
||||||
"emergency": "Экстренный Вызов!"
|
"emergency": "Экстренный Вызов!",
|
||||||
|
"catalog": "Каталог",
|
||||||
|
"connect": "Связаться с Нами"
|
||||||
},
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
"description": "Мы предоставляем профессиональные услуги по установке систем пожарной безопасности и продаже сертифицированных средств защиты.",
|
"description": "Мы предоставляем профессиональные услуги по установке систем пожарной безопасности и продаже сертифицированных средств защиты.",
|
||||||
|
|||||||
@@ -215,7 +215,9 @@
|
|||||||
"faq": "FAQ",
|
"faq": "FAQ",
|
||||||
"products": "MAHSULOTLAR",
|
"products": "MAHSULOTLAR",
|
||||||
"contact": "ALOQA",
|
"contact": "ALOQA",
|
||||||
"emergency": "Favqulodda Qo'ng'iroq!"
|
"emergency": "Favqulodda Qo'ng'iroq!",
|
||||||
|
"catalog": "Katalog",
|
||||||
|
"connect": "Biz bilan bog'laning"
|
||||||
},
|
},
|
||||||
"footer": {
|
"footer": {
|
||||||
"description": "Biz yong‘in xavfsizligi tizimlarini o‘rnatish va sertifikatlangan himoya vositalari savdosi bo‘yicha professional xizmatlar ko‘rsatamiz.",
|
"description": "Biz yong‘in xavfsizligi tizimlarini o‘rnatish va sertifikatlangan himoya vositalari savdosi bo‘yicha professional xizmatlar ko‘rsatamiz.",
|
||||||
|
|||||||
BIN
public/catalog.pdf
Normal file
BIN
public/catalog.pdf
Normal file
Binary file not shown.
Reference in New Issue
Block a user