Skip to content

Commit 4e54e2e

Browse files
Merge pull request #3025 from appwrite/presences-featured
Feature Presences API blog and add homepage eyebrow
2 parents 4982d55 + 878da83 commit 4e54e2e

3 files changed

Lines changed: 16 additions & 8 deletions

File tree

src/routes/(marketing)/(components)/hero-banner.svelte

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
type Props = {
66
title: string;
77
href: string;
8-
icon?: Extract<IconType, 'mongo' | 'sparkle'> | 'claude';
8+
icon?: Extract<IconType, 'mongo' | 'sparkle'> | 'claude' | 'presences';
99
class?: string;
1010
};
1111
@@ -27,6 +27,8 @@
2727
class="claude-icon-badge-img"
2828
/>
2929
</span>
30+
{:else if icon === 'presences'}
31+
<span class="icon-status-online presences-icon-glyph shrink-0" aria-hidden="true"></span>
3032
{:else}
3133
<Icon name="sparkle" class="shrink-0" aria-hidden="true" />
3234
{/if}
@@ -63,4 +65,10 @@
6365
width: 0.875rem;
6466
height: 0.875rem;
6567
}
68+
69+
.presences-icon-glyph {
70+
color: #fd366e;
71+
font-size: 1rem;
72+
line-height: 1;
73+
}
6674
</style>

src/routes/(marketing)/(components)/hero.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,16 @@
152152
>
153153
{#if layoutAside}
154154
<HeroBanner
155-
title="New: Appwrite plugin for Claude Code"
156-
href="/blog/post/announcing-appwrite-claude-code-plugin"
157-
icon="claude"
155+
title="New: Announcing the Presences API"
156+
href="/blog/post/announcing-presences-api"
157+
icon="presences"
158158
/>
159159
{:else}
160160
<div class="flex w-full justify-center">
161161
<HeroBanner
162-
title="New: Appwrite plugin for Claude Code"
163-
href="/blog/post/announcing-appwrite-claude-code-plugin"
164-
icon="claude"
162+
title="New: Announcing the Presences API"
163+
href="/blog/post/announcing-presences-api"
164+
icon="presences"
165165
/>
166166
</div>
167167
{/if}

src/routes/blog/post/announcing-presences-api/+page.markdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cover: /images/blog/announcing-presences-api/cover.avif
77
timeToRead: 5
88
author: aditya-oberai
99
category: announcement
10-
featured: false
10+
featured: true
1111
callToAction: true
1212
faqs:
1313
- question: "What is the Appwrite Presences API?"

0 commit comments

Comments
 (0)