diff --git a/app/[locale]/about/notePP/page.tsx b/app/[locale]/about/notePP/page.tsx index df095b8..5a872ab 100644 --- a/app/[locale]/about/notePP/page.tsx +++ b/app/[locale]/about/notePP/page.tsx @@ -3,6 +3,7 @@ import Image from "next/image"; import { motion } from "framer-motion"; import { useTranslations } from "next-intl"; +import { Guides } from "@/components/pages/about/aboutDetail/guides"; const ease = [0.22, 1, 0.36, 1] as [number, number, number, number]; @@ -29,75 +30,17 @@ export default function NotePPPage() { ]; return ( - <> -
- {/* Hero Section */} -
- {guides.map((guide, index) => ( -
- {t("about.notePPPage.hero.title")} +
+
+

+ {t("about.notePPPage.title")} +

-
-
- -
- -
- - {guide.eyebrow} - - - - {guide.titleLine1} -
- {guide.titleLine2} -
- - - {guide.description} - - - -
-
- ))} -
-
- + + + ); } diff --git a/components/pages/about/aboutDetail/card.tsx b/components/pages/about/aboutDetail/card.tsx new file mode 100644 index 0000000..db0e0bb --- /dev/null +++ b/components/pages/about/aboutDetail/card.tsx @@ -0,0 +1,49 @@ +"use client"; + +import { Download } from "lucide-react"; + +interface DownloadCardProps { + title: string; + fileType?: string; + fileSize: string; + fileUrl: string; +} + +export default function DownloadCard({ + title, + fileType = "PDF", + fileSize, + fileUrl, +}: DownloadCardProps) { + return ( + + {/* Background glow effect */} +
+ + {/* Decorative corner accent */} +
+ {/* Top section */} +
+

+ {title} +

+ + {fileType} +
+ + {/* Bottom section */} +
+ {fileSize} + + +
+
+ ); +} diff --git a/components/pages/about/aboutDetail/guides.tsx b/components/pages/about/aboutDetail/guides.tsx new file mode 100644 index 0000000..085a646 --- /dev/null +++ b/components/pages/about/aboutDetail/guides.tsx @@ -0,0 +1,40 @@ +import { useTranslations } from "next-intl"; +import DownloadCard from "./card"; + +export function Guides() { + const t = useTranslations(); + const guides = [ + { + fileUrl: "/varnix.pdf", + fileName: t("about.notePPPage.varnix"), + fileType: "PDF", + fileSize: "368.51 KB", + }, + { + fileUrl: "/ppFlanes.pdf", + fileName: t("about.notePPPage.ppFlanes"), + fileType: "PDF", + fileSize: "368.51 KB", + }, + { + fileUrl: "/ppFiting.pdf", + fileName: t("about.notePPPage.ppFiting"), + fileType: "PDF", + fileSize: "368.51 KB", + }, + ]; + + return ( +
+ {guides.map((guide, index) => ( + + ))} +
+ ); +} diff --git a/components/pages/about/aboutDetail/sertificateCard.tsx b/components/pages/about/aboutDetail/sertificateCard.tsx index 7345a7f..ace26bf 100644 --- a/components/pages/about/aboutDetail/sertificateCard.tsx +++ b/components/pages/about/aboutDetail/sertificateCard.tsx @@ -1,12 +1,9 @@ "use client"; -import Image from "next/image"; import { motion } from "framer-motion"; -import Link from "next/link"; -import { Download, ExternalLink, Award, ChevronDown } from "lucide-react"; import { useTranslations } from "next-intl"; -import { useState } from "react"; import { certs } from "@/lib/demoData"; +import { Award } from "lucide-react"; export function CertCard({ c, i }: { c: (typeof certs)[0]; i: number }) { const t = useTranslations(); diff --git a/messages/en.json b/messages/en.json index 692e5c2..2d7dd4c 100644 --- a/messages/en.json +++ b/messages/en.json @@ -174,70 +174,10 @@ } }, "notePPPage": { - "hero": { - "eyebrow": "Technical Documentation", - "titleLine1": "PP Pipes", - "titleLine2": "& Fittings", - "title": "Installation guide for PP pipes and fittings", - "description": "Step-by-step instructions and best practices for properly installing polypropylene pipes and fittings to ensure reliable fire protection systems." - }, - "section": { - "label": "More Information", - "cta": "View Document", - "features": [ - "Use clean, debris-free pipes", - "Ensure proper alignment before welding", - "Apply recommended sealing techniques", - "Test joints for leaks after installation" - ] - }, - "footer": { - "label": "All technical details are for reference only." - } - }, - "noteTrailerPage": { - "hero": { - "eyebrow": "Technical Documentation", - "titleLine1": "Welded", - "titleLine2": "Saddles", - "title": "Installation guide for welded saddles", - "description": "Detailed guidelines for safe placement and welding of saddles used in fire suppression systems, ensuring durable and leak-free connections." - }, - "section": { - "label": "More Information", - "cta": "View Document", - "features": [ - "Select correct saddle size", - "Prepare surface for welding", - "Follow manufacturer’s welding procedure", - "Inspect welds for integrity" - ] - }, - "footer": { - "label": "All technical details are for reference only." - } - }, - "noteFlansPage": { - "hero": { - "eyebrow": "Technical Documentation", - "titleLine1": "Nota", - "titleLine2": "Flanslar", - "title": "Installation guide for PP flanges", - "description": "Comprehensive instructions for mounting polypropylene flanges, emphasizing correct sealing and connection procedures for a robust piping network." - }, - "section": { - "label": "More Information", - "cta": "View Document", - "features": [ - "Check pipe alignment before attaching flange", - "Use proper gasket material", - "Tighten bolts in cross pattern", - "Verify seal integrity after assembly" - ] - }, - "footer": { - "label": "All technical details are for reference only." - } + "title": "Installation Instructions", + "varnix": "Installation instructions for welded saddles 2025", + "ppFlanes": "Installation instructions for PP flanges", + "ppFiting": "Installation instructions for PP pipes and fittings" } }, "contact": { diff --git a/messages/ru.json b/messages/ru.json index 298cfec..01b6ec9 100644 --- a/messages/ru.json +++ b/messages/ru.json @@ -174,70 +174,10 @@ } }, "notePPPage": { - "hero": { - "eyebrow": "Техническая документация", - "titleLine1": "ПП Трубы", - "titleLine2": "и Фитинги", - "title": "Инструкция по монтажу ПП труб и фитингов", - "description": "Пошаговые инструкции и лучшие практики по правильной установке полипропиленовых труб и фитингов для обеспечения надежных систем пожаротушения." - }, - "section": { - "label": "Подробнее", - "cta": "Просмотреть документ", - "features": [ - "Используйте чистые трубы без мусора", - "Обеспечьте правильное выравнивание перед сваркой", - "Применяйте рекомендованные методы уплотнения", - "Проверяйте соединения на утечки после установки" - ] - }, - "footer": { - "label": "Все технические детали приведены для справки." - } - }, - "noteTrailerPage": { - "hero": { - "eyebrow": "Техническая документация", - "titleLine1": "Вварные", - "titleLine2": "Сёдла", - "title": "Инструкция по монтажу вварных сёдел", - "description": "Детальные указания по безопасному размещению и сварке седел, используемых в системах пожаротушения, для обеспечения прочных и герметичных соединений." - }, - "section": { - "label": "Подробнее", - "cta": "Просмотреть документ", - "features": [ - "Выберите правильный размер седла", - "Подготовьте поверхность для сварки", - "Следуйте процедуре сварки производителя", - "Проверяйте целостность швов" - ] - }, - "footer": { - "label": "Все технические детали приведены для справки." - } - }, - "noteFlansPage": { - "hero": { - "eyebrow": "Техническая документация", - "titleLine1": "Nota", - "titleLine2": "Flanslar", - "title": "Инструкция по монтажу фланцев из ПП", - "description": "Комплексные инструкции по установке полипропиленовых фланцев с акцентом на правильное уплотнение и процедуры соединения для надежной трубопроводной сети." - }, - "section": { - "label": "Подробнее", - "cta": "Просмотреть документ", - "features": [ - "Проверьте выравнивание трубы перед установкой фланца", - "Используйте правильный материал прокладки", - "Затягивайте болты крест-накрест", - "Проверьте целостность уплотнения после сборки" - ] - }, - "footer": { - "label": "Все технические детали приведены для справки." - } + "title": "Инструкция по монтажу", + "varnix": "Инструкция по монтажу вварных седел 2025", + "ppFlanes": "Инструкция по монтажу фланцев из ПП", + "ppFiting": "Инструкция по монтажу ПП труб и фитингов" } }, "contact": { diff --git a/messages/uz.json b/messages/uz.json index 0e80778..1ec2f0f 100644 --- a/messages/uz.json +++ b/messages/uz.json @@ -174,70 +174,10 @@ } }, "notePPPage": { - "hero": { - "eyebrow": "Texnik hujjatlar", - "titleLine1": "PP Trubalar", - "titleLine2": "va Fitinglar", - "title": "PP trubalar va fitinglar o‘rnatish bo‘yicha qo‘llanma", - "description": "Ishonchli yong‘in muhofaza tizimlarini ta'minlash uchun polipropilen trubalar va fitinglarni to‘g‘ri o‘rnatish bo‘yicha bosqichma-bosqich ko‘rsatmalar va eng yaxshi amaliyotlar." - }, - "section": { - "label": "Batafsil ma'lumot", - "cta": "Hujjatni ko'rish", - "features": [ - "Toshqin va axloqsiz trubalardan foydalanmang", - "Payvand qilishdan oldin to'g'ri joylashishni ta'minlang", - "Tavsiya etilgan muhrlash usullarini qo'llang", - "O'rnatishdan keyin ulanishlarni oqish uchun tekshiring" - ] - }, - "footer": { - "label": "Barcha texnik tafsilotlar ma'lumot uchun berilgan." - } - }, - "noteTrailerPage": { - "hero": { - "eyebrow": "Texnik hujjatlar", - "titleLine1": "Qo‘shma", - "titleLine2": "Tirkamalar", - "title": "Qo‘shma tirkamalar o‘rnatish bo‘yicha qo‘llanma", - "description": "Yong‘in o‘chirish tizimlarida ishlatiladigan tirkamalarni xavfsiz joylashtirish va payvandlash bo‘yicha batafsil ko‘rsatmalar, mustahkam va oqmas ulanishlarni ta'minlash." - }, - "section": { - "label": "Batafsil ma'lumot", - "cta": "Hujjatni ko'rish", - "features": [ - "To'g'ri tirkama o'lchamini tanlang", - "Suvrutani payvandlash uchun tayyorlang", - "Ishlab chiqaruvchi payvandlash tartibiga rioya qiling", - "Shovotlar yaxlitligini tekshiring" - ] - }, - "footer": { - "label": "Barcha texnik tafsilotlar ma'lumot uchun berilgan." - } - }, - "noteFlansPage": { - "hero": { - "eyebrow": "Texnik hujjatlar", - "titleLine1": "Nota", - "titleLine2": "Flanslar", - "title": "PP flanslar o‘rnatish bo‘yicha qo‘llanma", - "description": "Polipropilen flanslarni o‘rnatish bo‘yicha to‘liq ko‘rsatmalar, ishontirishni to‘g‘ri muhrlash va ulanish protseduralariga e'tibor qaratilgan, mustahkam quvurlar tarmog‘i uchun." - }, - "section": { - "label": "Batafsil ma'lumot", - "cta": "Hujjatni ko'rish", - "features": [ - "Flansni o'rnatishdan oldin quvur tekisligini tekshiring", - "To'g'ri yostiqcha materialidan foydalaning", - "Boltlarni kesma naqshda siqib oling", - "Yig'ishdan keyin muhr qoplamasini tekshiring" - ] - }, - "footer": { - "label": "Barcha texnik tafsilotlar ma'lumot uchun berilgan." - } + "title": "Montaj bo‘yicha ko‘rsatma", + "varnix": "Payvandlanadigan sedelkalarni o‘rnatish bo‘yicha yo‘riqnoma", + "ppFlanes": "PP flaneslarni o‘rnatish bo‘yicha yo‘riqnoma", + "ppFiting": "PP quvurlar va fitinglarni o‘rnatish bo‘yicha yo‘riqnoma" } }, "contact": { diff --git a/public/pp_fiting.pdf b/public/pp_fiting.pdf new file mode 100644 index 0000000..6cd19e2 Binary files /dev/null and b/public/pp_fiting.pdf differ diff --git a/public/pp_flanes.pdf b/public/pp_flanes.pdf new file mode 100644 index 0000000..1daf6a3 Binary files /dev/null and b/public/pp_flanes.pdf differ diff --git a/public/varnix.pdf b/public/varnix.pdf new file mode 100644 index 0000000..962174c Binary files /dev/null and b/public/varnix.pdf differ