From bce557cc2dc767628bed6aac87301a1be7c5431b Mon Sep 17 00:00:00 2001
From: rxliuli <rxliuli@gmail.com>
Date: Tue, 4 Nov 2025 05:03:50 +0800
Subject: init commit

---
 src/components/jet/shelf/BannerShelf.svelte | 35 +++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 src/components/jet/shelf/BannerShelf.svelte

(limited to 'src/components/jet/shelf/BannerShelf.svelte')

diff --git a/src/components/jet/shelf/BannerShelf.svelte b/src/components/jet/shelf/BannerShelf.svelte
new file mode 100644
index 0000000..84289c9
--- /dev/null
+++ b/src/components/jet/shelf/BannerShelf.svelte
@@ -0,0 +1,35 @@
+<script lang="ts" context="module">
+    import type { Shelf, Banner } from '@jet-app/app-store/api/models';
+
+    interface BannerShelf extends Shelf {
+        contentType: 'banner';
+        items: Banner[];
+    }
+
+    export function isBannerShelf(shelf: Shelf): shelf is BannerShelf {
+        return shelf.contentType === 'banner' && Array.isArray(shelf.items);
+    }
+</script>
+
+<script lang="ts">
+    import BannerItem from '~/components/jet/item/BannerItem.svelte';
+    import ShelfWrapper from '~/components/Shelf/Wrapper.svelte';
+
+    export let shelf: BannerShelf;
+</script>
+
+<ShelfWrapper {shelf}>
+    <div class="banner-items-container">
+        {#each shelf.items as item}
+            <BannerItem {item} />
+        {/each}
+    </div>
+</ShelfWrapper>
+
+<style>
+    .banner-items-container {
+        display: flex;
+        flex-direction: column;
+        gap: 8px;
+    }
+</style>
-- 
cgit v1.2.3

