Skip to content
Merged
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
100 changes: 48 additions & 52 deletions src/lib/layout/footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Button,
Badge
} from '@appwrite.io/pink-svelte';
import { isSmallViewport, isTabletViewport } from '$lib/stores/viewport';
import { isSmallViewport } from '$lib/stores/viewport';

const currentYear = new Date().getFullYear();
</script>
Expand All @@ -23,7 +23,6 @@
direction="row"
alignItems="center"
gap={$isSmallViewport ? 'm' : 'l'}
inline={$isTabletViewport}
justifyContent="flex-start">
<Typography.Caption variant="400">
ⓒ {currentYear} Appwrite. All rights reserved.
Expand Down Expand Up @@ -54,63 +53,37 @@
</Button.Anchor>
</Layout.Stack>
</Layout.Stack>
{#if isCloud && $isSmallViewport}
<div class="extra-margin">
<Layout.Stack direction="row" justifyContent={'flex-start'} alignItems="center">
{#if $version}
{#if isCloud}
<Icon size="s" icon={IconCloud} />
{/if}
<Link.Anchor
size="s"
variant="quiet"
href="https://github.com/appwrite/appwrite/releases"
aria-label="Appwrite releases on Github"
target="_blank"
rel="noreferrer">
Version {$version}
</Link.Anchor>
<span class="divider-wrapper">
<Divider vertical />
</span>
{/if}
<Badge
size="xs"
type="success"
variant="secondary"
content="Generally Available"
style="white-space: nowrap;" />
</Layout.Stack>
</div>
{/if}

<Layout.Stack
direction="row"
justifyContent={$isSmallViewport ? 'flex-start' : 'flex-end'}
alignItems="center">
{#if isCloud}
{#if !$isSmallViewport}
alignItems="center"
wrap={$isSmallViewport ? 'wrap' : 'normal'}>
{#if !$isSmallViewport}
{#if isCloud}
<Badge
size="xs"
type="success"
variant="secondary"
content="Generally Available"
style="white-space: nowrap;" />

<Icon size="s" icon={IconCloud} />
{#if $version}
<Link.Anchor
size="s"
variant="quiet"
href="https://github.com/appwrite/appwrite/releases"
aria-label="Appwrite releases on Github"
target="_blank"
rel="noreferrer">
Version {$version}
</Link.Anchor>
<span class="divider-wrapper">
<Divider vertical />
</span>
{/if}
{/if}

{#if $version}
<Link.Anchor
size="s"
variant="quiet"
href="https://github.com/appwrite/appwrite/releases"
aria-label="Appwrite releases on Github"
target="_blank"
rel="noreferrer"
style="white-space: nowrap;">
Version {$version}
</Link.Anchor>
<span class="divider-wrapper">
<Divider vertical />
</span>
{/if}
{/if}
Copy link
Preview

Copilot AI Jul 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This closing {/if} statement appears to be misplaced or unmatched. Based on the diff context, it should correspond to the {#if !$isSmallViewport} condition that opens at line 85, but the indentation and logical flow suggest a structural issue in the conditional blocks.

Copilot uses AI. Check for mistakes.


Expand Down Expand Up @@ -157,6 +130,32 @@
Cookies
</Link.Anchor>
{/if}
{#if $isSmallViewport}
{#if $version}
<span class="divider-wrapper">
<Divider vertical />
</span>
<Link.Anchor
size="s"
variant="quiet"
href="https://github.com/appwrite/appwrite/releases"
aria-label="Appwrite releases on Github"
target="_blank"
rel="noreferrer"
style="white-space: nowrap;">
Version {$version}
</Link.Anchor>
{#if isCloud}
<Icon size="s" icon={IconCloud} />
<Badge
size="xs"
type="success"
variant="secondary"
content="Generally Available"
style="white-space: nowrap;" />
{/if}
{/if}
{/if}
</Layout.Stack>
</Layout.Stack>
</footer>
Expand All @@ -180,7 +179,4 @@
margin-inline-end: 2rem;
}
}
.extra-margin {
margin-block-start: var(--space-2, 4px);
}
</style>