Skip to content

Commit

Permalink
Replace large gif with 10x smaller videos
Browse files Browse the repository at this point in the history
Fixes #8
  • Loading branch information
bcspragu committed Sep 11, 2023
1 parent f12f268 commit a5e686f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
frontend/assets/img/logo_loading_animation_v1.mp4 filter=lfs diff=lfs merge=lfs -text
frontend/assets/img/logo_loading_animation_v1.webm filter=lfs diff=lfs merge=lfs -text
Binary file removed frontend/assets/img/logo_loading_animation_v1.gif
Binary file not shown.
3 changes: 3 additions & 0 deletions frontend/assets/img/logo_loading_animation_v1.mp4
Git LFS file not shown
3 changes: 3 additions & 0 deletions frontend/assets/img/logo_loading_animation_v1.webm
Git LFS file not shown
21 changes: 16 additions & 5 deletions frontend/components/modal/Loading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,22 @@ watch(() => loading.value, refreshZIndex)
class="loading-modal"
>
<div @click="() => { toggleDebug() } ">
<!-- TODO(#8) Swap out this reference -->
<img
src="@/assets/img/logo_loading_animation_v1.gif"
class="gif shadow-3"
<video
class="loading-animation shadow-3"
autoplay
loop
muted
playsinline
>
<source
src="@/assets/img/logo_loading_animation_v1.webm"
type="video/webm"
>
<source
src="@/assets/img/logo_loading_animation_v1.mp4"
type="video/mp4"
>
</video>
</div>
<ul
v-if="debug"
Expand Down Expand Up @@ -72,7 +83,7 @@ watch(() => loading.value, refreshZIndex)
align-items: center;
background: rgb(255 255 255 / 60%);
.gif {
.loading-animation {
width: 50vw;
max-width: 10rem;
}
Expand Down

0 comments on commit a5e686f

Please sign in to comment.