@{
    ViewData["Title"] = "이벤트";
    var data = ((int key, string href, string src, string alt)[])ViewBag.Data;
}

<div id="event" class="container mx-auto">
    <h1 class="text-2xl mb-2 text-center">@ViewData["Title"]</h1>

    <hr/>

    <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4 mt-3">
        @foreach (var row in data)
        {
            <div>
                <a href="@row.href" rel="external" target="_blank"><img src="@row.src" alt="@row.alt" /></a>
            </div>
        }
    </div>
</div>