24-4: home page sections — implemented, QA Review
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
@props(['post'])
|
||||
|
||||
<a class="post" href="{{ route('posts.show', $post) }}" wire:navigate data-reveal>
|
||||
<div class="bd">
|
||||
<span class="meta" dir="auto">{{ $post->published_at?->translatedFormat('j F Y') }}</span>
|
||||
<h3>{{ $post->getTitle() }}</h3>
|
||||
<p>{{ \Illuminate\Support\Str::limit(strip_tags($post->getBody()), 140) }}</p>
|
||||
<span class="more">{{ __('home.read_more') }}</span>
|
||||
</div>
|
||||
</a>
|
||||
@@ -0,0 +1,13 @@
|
||||
@props(['label', 'title', 'lede' => null])
|
||||
|
||||
<div class="sec-head">
|
||||
<div>
|
||||
<span class="art-no" data-reveal>{{ $label }}</span>
|
||||
<h2 data-reveal data-d="1">{{ $title }}</h2>
|
||||
</div>
|
||||
@if ($lede)
|
||||
<p data-reveal data-d="2">{{ $lede }}</p>
|
||||
@else
|
||||
{{ $slot }}
|
||||
@endif
|
||||
</div>
|
||||
@@ -18,222 +18,157 @@ new #[Layout('components.layouts.public')] class extends Component
|
||||
}; ?>
|
||||
|
||||
<div>
|
||||
<div class="wrap py-8">
|
||||
{{-- Hero Section --}}
|
||||
<section class="bg-background py-8 sm:py-12 lg:py-16">
|
||||
<div class="container mx-auto px-4 text-center">
|
||||
{{-- Tagline --}}
|
||||
<h1 class="text-[1.75rem] sm:text-[2rem] lg:text-[2.5rem] font-bold text-text mb-2">
|
||||
{{ __('home.tagline') }}
|
||||
</h1>
|
||||
|
||||
{{-- Introductory Text --}}
|
||||
<p class="text-text text-base sm:text-lg max-w-[800px] mx-auto mb-6">
|
||||
{{ __('home.intro') }}
|
||||
</p>
|
||||
|
||||
{{-- CTA Buttons --}}
|
||||
<div class="flex flex-col sm:flex-row gap-4 justify-center">
|
||||
<a href="{{ route('booking') }}" class="btn-primary">
|
||||
{{ __('home.cta_book') }}
|
||||
</a>
|
||||
<a href="#services" class="btn-secondary">
|
||||
{{ __('home.cta_services') }}
|
||||
</a>
|
||||
{{-- Hero --}}
|
||||
<section class="hero" id="top">
|
||||
<div class="wrap">
|
||||
<div>
|
||||
<span class="eyebrow" data-reveal>{{ __('site.hero_eyebrow') }}</span>
|
||||
<h1 data-reveal data-d="1">{{ __('site.hero_title_a') }}<em>{{ __('site.hero_title_em') }}</em>{{ __('site.hero_title_b') }}</h1>
|
||||
<p class="lede" data-reveal data-d="2">{{ __('home.intro') }}</p>
|
||||
<div class="cta-row" data-reveal data-d="3">
|
||||
<a class="btn btn-gold" href="#book"><span>{{ __('home.cta_book') }}</span>
|
||||
<svg class="arr" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 12H5M11 6l-6 6 6 6"/></svg></a>
|
||||
<a class="btn btn-ghost" href="#services"><span>{{ __('home.cta_services') }}</span></a>
|
||||
</div>
|
||||
<div class="trust" data-reveal data-d="4">
|
||||
@foreach ([1, 2, 3] as $n)
|
||||
<div><strong>{{ __('site.trust_'.$n.'_title') }}</strong><span>{{ __('site.trust_'.$n.'_text') }}</span></div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
<div class="hero-art" data-reveal data-d="2">
|
||||
<figure class="frame" style="margin:0">
|
||||
<img src="{{ asset('images/site/olive-tree.jpg') }}" alt="{{ __('site.alt_olive_tree') }}" width="800" height="1200">
|
||||
<span class="glow"></span>
|
||||
<x-site.balance mode="hero" :label="__('site.balance_label')" id="scales" />
|
||||
<figcaption>{{ __('site.frame_caption') }}</figcaption>
|
||||
</figure>
|
||||
<div class="tag"><span class="dot"></span><span>{{ __('site.frame_tag') }}</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{-- About Section --}}
|
||||
<section id="about" class="py-16 lg:py-20 bg-card">
|
||||
<div class="container mx-auto px-4">
|
||||
<h2 class="text-2xl lg:text-3xl font-semibold text-text text-center mb-12">
|
||||
{{ __('home.about_title') }}
|
||||
</h2>
|
||||
|
||||
<div class="flex flex-col lg:flex-row items-center gap-8 lg:gap-12 max-w-5xl mx-auto">
|
||||
{{-- Photo --}}
|
||||
<div class="flex-shrink-0">
|
||||
<img
|
||||
src="{{ asset('images/huda-armouche.jpg') }}"
|
||||
alt="{{ __('home.lawyer_name') }}"
|
||||
class="w-48 h-48 lg:w-64 lg:h-64 rounded-full object-cover shadow-lg"
|
||||
>
|
||||
{{-- Pillars band --}}
|
||||
<section class="band on-dark" aria-label="{{ __('site.pillars_label') }}">
|
||||
<div class="wrap pillars">
|
||||
@foreach (['justice', 'dignity', 'advocacy'] as $i => $pillar)
|
||||
<div class="pillar" data-reveal @if ($i) data-d="{{ $i }}" @endif>
|
||||
<div class="k"><span class="gem"></span><span>{{ __('site.pillar_'.$pillar) }}</span></div>
|
||||
<p>{{ __('site.pillar_'.$pillar.'_text') }}</p>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{-- Bio --}}
|
||||
<div class="text-center lg:text-start">
|
||||
<h3 class="text-xl lg:text-2xl font-bold text-text mb-1">
|
||||
{{ __('home.lawyer_name') }}
|
||||
</h3>
|
||||
<p class="text-cta font-medium mb-4">
|
||||
{{ __('home.lawyer_title') }}
|
||||
</p>
|
||||
<p class="text-body leading-relaxed">
|
||||
{{ __('home.lawyer_bio') }}
|
||||
</p>
|
||||
<p class="text-body leading-relaxed mt-4">
|
||||
{{ __('home.lawyer_bio_2') }}
|
||||
</p>
|
||||
</div>
|
||||
{{-- Founder --}}
|
||||
<section class="sec" id="founder">
|
||||
<div class="wrap founder">
|
||||
<div class="portrait" data-reveal>
|
||||
<img src="{{ asset('images/huda-armouche.jpg') }}" alt="{{ __('home.lawyer_name') }}">
|
||||
<div class="namecard"><b>{{ __('home.lawyer_name') }}</b><span>{{ __('site.founder_role') }}</span></div>
|
||||
</div>
|
||||
<div>
|
||||
<span class="art-no" data-reveal>{{ __('site.art_founder') }}</span>
|
||||
<h2 style="font-size:clamp(2rem,3.4vw,3rem);margin-top:10px" data-reveal data-d="1">{{ __('home.about_title') }}</h2>
|
||||
<blockquote data-reveal data-d="2">{{ __('site.founder_quote') }}</blockquote>
|
||||
<p data-reveal data-d="3">{{ __('home.lawyer_bio') }}</p>
|
||||
<p data-reveal data-d="4">{{ __('home.lawyer_bio_2') }}</p>
|
||||
<div class="sign" data-reveal data-d="5"><a class="btn btn-ghost" href="{{ route('about') }}" wire:navigate><span>{{ __('site.founder_cta') }}</span></a></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{-- Services Section --}}
|
||||
<section id="services" class="py-16 lg:py-20 bg-background">
|
||||
<div class="container mx-auto px-4">
|
||||
<div class="text-center mb-12">
|
||||
<h2 class="text-2xl lg:text-3xl font-semibold text-text mb-4">
|
||||
{{ __('home.services_title') }}
|
||||
</h2>
|
||||
<p class="text-body max-w-2xl mx-auto">
|
||||
{{ __('home.services_subtitle') }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
|
||||
{{-- Legal Consultations & Representation --}}
|
||||
<div class="bg-card p-6 rounded-lg shadow-card text-center">
|
||||
<div class="text-cta mb-4">
|
||||
<flux:icon name="scale" class="w-12 h-12 mx-auto" />
|
||||
</div>
|
||||
<h3 class="text-lg font-bold text-text mb-4">
|
||||
{{ __('home.service_consultation_title') }}
|
||||
</h3>
|
||||
<ul class="text-sm text-body space-y-2 text-start">
|
||||
@foreach(__('home.service_consultation_items') as $item)
|
||||
<li class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 bg-cta rounded-full flex-shrink-0"></span>
|
||||
{{ $item }}
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{{-- Women's & Family Law --}}
|
||||
<div class="bg-card p-6 rounded-lg shadow-card text-center">
|
||||
<div class="text-cta mb-4">
|
||||
<flux:icon name="heart" class="w-12 h-12 mx-auto" />
|
||||
</div>
|
||||
<h3 class="text-lg font-bold text-text mb-4">
|
||||
{{ __('home.service_family_title') }}
|
||||
</h3>
|
||||
<ul class="text-sm text-body space-y-2 text-start">
|
||||
@foreach(__('home.service_family_items') as $item)
|
||||
<li class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 bg-cta rounded-full flex-shrink-0"></span>
|
||||
{{ $item }}
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{{-- Civil & Commercial Disputes --}}
|
||||
<div class="bg-card p-6 rounded-lg shadow-card text-center">
|
||||
<div class="text-cta mb-4">
|
||||
<flux:icon name="building-office" class="w-12 h-12 mx-auto" />
|
||||
</div>
|
||||
<h3 class="text-lg font-bold text-text mb-4">
|
||||
{{ __('home.service_civil_title') }}
|
||||
</h3>
|
||||
<ul class="text-sm text-body space-y-2 text-start">
|
||||
@foreach(__('home.service_civil_items') as $item)
|
||||
<li class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 bg-cta rounded-full flex-shrink-0"></span>
|
||||
{{ $item }}
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{{-- Business Legal Services --}}
|
||||
<div class="bg-card p-6 rounded-lg shadow-card text-center">
|
||||
<div class="text-cta mb-4">
|
||||
<flux:icon name="briefcase" class="w-12 h-12 mx-auto" />
|
||||
</div>
|
||||
<h3 class="text-lg font-bold text-text mb-4">
|
||||
{{ __('home.service_business_title') }}
|
||||
</h3>
|
||||
<ul class="text-sm text-body space-y-2 text-start">
|
||||
@foreach(__('home.service_business_items') as $item)
|
||||
<li class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 bg-cta rounded-full flex-shrink-0"></span>
|
||||
{{ $item }}
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{-- Values Section --}}
|
||||
<section id="values" class="py-16 lg:py-20 bg-card">
|
||||
<div class="container mx-auto px-4">
|
||||
<div class="text-center mb-12">
|
||||
<h2 class="text-2xl lg:text-3xl font-semibold text-text mb-4">
|
||||
{{ __('home.values_title') }}
|
||||
</h2>
|
||||
<p class="text-body max-w-2xl mx-auto">
|
||||
{{ __('home.values_subtitle') }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-6">
|
||||
@foreach(['integrity', 'justice', 'knowledge', 'empowerment', 'professionalism', 'innovation'] as $value)
|
||||
<div class="text-center group">
|
||||
<div class="w-16 h-16 lg:w-20 lg:h-20 rounded-full bg-cta/10 flex items-center justify-center mx-auto mb-3 transition-colors group-hover:bg-cta/20">
|
||||
<flux:icon name="{{ __('home.values.' . $value . '.icon') }}" class="w-8 h-8 lg:w-10 lg:h-10 text-cta" />
|
||||
{{-- Services docket --}}
|
||||
<section class="sec" id="services" style="padding-top:40px">
|
||||
<div class="wrap">
|
||||
<x-site.section-head :label="__('site.art_services')" :title="__('home.services_subtitle')" :lede="__('site.services_lede')" />
|
||||
<div class="docket">
|
||||
@foreach (['consultation', 'family', 'civil', 'business'] as $i => $service)
|
||||
<a class="row" href="#book" data-reveal @if ($i) data-d="{{ $i }}" @endif>
|
||||
<span class="n">{{ sprintf('%02d', $i + 1) }}</span>
|
||||
<h3>{{ __('home.service_'.$service.'_title') }}</h3>
|
||||
<div class="chips">
|
||||
@foreach (__('home.service_'.$service.'_items') as $item)
|
||||
<span class="chip">{{ $item }}</span>
|
||||
@endforeach
|
||||
</div>
|
||||
<h3 class="text-sm lg:text-base font-bold text-text">
|
||||
{{ __('home.values.' . $value . '.title') }}
|
||||
</h3>
|
||||
<span class="go"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M19 12H5M11 6l-6 6 6 6"/></svg></span>
|
||||
</a>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{-- Vision --}}
|
||||
<section class="sec fabric" id="mission">
|
||||
<div class="wrap">
|
||||
<div class="fabric-grid">
|
||||
<div data-reveal>
|
||||
<span class="art-no">{{ __('site.art_vision') }}</span>
|
||||
<h2>{{ __('site.vision_title') }}</h2>
|
||||
<p class="big">{{ __('site.vision_text') }}</p>
|
||||
</div>
|
||||
<div class="hoop" data-reveal data-d="2"><img src="{{ asset('images/site/embroidery-hoop.jpg') }}" alt="{{ __('site.alt_hoop') }}" width="773" height="1000"></div>
|
||||
</div>
|
||||
<div class="three">
|
||||
<article class="card" data-reveal>
|
||||
<div class="ph motif-ph"><x-site.balance mode="static" :size="150" /><span class="lbl">{{ __('site.card_institution_label') }}</span></div>
|
||||
<div class="bd"><h3>{{ __('site.card_institution_title') }}</h3><p>{{ __('site.card_institution_text') }}</p></div>
|
||||
</article>
|
||||
<article class="card" data-reveal data-d="1">
|
||||
<div class="ph"><img src="{{ asset('images/site/olives.jpg') }}" alt="{{ __('site.alt_olives') }}" width="900" height="1350"><span class="lbl">{{ __('site.card_society_label') }}</span></div>
|
||||
<div class="bd"><h3>{{ __('site.card_society_title') }}</h3><p>{{ __('site.card_society_text') }}</p></div>
|
||||
</article>
|
||||
<article class="card" data-reveal data-d="2">
|
||||
<div class="ph"><img src="{{ asset('images/site/hills.jpg') }}" alt="{{ __('site.alt_hills') }}" width="900" height="1600"><span class="lbl">{{ __('site.card_diaspora_label') }}</span></div>
|
||||
<div class="bd"><h3>{{ __('site.card_diaspora_title') }}</h3><p>{{ __('site.card_diaspora_text') }}</p></div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{-- Values --}}
|
||||
@php
|
||||
$valueIcons = [
|
||||
'<path d="M12 3l7 3v6c0 4.5-3 7.6-7 9-4-1.4-7-4.5-7-9V6z"/><path d="M9 12l2 2 4-4"/>',
|
||||
'<path d="M12 4v16M8 20h8M5 7h14"/><path d="M5 7l-3 6a3 3 0 0 0 6 0zM19 7l-3 6a3 3 0 0 0 6 0z"/>',
|
||||
'<path d="M2 5h6a4 4 0 0 1 4 4v11a3 3 0 0 0-3-3H2zM22 5h-6a4 4 0 0 0-4 4v11a3 3 0 0 1 3-3h7z"/>',
|
||||
'<path d="M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z"/>',
|
||||
'<rect x="3" y="7.5" width="18" height="12" rx="2"/><path d="M9 7.5V5h6v2.5M3 13h18"/>',
|
||||
'<path d="M9 18h6M10 21h4M12 3a6 6 0 0 0-4 10.5c.8.8 1 1.5 1 2.5h6c0-1 .2-1.7 1-2.5A6 6 0 0 0 12 3z"/>',
|
||||
];
|
||||
@endphp
|
||||
<section class="sec" id="values">
|
||||
<div class="wrap">
|
||||
<x-site.section-head :label="__('site.art_values')" :title="__('home.values_title')" :lede="__('home.values_subtitle')" />
|
||||
<div class="sampler">
|
||||
@foreach (['integrity', 'justice', 'knowledge', 'empowerment', 'professionalism', 'innovation'] as $i => $value)
|
||||
<div class="val" data-reveal @if ($i) data-d="{{ $i }}" @endif>
|
||||
<span class="medal"><svg viewBox="0 0 24 24" aria-hidden="true">{!! $valueIcons[$i] !!}</svg></span>
|
||||
<b>{{ __('home.values.'.$value.'.title') }}</b>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{-- Latest Posts Section --}}
|
||||
@if($latestPosts->count() > 0)
|
||||
<section id="posts" class="py-16 lg:py-20 bg-background">
|
||||
<div class="container mx-auto px-4">
|
||||
<div class="text-center mb-12">
|
||||
<h2 class="text-2xl lg:text-3xl font-semibold text-text mb-4">
|
||||
{{ __('home.posts_title') }}
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8">
|
||||
@foreach($latestPosts as $post)
|
||||
<article class="bg-card p-6 rounded-lg shadow-card hover:shadow-card-hover transition-shadow">
|
||||
<time class="text-xs text-body/70 mb-2 block">
|
||||
{{ $post->published_at?->translatedFormat('j F Y') ?? $post->created_at->translatedFormat('j F Y') }}
|
||||
</time>
|
||||
<h3 class="text-lg font-bold text-text mb-3">
|
||||
<a href="{{ route('posts.show', $post) }}" class="hover:text-cta transition-colors" wire:navigate>
|
||||
{{ $post->getTitle() }}
|
||||
</a>
|
||||
</h3>
|
||||
<p class="text-body text-sm mb-4 line-clamp-3">
|
||||
{{ $post->getExcerpt() }}
|
||||
</p>
|
||||
<a href="{{ route('posts.show', $post) }}" class="text-cta font-medium text-sm hover:text-cta-hover" wire:navigate>
|
||||
{{ __('home.read_more') }} →
|
||||
</a>
|
||||
</article>
|
||||
{{-- Latest articles --}}
|
||||
<section class="sec" id="posts" style="padding-top:20px">
|
||||
<div class="wrap">
|
||||
<x-site.section-head :label="__('site.art_articles')" :title="__('home.posts_title')">
|
||||
<a class="btn btn-ghost" href="{{ route('posts.index') }}" wire:navigate data-reveal data-d="2"><span>{{ __('home.view_all_posts') }}</span></a>
|
||||
</x-site.section-head>
|
||||
@if ($latestPosts->isNotEmpty())
|
||||
<div class="posts">
|
||||
@foreach ($latestPosts as $post)
|
||||
<x-site.post-card :post="$post" />
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
<p class="text-center" style="color:var(--muted)">{{ __('home.posts_empty') }}</p>
|
||||
@endif
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="text-center">
|
||||
<a href="{{ route('posts.index') }}" class="btn-secondary inline-flex items-center gap-2" wire:navigate>
|
||||
{{ __('home.view_all_posts') }}
|
||||
<span aria-hidden="true">→</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
</div>
|
||||
{{-- booking card: task 24-5 --}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user