canina/frontend/application/components/MaintenancePage.tsx
2026-08-17 09:26:05 +03:30

73 lines
3.6 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use client";
import React from "react";
import { Wrench, Phone, ShieldCheck, Clock } from "lucide-react";
import { useSettingsStore } from "../lib/store/settingsStore";
import BrandLogo from "./BrandLogo";
export default function MaintenancePage() {
const getText = useSettingsStore((state) => state.getText);
const title = getText("maintenance_title", "سامانه در حال به‌روزرسانی و ارتقای فنی است");
const desc = getText(
"maintenance_desc",
"وب‌سایت رسمی کنینا ایران جهت ارتقای زیرساخت‌ها و بهبود عملکرد به صورت موقت در دست به‌روزرسانی است. از شکیبایی شما سپاسگزاریم."
);
const badge = getText("maintenance_badge", "سامانه در حال به‌روزرسانی و ارتقا");
const eta = getText("maintenance_eta", "زمان تقریبی بازگشایی: کمتر از ۲ ساعت آینده");
const phone = getText("contact_phone", getText("maintenance_contact_phone", "۰۲۱-۸۸۸۸۴۴۴۴"));
const phoneLink = getText("contact_phone_link", getText("maintenance_contact_phone_link", `tel:${phone.replace(/[^0-9+]/g, "") || "02188884444"}`));
return (
<div className="min-h-screen bg-medical-gray-900 text-white flex flex-col items-center justify-center p-6 text-center font-vazir relative overflow-hidden" dir="rtl">
{/* Glow Effects */}
<div className="absolute top-1/4 left-1/2 -translate-x-1/2 -translate-y-1/2 w-96 h-96 bg-canina-blue/20 rounded-full blur-3xl pointer-events-none" />
<div className="absolute bottom-10 right-10 w-80 h-80 bg-canina-gold/10 rounded-full blur-3xl pointer-events-none" />
<div className="relative z-10 max-w-xl mx-auto space-y-6">
{/* Brand Logo */}
<div className="flex justify-center mb-2">
<BrandLogo isDarkBackground size="lg" href="" />
</div>
<div className="w-20 h-20 bg-white/10 border border-white/20 rounded-3xl mx-auto flex items-center justify-center text-canina-gold shadow-2xl backdrop-blur-md">
<Wrench className="w-10 h-10 animate-bounce" />
</div>
<span className="inline-block px-4 py-1.5 bg-canina-gold/20 text-canina-gold border border-canina-gold/30 rounded-full text-xs font-black tracking-widest uppercase">
{badge}
</span>
<h1 className="text-2xl sm:text-4xl font-black tracking-tight leading-tight">
{title}
</h1>
<p className="text-sm sm:text-base text-medical-gray-300 leading-relaxed">
{desc}
</p>
{eta && (
<div className="inline-flex items-center gap-2 px-4 py-2 bg-white/5 border border-white/10 rounded-xl text-xs text-medical-gray-300 font-bold">
<Clock className="w-4 h-4 text-canina-gold" />
<span>{eta}</span>
</div>
)}
<div className="pt-2 flex flex-col sm:flex-row items-center justify-center gap-4">
<a
href={phoneLink}
className="w-full sm:w-auto px-6 py-3.5 bg-canina-blue hover:bg-canina-dark text-white font-black text-xs rounded-xl flex items-center justify-center gap-2 shadow-lg transition-all"
>
<Phone className="w-4 h-4" />
<span>پشتیبانی اضطراری: {phone}</span>
</a>
</div>
</div>
<div className="absolute bottom-6 text-xs text-medical-gray-500 font-bold flex items-center gap-2">
<ShieldCheck className="w-4 h-4 text-canina-gold" />
<span>CANINA PHARMA GMBH GERMANY نماینده رسمی ایران</span>
</div>
</div>
);
}