File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
<script >
2
2
import Wide from ' ./Wide.svelte' ;
3
+ import { base } from ' $app/paths' ;
3
4
</script >
4
5
5
6
<figure >
6
7
<Wide >
7
- <img class =" wide" src =" /wide.png" alt =" A wide shot of Audrey Hepburn from the film Charade." />
8
+ <img class ="wide" src ={ ` ${ base } /wide.png` } alt =" A wide shot of Audrey Hepburn from the film Charade." />
8
9
<img
9
10
class =" close"
10
- src =" /close.png"
11
+ src ={ ` ${ base } /close.png` }
11
12
alt =" A close-up of Audrey Hepburn showing the details of her expression from the film Charade."
12
13
/>
13
14
</Wide >
Original file line number Diff line number Diff line change 1
1
<script >
2
2
import Wide from ' ./Wide.svelte' ;
3
3
import { intersect } from ' svelte-intersection-observer-action' ;
4
+ import { base } from ' $app/paths' ;
4
5
5
6
const intersectionOptions = {
6
7
callback : (entry ) => {
17
18
<Wide >
18
19
<div id =" theater" class =" video-container" >
19
20
<div class =" inner" >
20
- <video src =" /ladies_and_gentlemen.mp4" use:intersect ={intersectionOptions } controls ></video >
21
+ <video src ={ ` ${ base } /ladies_and_gentlemen.mp4` } use:intersect ={intersectionOptions } controls ></video >
21
22
<p class =" caption" >Keep scrolling to dive in.</p >
22
23
</div >
23
24
</div >
You can’t perform that action at this time.
0 commit comments