diff --git a/docs/tasks/24-2.md b/docs/tasks/24-2.md index 867bc10..8c862ce 100644 --- a/docs/tasks/24-2.md +++ b/docs/tasks/24-2.md @@ -1,7 +1,7 @@ --- id: 24-2 title: 24-2 Navigation and Footer -status: Ready for Dev +status: QA Review date: 2026-10-31 parent: 24 --- diff --git a/docs/tasks/manual-tests/24-2.md b/docs/tasks/manual-tests/24-2.md new file mode 100644 index 0000000..d00a9c3 --- /dev/null +++ b/docs/tasks/manual-tests/24-2.md @@ -0,0 +1,14 @@ +# Manual tests — 24-2 Navigation and Footer + +Automated (passed 2026-10-31, `tests/Feature/Design/PublicNavFooterTest.php`, 7 tests): sticky header markup, five links, +aria-current on /about and /posts, language pill target, Dashboard/logout for client and admin, footer four columns with +phone/email/legal links and no "Unsplash", all 18 site.* keys in ar and en, `language-toggle`, `navigation.php`, `footer.php` +untouched, `x-navigation` used only by the public layout. UI loop (libra.test `/`, 390 and 1440): no horizontal scroll. + +- [ ] `/` at 1440px: nav 72px high, sticks while scrolling, brand + five links + EN pill + Client login + gold Book button; bottom border appears after scrolling a little. +- [ ] Hover a link: dashed gold underline slides in. Fail: no underline. +- [ ] At 1000px and 390px: links hidden, menu button opens a cream sheet with five links, login and Book; Escape closes it; no sideways scroll. +- [ ] Log in as a client: nav shows Dashboard and a working Log out; as admin, Dashboard opens `/admin/dashboard`. +- [ ] Click the EN / ع pill: language switches and the pill flips. +- [ ] Footer at 1440px: four columns, forest background, gold hairline on top, © year; at 390px one column. +- [ ] Known to check by eye: the Book button points to `/#book` and Services to `/#services`; those anchors exist only after 24-4/24-5. diff --git a/docs/tasks/statuses.md b/docs/tasks/statuses.md index 7d0fa82..2509a00 100644 --- a/docs/tasks/statuses.md +++ b/docs/tasks/statuses.md @@ -138,7 +138,7 @@ | 23 | 23 Fix AdminNotificationService Carbon TypeError Masking Exceptions | Done | | 24 | 24 Public-Site Redesign (PRD 1.4) | Ready for Dev | | 24-1 | 24-1 Public Design Foundation (Stylesheet, Script, Fonts, Layout) | QA Review | -| 24-2 | 24-2 Navigation and Footer | Ready for Dev | +| 24-2 | 24-2 Navigation and Footer | QA Review | | 24-3 | 24-3 Signature Balance Component | Ready for Dev | | 24-4 | 24-4 Home Page Sections (Hero to Latest Articles) | Ready for Dev | | 24-5 | 24-5 Home Booking Card (Compact Booking and Day Strip) | Ready for Dev | diff --git a/lang/ar/site.php b/lang/ar/site.php index ec7f463..0c6fcc3 100644 --- a/lang/ar/site.php +++ b/lang/ar/site.php @@ -2,4 +2,22 @@ return [ 'progress_label' => 'تقدّم القراءة', + 'brand_name' => 'ليبرا', + 'brand_sub' => 'للحقوق', + 'brand_label' => 'ليبرا للحقوق', + 'nav_main' => 'القائمة الرئيسية', + 'nav_home' => 'الرئيسية', + 'nav_about' => 'من نحن', + 'nav_services' => 'الخدمات', + 'nav_articles' => 'المقالات', + 'nav_booking' => 'الحجز', + 'nav_login' => 'دخول العملاء', + 'nav_book' => 'احجز استشارة', + 'nav_menu' => 'القائمة', + 'lang_switch' => 'English', + 'footer_explore' => 'تصفّح', + 'footer_clients' => 'العملاء', + 'footer_contact' => 'تواصل', + 'footer_terms' => 'شروط الاستخدام', + 'footer_privacy' => 'سياسة الخصوصية', ]; diff --git a/lang/en/site.php b/lang/en/site.php index ee7a2e8..b9b2d33 100644 --- a/lang/en/site.php +++ b/lang/en/site.php @@ -2,4 +2,22 @@ return [ 'progress_label' => 'Reading progress', + 'brand_name' => 'Libra', + 'brand_sub' => 'FOR RIGHTS', + 'brand_label' => 'Libra for Rights', + 'nav_main' => 'Main', + 'nav_home' => 'Home', + 'nav_about' => 'About', + 'nav_services' => 'Services', + 'nav_articles' => 'Articles', + 'nav_booking' => 'Booking', + 'nav_login' => 'Client login', + 'nav_book' => 'Book a consultation', + 'nav_menu' => 'Menu', + 'lang_switch' => 'العربية', + 'footer_explore' => 'Explore', + 'footer_clients' => 'Clients', + 'footer_contact' => 'Contact', + 'footer_terms' => 'Terms of use', + 'footer_privacy' => 'Privacy policy', ]; diff --git a/resources/css/public.css b/resources/css/public.css index d86e5e3..0793c39 100644 --- a/resources/css/public.css +++ b/resources/css/public.css @@ -66,6 +66,62 @@ body.site .sec-head h2{font-size:clamp(2rem,3.4vw,3rem);margin-top:12px} body.site .sec-head p{max-width:30em;color:var(--muted);margin:0} +/* ---------- Navigation (24-2) ---------- */ +body.site .nav{position:sticky;top:0;z-index:50;background:rgba(244,241,234,.82);backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2); + border-bottom:1px solid transparent;transition:border-color .3s, box-shadow .3s} +body.site .nav.scrolled{border-color:var(--line);box-shadow:0 8px 24px -18px rgba(30,34,25,.5)} +body.site .nav .wrap{display:flex;align-items:center;gap:28px;height:72px} +body.site .brand{display:flex;align-items:center;gap:12px;text-decoration:none} +body.site .seal{width:46px;height:46px;border:2px solid #1A1A1A;box-shadow:3px 3px 5px rgba(26,26,26,.35);background:#fff center/cover no-repeat;flex:none} +body.site .brand b{font-family:var(--display);font-size:1.35rem;line-height:1;display:block} +body.site .brand small{display:block;font-size:.72rem;color:var(--muted)} +html[lang=en] body.site .brand small{letter-spacing:.12em} +body.site .links{display:flex;gap:4px;margin-inline-start:auto} +body.site .links a{position:relative;padding:10px 14px;text-decoration:none;font-weight:500;font-size:.95rem;border-radius:8px;transition:color .2s} +body.site .links a::after{content:"";position:absolute;inset-inline:14px;bottom:4px;height:2px;background: + repeating-linear-gradient(90deg,var(--gold) 0 4px,transparent 4px 7px);transform:scaleX(0);transform-origin:var(--o,right);transition:transform .35s var(--ease)} +html[dir=ltr] body.site .links a::after{--o:left} +body.site .links a:hover{color:var(--olive)} +body.site .links a:hover::after,body.site .links a[aria-current]::after{transform:scaleX(1)} +body.site .nav-tools{display:flex;align-items:center;gap:10px} +body.site .lang{min-width:48px;min-height:44px;border-radius:999px;border:1.5px solid var(--line);background:#fff;font:600 .85rem var(--body);cursor:pointer;transition:border-color .2s, transform .2s} +body.site .lang:hover{border-color:var(--gold);transform:translateY(-1px)} +body.site .login{font-size:.92rem;font-weight:500;text-decoration:none;padding:10px 12px;min-height:44px;display:inline-flex;align-items:center} +body.site .login:hover{color:var(--olive)} +body.site .nav .btn{min-height:44px;padding:10px 20px;font-size:.92rem} +body.site .menu-btn{display:none;width:44px;height:44px;border-radius:10px;border:1.5px solid var(--line);background:#fff;cursor:pointer} +body.site .nav .seal{background-color:#fff} +body.site .lang{display:inline-grid;place-items:center;text-decoration:none;color:var(--ink);padding:0 12px} +body.site .nav button.login{background:none;border:0;cursor:pointer;font-family:var(--body);color:inherit} +body.site .menu-sheet{position:absolute;inset-inline:0;top:100%;background:var(--cream);border-bottom:1px solid var(--line);box-shadow:var(--shadow-2);padding:6px 18px 18px} +body.site .menu-sheet a:not(.btn),body.site .menu-sheet button{display:flex;align-items:center;width:100%;min-height:48px;padding:0 4px;border:0;border-bottom:1px solid var(--line);background:none;font:500 1rem var(--body);color:var(--ink);text-decoration:none;text-align:start;cursor:pointer} +body.site .menu-sheet a[aria-current]{color:var(--olive)} +body.site .menu-sheet .btn{width:100%;justify-content:center;margin-top:14px} +@media (min-width:1101px){body.site .menu-sheet{display:none!important}} + +/* ---------- Footer (24-2) ---------- */ +body.site .site-footer{background:var(--forest-2);color:var(--gold-lt);margin-top:120px;padding:72px 0 28px;font-size:.92rem;position:relative} +body.site .foot-band{position:absolute;top:0;left:0;width:100%;height:1px;background:linear-gradient(90deg,transparent,rgba(196,168,130,.7),transparent)} +body.site .foot{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px} +body.site .foot h4{color:var(--cream);font-family:var(--display);font-size:1.15rem;margin:0 0 14px} +body.site .foot a{text-decoration:none;display:block;padding:10px 0;transition:color .2s, transform .2s} +body.site .foot a:hover{color:var(--cream);transform:translateX(-3px)} +html[dir=ltr] body.site .foot a:hover{transform:translateX(3px)} +body.site .foot .brand b{color:var(--cream)} +body.site .foot .brand small{color:var(--gold-lt)} +body.site .foot p{margin:16px 0 0;max-width:26em} +body.site .site-footer .legal{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid rgba(244,241,234,.1);margin-top:48px;padding-top:22px;font-size:.8rem;color:rgba(196,168,130,.75)} +body.site .foot span{display:block;padding:10px 0} +@media (max-width:1100px){ + body.site .links{display:none} + body.site .menu-btn{display:grid;place-items:center;margin-inline-start:auto} + body.site .foot{grid-template-columns:1fr 1fr} +} +@media (max-width:760px){ + body.site .nav-tools .btn,body.site .nav-tools .login{display:none} + body.site .foot{grid-template-columns:1fr} +} + /* ---------- Reveal (hidden only when JavaScript runs) ---------- */ body.site.js [data-reveal]{opacity:0;transform:translateY(28px);transition:opacity .9s var(--ease),transform .9s var(--ease)} body.site.js [data-reveal].in{opacity:1;transform:none} diff --git a/resources/views/components/footer.blade.php b/resources/views/components/footer.blade.php index 99d769a..7be74a1 100644 --- a/resources/views/components/footer.blade.php +++ b/resources/views/components/footer.blade.php @@ -1,68 +1,43 @@ -