Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/routes/(marketing)/(components)/hero-banner.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
const { title, href, icon = 'sparkle' }: Props = $props();
</script>

<a {href} class="web-hero-banner-button relative mb-4 flex items-center!">
<a
{href}
target={href.startsWith('http') ? '_blank' : undefined}
rel={href.startsWith('http') ? 'noopener noreferrer' : undefined}
class="web-hero-banner-button relative mb-4 flex items-center!"
>
{#if icon === 'mongo'}
<span class="mongo-icon-badge shrink-0" aria-hidden="true">
<Icon name="mongo" style="width: 0.75rem; height: 1.125rem; color: #00ED64;" />
Expand Down
12 changes: 6 additions & 6 deletions src/routes/(marketing)/(components)/hero.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,16 @@
>
{#if layoutAside}
<HeroBanner
title="New: Announcing the Presences API"
href="/blog/post/announcing-presences-api"
icon="presences"
title="State of Appwrite Cloud: Take the survey"
href="https://forms.gle/5cvWxTwhonoDCWsi7"
icon="sparkle"
/>
{:else}
<div class="flex w-full justify-center">
<HeroBanner
title="New: Announcing the Presences API"
href="/blog/post/announcing-presences-api"
icon="presences"
title="State of Appwrite Cloud: Take the survey"
href="https://forms.gle/5cvWxTwhonoDCWsi7"
icon="sparkle"
/>
</div>
{/if}
Expand Down
Loading