-
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.
- Loading branch information
Showing
7 changed files
with
94 additions
and
8 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template lang="pug"> | ||
div#placeholder | ||
p( | ||
v-for="value in 100" | ||
:key="value" | ||
) {{ textLoop.text }} | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'placeholder', | ||
data () { | ||
return { | ||
textLoop: { | ||
text: 'Watch the top of the page while scrolling!', | ||
} | ||
} | ||
}, | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
#placeholder { | ||
margin: $grid32x 0; | ||
text-align: center; | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<template lang="pug"> | ||
div#top( | ||
v-scroll-to="{el: 'body', duration: 0}" | ||
) | ||
button.topbtn__btn( | ||
) {{ tooltip }} | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'topBtn', | ||
data () { | ||
return { | ||
tooltip: 'Top', | ||
} | ||
}, | ||
methods: { | ||
}, | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
#top { | ||
margin-bottom: $grid32x; | ||
.topbtn__btn { | ||
border: none; | ||
outline: none; | ||
color: $brand; | ||
display: block; | ||
margin: 0 auto; | ||
cursor: pointer; | ||
width: $grid32x; | ||
height: $grid12x; | ||
font-weight: 900; | ||
margin-top: $grid16x; | ||
border: $brand 1px solid; | ||
background-color: #fff; | ||
transition: all .25s ease; | ||
@include border-radius($grid32x); | ||
&:hover { | ||
color: #fff; | ||
background-color: $brand; | ||
} | ||
} | ||
} | ||
</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