-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEATURE(snowfall-space): Added a new chapter placeholder
- Loading branch information
Showing
7 changed files
with
93 additions
and
11 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
components/sketches/the-sinking-isle/components/tsi-snowfall-space.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<template lang="pug"> | ||
transition( name="el-fade-in" appear) | ||
.tsi-snowfall-space | ||
.loading-wrapper ❄️ Loading... | ||
iframe( | ||
:src="cineShaderUrl" | ||
allow="xr-spatial-tracking" | ||
frameborder="0" | ||
) | ||
</template> | ||
|
||
<script> | ||
// @TODO: Replace CineShader iframe with local scene | ||
export default { | ||
data() { | ||
return { | ||
cineShaderUrl: 'https://cineshader.com/view/slfBW2' | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="stylus"> | ||
.tsi-snowfall-space | ||
width: 100% | ||
height: 100% | ||
transition: all 1000ms | ||
.loading-wrapper | ||
position absolute | ||
top: 50% | ||
left: 50% | ||
transform: translate3d(-50%, -50%, 0) | ||
color: secondary(50) | ||
iframe | ||
pointer-events: initial | ||
mask-image: linear-gradient( | ||
to bottom, | ||
rgba(0, 0, 0, 0), | ||
rgba(0, 0, 0, 1) 20%, | ||
rgba(0, 0, 0, 1) 80%, | ||
rgba(0, 0, 0, 0.5) 99%, | ||
rgba(0, 0, 0, 0) 100% | ||
) | ||
mask-size: 100% 100% | ||
width: 100% | ||
height: 100% | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
components/sketches/the-sinking-isle/modules/chapters/snowfall-space.chapter.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Chapter } from './base' | ||
|
||
export class SnowfallSpaceChapter extends Chapter { | ||
|
||
constructor (options) { | ||
super(options) | ||
|
||
this.name = 'snowfallSpace' | ||
} | ||
|
||
async afterEntered() { | ||
super.afterEntered() | ||
this.$vm.$message.error(this.$vm.$t('tsi.snowfallSpace.wip')) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
07097ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
sunebear-com – ./
sunebear-com-sunebear.vercel.app
sunebear.com
sunebear-com-git-master-sunebear.vercel.app
www.sunebear.com
sunebear-com.vercel.app
wangjian-takeoutbet-countdown.com