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

المعرض

gallery-08

معرض صور بعنوان ووصف في المنتصف، مع صورة كبيرة في جهة البداية وشبكة 2×2 من الصور المربعة بجانبها.

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

التثبيت

php artisan ui:add-block gallery-08

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

الاستخدام

Every piece of content is a prop. An image is ['src' => ..., 'alt' => ...]; leave src empty to show a placeholder. The first image is the large one: it spans two rows (and two columns from md up) and takes its size from the grid.

<x-ui.blocks.gallery-08
    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'],
    ]"
/>

الخصائص

كل خاصية مع قيمتها الافتراضية. مرّر أيًّا منها كسمة، واستخدم : لربط قيمة 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'],
        ['src' => null, 'alt' => 'Placeholder image 4'],
        ['src' => null, 'alt' => 'Placeholder image 5'],
    ],
])