<?php
$credits = [
    ['Sunset at Odell Lake', 'Bonnie Moreland', 'Public domain', 'https://commons.wikimedia.org/wiki/File:Sunset_Odell_Lake,_Oregon_-_Flickr_-_Bonnie_Moreland_(free_images).jpg'],
    ['Picnic at Valasht Lake', 'Gholamreza Shamsnetari', 'CC BY 4.0', 'https://commons.wikimedia.org/wiki/File:Sizdah_Be-Dar_2018,_Valasht_Lake_(13970114000329636583522676851541_54966).jpg'],
    ['People eating outside a restaurant', 'Elvert Barnes', 'CC BY-SA 2.0', 'https://commons.wikimedia.org/wiki/File:People_eating_outside_restaurant_Baltimore.jpg'],
    ['People dining at Zen Garden', 'Ibrahim Achiri', 'CC BY-SA 4.0', 'https://commons.wikimedia.org/wiki/File:People_dining_and_socializing_at_Zen_Garden.jpg'],
    ['Hamburger with fries', 'Daderot', 'CC0', 'https://commons.wikimedia.org/wiki/File:Hamburger_with_blue_cheese,_guacamole,_and_other_toppings,_plus_French_fries_-_Massachusetts.jpg'],
    ['Chicken wrap with spinach', 'Tomwsulcer', 'CC0', 'https://commons.wikimedia.org/wiki/File:Lunch_chicken_wrap_with_spinach_and_sauce.JPG'],
    ['Falafel bowl', 'Andy Li', 'CC0', 'https://commons.wikimedia.org/wiki/File:Falafel_Super_Bowl_Salad_-_Leon_2025-10-27.jpg'],
    ['Chicken legs', 'Vyacheslav Argenberg', 'CC BY 4.0', 'https://commons.wikimedia.org/wiki/File:Fried_chicken_legs,_Rostov-on-Don,_Russia.jpg'],
    ['Iced tea', 'Renee Comet', 'Public domain', 'https://commons.wikimedia.org/wiki/File:Iced_tea.jpg'],
    ['French fries', 'Thriving Vegetarian', 'CC BY 2.0', 'https://commons.wikimedia.org/wiki/File:Perfect_French_Fries_-_11457817933.jpg'],
];
?>
<section class="page-hero page-hero-compact">
    <div class="container">
        <span class="eyebrow">Open media</span>
        <h1>Image Credits</h1>
        <p>The Lakeside Orders demo uses public-domain and Creative Commons photography.</p>
    </div>
</section>

<section class="section">
    <div class="container narrow-content">
        <div class="credits-list">
            <?php foreach ($credits as [$title, $artist, $license, $source]): ?>
                <article>
                    <div>
                        <h2><?= e($title) ?></h2>
                        <p><?= e($artist) ?> &middot; <?= e($license) ?></p>
                    </div>
                    <a class="text-link" href="<?= e($source) ?>" target="_blank" rel="license noopener">View source</a>
                </article>
            <?php endforeach; ?>
        </div>
        <p class="credits-note">Photography is displayed with CSS crops for the responsive layout. No photographer or licensor endorses this demo.</p>
    </div>
</section>
