blood splash

This commit is contained in:
EmberSpirit
2023-10-16 13:52:19 +02:00
parent 35f2f0782f
commit b3191f493b
2 changed files with 8 additions and 1 deletions
+5 -1
View File
@@ -13,11 +13,12 @@ import { useCycleStore } from "@/stores/cycles";
import SlideoutPanel from "./components/SlideoutPanel.vue"; import SlideoutPanel from "./components/SlideoutPanel.vue";
import ConnectWallet from "./components/ConnectWallet.vue"; import ConnectWallet from "./components/ConnectWallet.vue";
import BloodSplash from "./components/BloodSplash.vue";
import { getNetwork, fetchTransaction } from "@wagmi/core"; import { getNetwork, fetchTransaction } from "@wagmi/core";
const isMobile = ref(false); const isMobile = ref(false);
const showPanel = ref(false); const showPanel = ref(false);
const splashBlood = ref(0);
const router = useRouter(); const router = useRouter();
const route = useRoute(); const route = useRoute();
@@ -58,6 +59,7 @@ function changeRoute(name) {
} }
provide("isMobile", isMobile); provide("isMobile", isMobile);
provide("showPanel", showPanel); provide("showPanel", showPanel);
provide("splashBlood", splashBlood);
onMounted(async () => { onMounted(async () => {
window.addEventListener("resize", handleWindowSizeChange); window.addEventListener("resize", handleWindowSizeChange);
@@ -88,6 +90,8 @@ onMounted(async () => {
<div class="main" :class="{ 'no-scroll': showPanel, mobile: isMobile }"> <div class="main" :class="{ 'no-scroll': showPanel, mobile: isMobile }">
<RouterView /> <RouterView />
</div> </div>
<blood-splash :key="splashBlood"></blood-splash>
<div class="footer"> <div class="footer">
<div class="footer-inner"> <div class="footer-inner">
<div class="footer-headline">Join Bloodline</div> <div class="footer-headline">Join Bloodline</div>
+3
View File
@@ -1,6 +1,7 @@
<template> <template>
<div class="sacrifice-wrapper card card--glow bloodline-wrapper"> <div class="sacrifice-wrapper card card--glow bloodline-wrapper">
<div class="sacrifice-headline">Select Sacrifice</div> <div class="sacrifice-headline">Select Sacrifice</div>
<button @click="splashBlood++">splash</button>
<div class="sacrifice-select-tokens"> <div class="sacrifice-select-tokens">
<div class="sacrifice-tokens"> <div class="sacrifice-tokens">
<div <div
@@ -186,6 +187,7 @@ import { debounce, formatNumber } from "@/helper/helper.js";
const isMobile = inject("isMobile"); const isMobile = inject("isMobile");
const showPanel = inject("showPanel"); const showPanel = inject("showPanel");
const splashBlood = inject("splashBlood");
const walletStore = useWalletStoreV2(); const walletStore = useWalletStoreV2();
@@ -201,6 +203,7 @@ const stakingOutput = ref(null);
const blockEvent = ref(null); const blockEvent = ref(null);
const approveToast = ref(null); const approveToast = ref(null);
const addOperator = ref(true); const addOperator = ref(true);
const splashesUsed = ref([]);
/** /**
* state 0 enter amount * state 0 enter amount
* state 1 rdy to go * state 1 rdy to go