Skip to content

Commit

Permalink
Optimized background image in Intro demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
michielvandergeest committed Jan 31, 2024
1 parent 6edae61 commit f27a95d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
Binary file added public/assets/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/assets/background.png
Binary file not shown.
7 changes: 1 addition & 6 deletions src/pages/Intro.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default Blits.Component('Intro', {
Letter,
},
template: `
<Element w="1920" h="1080" :src="$background">
<Element w="1920" h="1080" src="assets/background.jpg">
<Letter letter="l" w="294" />
<Letter letter="i-1" w="128" x="294" direction="up" delay="50" />
<Letter letter="g-1" w="205" x="422" delay="100" />
Expand All @@ -34,9 +34,4 @@ export default Blits.Component('Intro', {
<Letter letter="n-2" w="219" x="1377" direction="up" delay="350" />
<Letter letter="g-2" w="324" x="1596" direction="up" delay="400" />
</Element>`,
state() {
return {
background: 'assets/background.png',
}
},
})

0 comments on commit f27a95d

Please sign in to comment.