انتقل إلى المحتوى
الأدلة
التنقل
التنبيهات
الطبقات العائمة
التخطيط
عرض البيانات
النماذج
.md

التواصل

contact-17

قائمة مواقع بجانب صورة: اختر مكتبًا من القائمة فتظهر صورته بجانبها. بلغة CSS فقط، دون أي سكربت.

فتح بملء الشاشة

التثبيت

php artisan ui:add-block contact-17

أمر واحد يثبّت ملف Blade الخاص بالقالب وكل مكوّن يعتمد عليه. اعرضه في تخطيطك كالتالي <x-ui.blocks.contact-17 />.

المكونات المضمّنة

الاستخدام

Locations list beside a photo. Picking an office in the list shows its photo next to it. It works with no script: each office is a visually hidden radio, so the list is keyboard friendly (Tab in, arrow keys to move) and the selected photo follows `:checked` in CSS. Every piece of content is a prop. A location is ['name' => ..., 'address' => ...] plus an optional 'image' => ['src' => ..., 'alt' => ...]; without a src the panel shows a placeholder. Give each instance on a page its own `id`.

<x-ui.blocks.contact-17
    id="offices"
    tagline="Offices"
    heading="Where to find us"
    description="Pick a studio to see it."
    :locations="[
        ['name' => 'Sydney', 'address' => '1 Market St, Sydney NSW 2000', 'image' => ['src' => '/img/sydney.jpg', 'alt' => 'Sydney studio']],
        ['name' => 'Auckland', 'address' => '2 Queen St, Auckland 1010', 'image' => ['src' => '/img/auckland.jpg', 'alt' => 'Auckland studio']],
    ]"
    action-label="See the studio"
/>

الخصائص

كل خاصية مع قيمتها الافتراضية. مرّر أيًّا منها كسمة، واستخدم : لربط قيمة PHP.

@props([
    'id' => 'contact-17',
    'tagline' => 'Tagline',
    'heading' => 'Locations',
    'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
    'locations' => [
        ['name' => 'Sydney', 'address' => '123 Sample St, Sydney NSW 2000 AU'],
        ['name' => 'New York', 'address' => '123 Sample St, New York NY 10000 USA'],
        ['name' => 'London', 'address' => '123 Sample St, London W1C 1DE, United Kingdom'],
    ],
    'actionLabel' => 'View Office',
])