Skip to content

Commit

Permalink
perf: replace gif with webm
Browse files Browse the repository at this point in the history
  • Loading branch information
manankarnik committed Mar 10, 2024
1 parent 01aa74d commit 09b4a40
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Binary file removed src/lib/assets/terrain.gif
Binary file not shown.
Binary file added src/lib/assets/terrain.webm
Binary file not shown.
2 changes: 1 addition & 1 deletion src/lib/components/generate/publish-popup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
</script>

<div class={`absolute top-20 flex h-20 w-full justify-center ${alert ? "" : "hidden"}`}>
<Alert.Root variant="success" class="w-30 bg-transparent backdrop-blur-xl">
<Alert.Root variant="success" class="w-30 backdrop-blur-xl bg-transparent">
<CheckCircle2 class="h-4 w-4" />
<Alert.Title>Success</Alert.Title>
<Alert.Description>Asset publised successfully!</Alert.Description>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/home/hero-section.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import { Button } from "$lib/components/ui/button";
import terrain from "$lib/assets/terrain.gif";
import terrain from "$lib/assets/terrain.webm";
import background from "$lib/assets/gradient.png";
</script>

Expand All @@ -20,7 +20,7 @@
<p class="text-muted-foreground text-center text-center sm:text-lg">
Procedural generation on the web in realtime!
</p>
<img class="mx-auto p-5 w-60 lg:w-80" width="300px" alt="Terrain" src={terrain} />
<video class="mx-auto p-3 w-60 lg:w-80" width="300px" alt="Terrain" oncontextmenu="return false;" hide-controls loop autoplay muted src={terrain} />
<div class="my-4 hidden items-center justify-center gap-4 sm:flex">
<Button href="/browse" variant="outline">Browse Assets</Button>
<Button href="/generate">Generate Assets</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/dev/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ fn setup(mut commands: Commands) {
needs.
</p>
<h2>Bevy Compatibility</h2>
<p>bevy_generative is compatible with Bevy 0.12.</p>
<p>bevy_generative is compatible with Bevy 0.12 and later versions.</p>
<h2>Contributing</h2>
<p>
We're not accepting pull requests at this time, but we welcome issues, feature requests, and
Expand Down

0 comments on commit 09b4a40

Please sign in to comment.