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

المعرض

gallery-09

معرض صور بنمط البناء بعنوان ووصف في المنتصف: صور مربعة وعريضة تتوزع على ثلاثة أعمدة، وعمود واحد على الجوال.

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

التثبيت

php artisan ui:add-block gallery-09

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

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

الاستخدام

Every piece of content is a prop. An image is ['src' => ..., 'alt' => ...]; leave src empty to show a placeholder. Images flow down the first column, then the next (CSS columns). Add 'wide' => true to an image to make it 16:9 instead of square.

<x-ui.blocks.gallery-09
    heading="Our work"
    description="A few recent projects."
    :images="[
        ['src' => '/images/gallery/1.jpg', 'alt' => 'Photo 1'],
        ['src' => '/images/gallery/2.jpg', 'alt' => 'Photo 2'],
        ['src' => '/images/gallery/3.jpg', 'alt' => 'Photo 3', 'wide' => true],
    ]"
/>

الخصائص

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

@props([
    'heading' => 'Image Gallery',
    'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
    'images' => [
        ['src' => null, 'alt' => 'Placeholder image 1'],
        ['src' => null, 'alt' => 'Placeholder image 2'],
        ['src' => null, 'alt' => 'Placeholder image 3', 'wide' => true],
        ['src' => null, 'alt' => 'Placeholder image 4', 'wide' => true],
        ['src' => null, 'alt' => 'Placeholder image 5'],
        ['src' => null, 'alt' => 'Placeholder image 6'],
        ['src' => null, 'alt' => 'Placeholder image 7'],
    ],
])