Skip to content

Commit 6b34b1e

Browse files
committed
Update
1 parent abdf646 commit 6b34b1e

File tree

4 files changed

+48
-14
lines changed

4 files changed

+48
-14
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "enab",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"description": "Enab System",
55
"main": "./dist/main/index.js",
66
"scripts": {

src/renderer/assets/scss/style.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ body{
99
// background: linear-gradient(45deg, #4d20d4 30%, #20d4a7 100%) !important;
1010

1111

12-
background: #4776E6; /* fallback for old browsers */
12+
background-color: #4776E6; /* fallback for old browsers */
1313

1414
// background: -webkit-linear-gradient(to right, #5688ff, #4776E6); /* Chrome 10-25, Safari 5.1-6 */
1515
// background: linear-gradient(to right, #5688ff, #4776E6); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
@@ -31,6 +31,7 @@ body{
3131
max-height: calc(100vh - 6rem) !important;
3232
border-radius: $border-radius-lg !important;
3333
padding: $spacer * 1.75;
34+
3435
}
3536

3637

src/renderer/components/supermarket/Navbar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div>
3-
<div class="position-absolute" style="top: 0px; left: 0%; width: 100%;z-index:1">
3+
<div class="position-absolute" style="top: 0%; left: 0%; width: 100%;z-index:1">
44
<div class="navbar p-2">
55
<div class="row w-100">
66
<div class="col-6 d-flex align-items-center">

src/renderer/layouts/supermarket.vue

Lines changed: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<CThemeProvider>
33
<CReset />
44
<div class="main-container">
5+
<div class="bg" />
56
<SupermarketNavbar />
67
<client-only>
78
<UtilitiesKeyup @keyup="keyboardEvent"></UtilitiesKeyup>
@@ -15,11 +16,11 @@
1516
</template>
1617

1718
<script>
18-
import { CThemeProvider, CReset } from '@chakra-ui/vue'
19+
import { CThemeProvider, CReset } from "@chakra-ui/vue";
1920
import { mapMutations, mapGetters, mapActions, mapState } from "vuex";
2021
2122
export 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

Comments
 (0)