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/LinkableTextShelf.svelte | 43 +++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 src/components/jet/shelf/LinkableTextShelf.svelte

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

diff --git a/src/components/jet/shelf/LinkableTextShelf.svelte b/src/components/jet/shelf/LinkableTextShelf.svelte
new file mode 100644
index 0000000..dcfde36
--- /dev/null
+++ b/src/components/jet/shelf/LinkableTextShelf.svelte
@@ -0,0 +1,43 @@
+<script lang="ts" context="module">
+    import type { Shelf, LinkableText } from '@jet-app/app-store/api/models';
+
+    interface LinkableTextShelf extends Shelf {
+        contentType: 'linkableText';
+        items: [LinkableText];
+    }
+
+    export function isLinkableTextShelf(
+        shelf: Shelf,
+    ): shelf is LinkableTextShelf {
+        return (
+            shelf.contentType === 'linkableText' && Array.isArray(shelf.items)
+        );
+    }
+</script>
+
+<script lang="ts">
+    import ShelfWrapper from '~/components/Shelf/Wrapper.svelte';
+
+    import LinkableTextItem from '~/components/jet/item/LinkableTextItem.svelte';
+
+    export let shelf: LinkableTextShelf;
+</script>
+
+<ShelfWrapper centered withPaddingTop={true}>
+    <div class="banner">
+        <LinkableTextItem item={shelf.items[0]} />
+    </div>
+</ShelfWrapper>
+
+<style>
+    .banner {
+        background: rgba(var(--keyColor-rgb), 0.07);
+        padding: 8px 16px;
+        text-align: center;
+        border-radius: var(--global-border-radius-small);
+    }
+
+    .banner :global(a) {
+        color: var(--keyColor);
+    }
+</style>
-- 
cgit v1.2.3

