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
13 changes: 10 additions & 3 deletions src/lib/components/emptyCardImageCloud.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
<script>
import { getNextTier, tierToPlan } from '$lib/stores/billing';
<script lang="ts">
import { isSmallViewport } from '$lib/stores/viewport';
import { organization } from '$lib/stores/organization';
import { getNextTier, tierToPlan } from '$lib/stores/billing';
import { Card, Layout, Typography } from '@appwrite.io/pink-svelte';

export let source = 'empty_state_card';
export let responsive = false;

// type def for Layout.Stack!
let direction: 'column' | 'row' | 'row-reverse' | 'column-reverse' = 'row';

$: direction = responsive ? ($isSmallViewport ? 'column' : 'row') : 'row';
</script>

<Card.Base variant="secondary" padding="s" radius="s">
<Layout.Stack direction="row" gap="l">
<Layout.Stack {direction} gap="l">
{#if $$slots?.image}
<div style="flex-shrink:0">
<slot name="image" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
Learn more</Link.Anchor>
<svelte:fragment slot="aside">
{#if isComponentDisabled}
<EmptyCardImageCloud source="email_signature_card">
<EmptyCardImageCloud responsive source="email_signature_card">
<svelte:fragment slot="image">
<div class=" is-only-mobile u-width-full-line u-height-100-percent">
{#if $app.themeInUse === 'dark'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Enable or disable Appwrite branding in your email template signature.

<svelte:fragment slot="aside">
<EmptyCardImageCloud source="email_signature_card" let:nextTier>
<EmptyCardImageCloud responsive source="email_signature_card" let:nextTier>
<svelte:fragment slot="image">
<div class=" is-only-mobile u-width-full-line u-height-100-percent">
{#if $app.themeInUse === 'dark'}
Expand Down