Skip to content

Commit

Permalink
better components names + data json fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
iuridepaula committed Aug 1, 2022
1 parent 5201303 commit abfff79
Show file tree
Hide file tree
Showing 31 changed files with 348 additions and 211 deletions.
File renamed without changes.
29 changes: 22 additions & 7 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,28 @@
<transition appear mode="out-in" :css="false" @leave="leave" @enter="enter">
<router-view />
</transition>
<Spine :isPlaying="isSpinePlaying" />
<SpineLine :isPlaying="isSpinePlaying" />
<div class="tweenerElement"></div>

<FooterSection />
</div>
</template>

<script>
// GSAP + ScrollMagic
import * as ScrollMagic from 'scrollmagic'
import { TweenMax, TimelineMax, Power3 } from 'gsap'
import { ScrollMagicPluginGsap } from 'scrollmagic-plugin-gsap'
import HeaderSection from '@/components/Header.vue'
import Spine from '@/components/Spine.vue'
import FooterSection from './components/Footer.vue'
import HeaderSection from './components/HeaderSection.vue'
import FooterSection from './components/FooterSection.vue'
import SpineLine from './components/SpineLine.vue'
ScrollMagicPluginGsap(ScrollMagic, TweenMax, TimelineMax)
export default {
name: 'App',
components: {
HeaderSection,
Spine,
SpineLine,
FooterSection,
},
data() {
Expand Down Expand Up @@ -134,16 +133,20 @@ html {
word-break: normal;
color: #888;
}
body {
min-height: 100vh;
&.locked {
overflow: hidden;
}
}
#app {
overflow: hidden;
margin: 0 auto;
}
.wrapper {
position: relative;
z-index: 1;
Expand All @@ -170,12 +173,15 @@ body {
li {
list-style: none;
}
a {
text-decoration: none;
}
button {
border: 0;
}
svg {
title,
desc {
Expand All @@ -194,9 +200,11 @@ body {
.header-nav-button .dots {
background: #000;
}
.header-nav a {
color: #000;
}
.header-nav a svg,
.header-breadcrumb,
.header-nav-close-button {
Expand All @@ -220,10 +228,13 @@ body {
&.-blank {
vertical-align: middle;
} // default
}
// default
&.-prev {
transform: rotate(-180deg);
}
&.-next {
transform: rotate(90deg);
}
Expand Down Expand Up @@ -253,6 +264,7 @@ body {
.func {
color: var(--purple);
}
.params {
color: var(--purple);
font-weight: 400;
Expand Down Expand Up @@ -308,6 +320,7 @@ body {
// NProgress custom CSS
#nprogress {
pointer-events: none;
.bar {
background: var(--purple);
position: fixed;
Expand All @@ -317,6 +330,7 @@ body {
width: 100%;
height: 2px;
}
.peg {
display: block;
position: absolute;
Expand All @@ -331,6 +345,7 @@ body {
.nprogress-custom-parent {
overflow: hidden;
position: relative;
#nprogress {
.spinner,
.bar {
Expand Down
3 changes: 1 addition & 2 deletions src/components/Characters/ABiz/ABiz.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
</template>

<script>
import { LOOP_EASE_IN_OUT } from '@/constants'
import { LOOP_EASE_IN_OUT, LOOP_EASE_OUT } from '@/constants'
import { character } from '../character.mixin'
import ABizSVG from './ABizSVG.vue'
import { LOOP_EASE_OUT } from '../../../constants'
export default {
name: 'BizCharacter',
Expand Down
2 changes: 1 addition & 1 deletion src/components/Characters/ABiz/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './ABiz.vue'
// export { default } from './ABiz.vue'
3 changes: 1 addition & 2 deletions src/components/Characters/ET/ET.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
</template>

<script>
import { LOOP_EASE_IN_OUT } from '@/constants'
import { LOOP_EASE_IN_OUT, LOOP } from '@/constants'
import { random } from '@/utils'
import { LOOP } from '../../../constants'
import { character } from '../character.mixin'
import ETSVG from './ETSVG.vue'
Expand Down
26 changes: 24 additions & 2 deletions src/components/Characters/HolwsCastle/HolwsCastle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@

<script>
import { RoughEase, Power0 } from 'gsap'
import { LOOP_EASE_IN_OUT, LOOP } from '@/constants'
import { getNodes } from '@/utils'
import { LOOP_EASE_IN_OUT } from '@/constants'
import { character } from '../character.mixin'
import { LOOP } from '../../../constants'
export default {
name: 'HolwsCastleCharacter',
Expand Down Expand Up @@ -264,6 +263,7 @@ export default {
width: 596px;
height: 420px;
}
.top-top {
top: 0;
left: 0;
Expand All @@ -272,6 +272,7 @@ export default {
@include pieces-img;
background-position: 0 0;
}
.top-tower {
top: -58px;
left: 102px;
Expand All @@ -280,6 +281,7 @@ export default {
@include pieces-img;
background-position: -596px 0;
}
.top-clothes {
top: 36px;
left: 500px;
Expand All @@ -303,6 +305,7 @@ export default {
height: 54px;
background: url('./assets/bucket.png') 0 0;
}
.mouth {
.back-lip {
top: 550px;
Expand All @@ -312,6 +315,7 @@ export default {
@include pieces-img;
background-position: 0 -563px;
}
.front-lip {
top: 551px;
left: 72px;
Expand All @@ -330,6 +334,7 @@ export default {
@include pieces-img;
background-position: -727px -140px;
}
.r-leg {
top: 668px;
left: 462px;
Expand All @@ -338,6 +343,7 @@ export default {
@include pieces-img;
background-position: -300px -563px;
}
.l-arm {
top: 697px;
left: 191px;
Expand All @@ -346,6 +352,7 @@ export default {
@include pieces-img;
background-position: -388px -420px;
}
.body {
top: 0;
left: 0;
Expand All @@ -354,19 +361,22 @@ export default {
background: url('./assets/body.png') no-repeat 0 0;
background-size: 100% 100%;
}
.fans {
top: 0;
left: 0;
z-index: -1;
width: 100%;
height: 100%;
.fan2 {
width: 100%;
height: 100%;
background: url('./assets/fan-2.png') 0 0 no-repeat;
background-size: 2199px 824px;
animation: fan1 0.3s steps(3) infinite;
}
.fan1 {
width: 100%;
height: 100%;
Expand All @@ -380,6 +390,7 @@ export default {
}
}
}
.fix-tail {
top: 0;
left: 0;
Expand All @@ -395,6 +406,7 @@ export default {
left: 0;
width: 100%;
height: 100%;
.r-arm {
top: 643px;
left: 254px;
Expand All @@ -403,6 +415,7 @@ export default {
@include pieces-img;
background-position: 0 -420px;
}
.fix-shoulder {
top: 0;
left: 0;
Expand All @@ -420,11 +433,13 @@ export default {
height: 53px;
background: url('./assets/ear.png') 0 0;
}
.lower-foliage {
top: 0;
left: 0;
width: 100%;
height: 100%;
.foliage2 {
top: 360px;
left: 244px;
Expand All @@ -433,6 +448,7 @@ export default {
@include pieces-img;
background-position: -727px -250px;
}
.foliage1 {
top: 417px;
left: 307px;
Expand All @@ -441,6 +457,7 @@ export default {
@include pieces-img;
background-position: -727px -349px;
}
.fix-balcony {
top: 0;
left: 0;
Expand All @@ -466,11 +483,13 @@ export default {
}
}
}
.higher-foliage {
top: 0;
left: 0;
width: 100%;
height: 100%;
.foliage3 {
top: 183px;
left: 290px;
Expand All @@ -479,6 +498,7 @@ export default {
@include pieces-img;
background-position: -727px 0;
}
.foliage2 {
top: 239px;
left: 357px;
Expand All @@ -487,6 +507,7 @@ export default {
@include pieces-img;
background-position: -177px -420px;
}
.foliage1 {
top: 320px;
left: 438px;
Expand All @@ -495,6 +516,7 @@ export default {
@include pieces-img;
background-position: -727px -411px;
}
.fix-roof {
top: 0;
left: 0;
Expand Down
Loading

0 comments on commit abfff79

Please sign in to comment.