Skip to content

Commit

Permalink
Merge pull request #288 from appwrite/disable-spline
Browse files Browse the repository at this point in the history
Disable Spline Embeds
  • Loading branch information
TorstenDittmann authored Oct 26, 2023
2 parents 785c331 + 14a5cb3 commit cf4bdcf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/lib/components/Spline.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<script lang="ts">
import type { SplineViewer } from '@splinetool/viewer';
import { onMount } from 'svelte';
import { writable } from 'svelte/store';
import type { SplineViewer } from '@splinetool/viewer';
import { fade } from 'svelte/transition';
import { dev } from '$app/environment';
export let url: SplineViewer['url'];
export let width: SplineViewer['width'] = undefined;
Expand All @@ -25,9 +24,11 @@
spline.addEventListener('load-complete', onLoad);
});
const ENABLED = false;
</script>

{#if !dev}
{#if ENABLED}
<spline-viewer
style="position: absolute;"
{url}
Expand Down
4 changes: 3 additions & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,9 @@
style:left="0"
>
<div style:display="grid" style:place-items="center" style:height="100%">
<Spline loading="eager" url="/images/animations/lines.splinecode" />
<Spline loading="eager" url="/images/animations/lines.splinecode">
<img src="/images/bgs/diagonal-lines.png" alt="" width="512" />
</Spline>
</div>
</div>
<div class="aw-container u-position-relative">
Expand Down

0 comments on commit cf4bdcf

Please sign in to comment.