forked from JackHamer09/zksync-plus
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add footer, faucet, and other changes
- Loading branch information
1 parent
6688515
commit c6e52fa
Showing
10 changed files
with
96 additions
and
9 deletions.
There are no files selected for viewing
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,43 @@ | ||
<template> | ||
<footer class="footer"> | ||
<div> | ||
<CommonButtonLabel v-if="!isCorrectNetworkSet && connectorName !== 'WalletConnect'" @click="addNetworkToWallet()"> | ||
Add {{ eraNetwork.name }} to your wallet | ||
</CommonButtonLabel> | ||
</div> | ||
<div class="links-container"> | ||
<CommonButtonLabel as="a" href="https://zksync.io/terms" target="_blank" class="footer-link"> | ||
Terms of Service | ||
</CommonButtonLabel> | ||
<CommonButtonLabel as="a" href="https://zksync.io/privacy" target="_blank" class="footer-link"> | ||
Privacy Policy | ||
</CommonButtonLabel> | ||
</div> | ||
</footer> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { storeToRefs } from "pinia"; | ||
import { useOnboardStore } from "@/store/onboard"; | ||
import { useZkSyncProviderStore } from "@/store/zksync/provider"; | ||
import { useZkSyncWalletStore } from "@/store/zksync/wallet"; | ||
const eraWalletStore = useZkSyncWalletStore(); | ||
const { isCorrectNetworkSet } = storeToRefs(eraWalletStore); | ||
const { connectorName } = storeToRefs(useOnboardStore()); | ||
const { eraNetwork } = storeToRefs(useZkSyncProviderStore()); | ||
const addNetworkToWallet = async () => { | ||
await eraWalletStore.setCorrectNetwork(); | ||
}; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.footer { | ||
@apply flex flex-col items-center justify-between gap-x-8 gap-y-4 px-4 py-8 sm:flex-row; | ||
.links-container { | ||
@apply flex w-max flex-wrap items-center justify-center gap-x-8 gap-y-4 whitespace-nowrap; | ||
} | ||
} | ||
</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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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