File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 8
8
<router-view :theme =" appTheme" />
9
9
</transition >
10
10
11
+ <back-to-top
12
+ visibleoffset =" 500"
13
+ right =" 40px"
14
+ bottom =" 40px"
15
+ class =" shadow-lg"
16
+ >
17
+ <i data-feather =" arrow-up" ></i >
18
+ </back-to-top >
19
+
11
20
<!-- App footer -->
12
21
<Footer ></Footer >
13
22
</div >
@@ -45,6 +54,13 @@ export default {
45
54
text-align : center ;
46
55
}
47
56
57
+ .vue-back-to-top {
58
+ @apply p- 2 sm :p-4 bg-indigo-500 hover:bg-indigo-600 text-white;
59
+ border-radius : 50% ;
60
+ font-size : 22px ;
61
+ line-height : 22px ;
62
+ }
63
+
48
64
.fade-enter-active {
49
65
animation : coming 0.4s ;
50
66
animation-delay : 0.2s ;
Original file line number Diff line number Diff line change @@ -3,12 +3,14 @@ import App from './App.vue';
3
3
import router from './router' ;
4
4
import './assets/css/tailwind.css' ;
5
5
import './assets/css/app.css' ;
6
+ import BackToTop from 'vue-backtotop' ;
6
7
7
8
const feather = require ( 'feather-icons' ) ;
8
9
feather . replace ( ) ;
9
10
10
11
createApp ( App )
11
12
. use ( router )
13
+ . use ( BackToTop )
12
14
. mount ( '#app' ) ;
13
15
14
16
const appTheme = localStorage . getItem ( 'theme' ) ;
You can’t perform that action at this time.
0 commit comments