Refactor code structure for improved readability and maintainability; removed redundant code blocks and optimized function calls.
CI/CD / test-and-build (push) Waiting to run
CI/CD / deploy (push) Blocked by required conditions

This commit is contained in:
Najjar\NajjarV02
2026-05-20 18:03:42 +04:00
parent bfe589be27
commit 729ab71c2c
65 changed files with 217 additions and 216 deletions
@@ -12,7 +12,7 @@
* appStore: "https://apps.apple.com/ae/app/.../id...",
* };
*
* next/image blocks raw SVG by default in Next 16 — keep plain <img>.
* next/image blocks raw SVG by default in Next 16 keep plain <img>.
*/
import { app } from "@/lib/content";
@@ -1,7 +1,7 @@
"use client";
/**
* 4-image certificate gallery — each tile links to a PDF in a new tab.
* 4-image certificate gallery each tile links to a PDF in a new tab.
*
* Expected data shape:
* export type CertPage = {
@@ -65,7 +65,7 @@ function CertCard({ src, alt, title, page, document, href }: CertPage) {
href={href}
target="_blank"
rel="noopener noreferrer"
aria-label={`${title} — ${page}. Opens PDF in a new tab.`}
aria-label={`${title} ${page}. Opens PDF in a new tab.`}
className="group relative isolate flex h-full flex-col overflow-hidden rounded-2xl border border-bone/10 bg-graphite/40 backdrop-blur-sm transition-all duration-500 hover:-translate-y-1 hover:border-gold/35 hover:bg-graphite/60 focus:outline-none focus-visible:border-gold/60 focus-visible:ring-2 focus-visible:ring-gold/40"
>
<div className="relative aspect-[3/4] w-full overflow-hidden bg-obsidian">
@@ -59,7 +59,7 @@ export function Footer({ navigationLinks, serviceItems, legalLinks, logo }: Prop
<footer className="relative overflow-hidden border-t border-bone/10 bg-obsidian pb-8 pt-11 md:pb-10 md:pt-14 lg:pb-12 lg:pt-[72px]">
<div className="relative z-10 mx-auto max-w-[1480px] px-6 md:px-10">
<div className="grid gap-10 lg:grid-cols-12 lg:gap-12">
{/* Col 1 — Brand + contact */}
{/* Col 1 Brand + contact */}
<div className="space-y-5 lg:col-span-4">
<a href="/" className="inline-flex items-center gap-4">
{logo}
@@ -152,7 +152,7 @@ export function Footer({ navigationLinks, serviceItems, legalLinks, logo }: Prop
</div>
</div>
{/* Watermark — contained inside footer */}
{/* Watermark contained inside footer */}
<div
aria-hidden
className="pointer-events-none absolute inset-x-0 bottom-0 z-0 flex select-none justify-center overflow-hidden"
@@ -8,7 +8,7 @@ type Props = {
eyebrow?: string;
index?: string;
title: ReactNode;
/** The gold-accent phrase rendered inside the title — pass as JSX or separate prop. */
/** The gold-accent phrase rendered inside the title pass as JSX or separate prop. */
accent?: ReactNode;
subtitle?: ReactNode;
align?: "left" | "center";