Skip to content

Commit

Permalink
Try to fix video resolver issue
Browse files Browse the repository at this point in the history
  • Loading branch information
milkcee12 committed Feb 21, 2024
1 parent e0b1202 commit 3b2ca0a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/lib/components/ImageGallery.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{#await getImageMapFromModule(module)}
<ImageLoader />
{:then images}
{#each images as image}
{#each images as image, i}
{#if !image.filename.includes("-video")}
{@const id = parseInt(image.filename) - 1}
{@const title = dataTyped[id].title ?? "Untitled"}
Expand All @@ -41,7 +41,8 @@
<div class="item">
<!-- svelte-ignore a11y-media-has-caption -->
<video poster={image.url} controls>
<source src={image.url.replace(".jpg", "-video.mp4")} type="video/mp4" />
{console.log(images)}
<source src={images[i+1].url} type="video/mp4" />
</video>
</div>
{:else}
Expand Down
7 changes: 3 additions & 4 deletions src/lib/data/playground.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# next_id: 17
# next_id: 18
images:
- id: 1
title: Beneath the Fireflies
desc:
Jellal and Erza from Fairy Tail, one of my favorite anime ships to this day.
A redraw of a 2020 illutration that I thought was my best work yet (at the time).
A redraw of a 2020 illutration that I thought was my best work yet (at the time)!
date: 2023
link: https://www.instagram.com/p/Cvfk8EoIIOy/?img_index=2
link_text: See the original piece!
Expand Down Expand Up @@ -41,8 +41,7 @@ images:
- id: 6
title: Toy Dragon
desc:
A complete redraw of an older piece! Although I draw a lot of people these
days, I used to love drawing backgrounds and especially clouds. I wanted to try
A complete redraw of an older piece! Although I mostly draw characters now, I used to love drawing backgrounds and especially clouds. I wanted to try
my hand at Studio Ghibli vibes in this piece.
date: 2022
link: https://www.instagram.com/p/Cl9cAfIP5SA/?img_index=1
Expand Down
2 changes: 1 addition & 1 deletion src/lib/data/projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ projects:
start_date: Dec 2022
end_date:
desc:
What youre looking at right now! Started as a winter break project and built
What you're looking at right now! Started as a winter break project and built
up little by little. Created from scratch with SvelteKit, TypeScript, and Sass.
tags:
tech:
Expand Down

0 comments on commit 3b2ca0a

Please sign in to comment.