22 <CThemeProvider >
33 <CReset />
44 <div class =" main-container" >
5+ <div class =" bg" />
56 <SupermarketNavbar />
67 <client-only >
78 <UtilitiesKeyup @keyup =" keyboardEvent" ></UtilitiesKeyup >
1516</template >
1617
1718<script >
18- import { CThemeProvider , CReset } from ' @chakra-ui/vue'
19+ import { CThemeProvider , CReset } from " @chakra-ui/vue" ;
1920import { mapMutations , mapGetters , mapActions , mapState } from " vuex" ;
2021
2122export default {
22- components: {CThemeProvider},
23+ components: { CThemeProvider },
2324
2425 computed: {
2526 showMenu () {
@@ -29,16 +30,18 @@ export default {
2930 backgroundColor: " supermarket/utilities/backgroundColor" ,
3031 }),
3132 },
32- mounted (){
33+ mounted () {
3334 // Recharge Notification
34- this .$echo .channel (" recharge-" + this .$auth .user .id ).listen (" RechargeRequestEvent" , (data ) => {
35- this .$toast ({
36- title: data .message ,
37- status: " info" ,
38- duration: 10000 ,
35+ this .$echo
36+ .channel (" recharge-" + this .$auth .user .id )
37+ .listen (" RechargeRequestEvent" , (data ) => {
38+ this .$toast ({
39+ title: data .message ,
40+ status: " info" ,
41+ duration: 10000 ,
42+ });
43+ this .$auth .fetchUser ();
3944 });
40- this .$auth .fetchUser ();
41- });
4245 },
4346 created () {
4447 this .fetchServices ();
@@ -111,5 +114,35 @@ export default {
111114 </script >
112115
113116<style lang="scss" scoped>
114- //
117+ .bg {
118+ background : #5415e7 ; /* fallback for old browsers */
119+ background : -webkit-linear-gradient (to right , #6A82FB , #5415e7 ); /* Chrome 10-25, Safari 5.1-6 */
120+ background : linear-gradient (to right , #6A82FB , #5415e7 ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
121+
122+
123+
124+
125+ background-size : cover ;
126+ height : 100% ;
127+ width : 100% ;
128+ top : 0 ;
129+ right : 0 ;
130+ position : absolute ;
131+ opacity : 0.4 ;
132+ // filter: blur(25px);
133+ overflow : hidden ;
134+ z-index : -1 ;
135+
136+ background-size : 300% 100% ;
137+ animation : gradient 3s linear infinite ;
138+ animation-direction : alternate ;
139+ }
140+ @keyframes gradient {
141+ 0% {
142+ background-position : 0% ;
143+ }
144+ 100% {
145+ background-position : 100% ;
146+ }
147+ }
115148 </style >
0 commit comments