connected backend to service page and detail

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-02-16 15:57:19 +05:00
parent 91fe13f9bf
commit 1d34ea1d47
21 changed files with 820 additions and 158 deletions

View File

@@ -61,7 +61,10 @@ export function Footer() {
const handleSubscribe = (e: React.FormEvent) => {
e.preventDefault();
if (email) {
formRequest.mutate({ number: email });
// Telefon raqamni tozalash (faqat raqamlar)
const cleanPhone = email.replace(/\D/g, "");
console.log("without 998: ",cleanPhone.slice(3))
formRequest.mutate({ number: Number(cleanPhone.slice(3))});
}
};
@@ -239,7 +242,9 @@ export function Footer() {
<div className="border-t border-gray-800 px-4 py-8">
<div className="mx-auto max-w-6xl">
<div className="font-almarai flex flex-col justify-center gap-4 text-lg text-gray-400 md:flex-row md:items-center">
<a href="http://felix-its.uz/" className="hover:text-red-600">{t("footer.create", { name: "Felix-its.uz" })}</a>
<a href="http://felix-its.uz/" className="hover:text-red-600">
{t("footer.create", { name: "Felix-its.uz" })}
</a>
{/* <div className="flex gap-6">
<a href="#terms" className="hover:text-white">
Terms & Conditions

View File

@@ -5,12 +5,10 @@ import { ChevronDown, Phone, Menu, X } from "lucide-react";
import Image from "next/image";
import LanguageSelectRadix from "../languageSwitcher";
import { useLocale, useTranslations } from "next-intl";
import NavbarLogo from "./navbarLogo/navbarLogo";
export function Navbar() {
const locale = useLocale();
const t = useTranslations();
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
const [scrolled, setScrolled] = useState(false);
@@ -42,7 +40,12 @@ export function Navbar() {
<Link href={`/${locale}/home`} className="hover:cursor-pointer">
<div className="flex items-center gap-2">
<div className=" flex items-center justify-center">
<Image src={'/images/IGNUM/PNG/1.@6x.png'} alt="logo image" width={80} height={80} />
<Image
src={"/images/IGNUM/PNG/1.@6x.png"}
alt="logo image"
width={80}
height={80}
/>
</div>
</div>
</Link>
@@ -103,8 +106,8 @@ export function Navbar() {
</span>
<div>
<div className="text-white text-sm font-bold">
<div>+998-55-055-21-21</div>
<div>+998-77-372-21-21</div>
<div>+998-98-099-21-21</div>
</div>
</div>
</div>