Skip to content

Commit

Permalink
chore: added welcome pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Sep 18, 2024
1 parent 5e151b9 commit e3f6842
Show file tree
Hide file tree
Showing 4 changed files with 188 additions and 0 deletions.
46 changes: 46 additions & 0 deletions src/routes/[network]/(account)/welcome/anchor/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<script lang="ts">
import { getContext } from 'svelte';
import Pageheader from '$lib/components/pageheader.svelte';
import Stack from '$lib/components/layout/stack.svelte';
import Button from '$lib/components/button/button.svelte';
import type { UnicoveContext } from '$lib/state/client.svelte';
const context = getContext<UnicoveContext>('state');
function loginWithAnchor() {
context.wharf.login({ walletPlugin: 'anchor' });
}
</script>

<Stack>
<Pageheader title="Welcome to Anchor" subtitle="Your account is ready to use" />

<div class="container mx-auto p-4">
<p class="mb-6">
Congratulations! Your Anchor account is now set up and ready to go. You're all set to start
exploring the world of blockchain and decentralized applications.
</p>

<h2 class="mb-4 text-xl font-semibold">What's Next?</h2>
<ul class="mb-6 list-disc space-y-2 pl-5">
<li>Use your Anchor wallet to manage your digital assets</li>
<li>Interact with decentralized applications (dApps)</li>
<li>Participate in blockchain governance</li>
<li>Explore the features of your new Anchor account</li>
</ul>

<p class="mb-6">To get started, simply log in to your Anchor account using the button below.</p>

<Button on:click={loginWithAnchor}>Log In to Anchor</Button>

<div class="mt-8">
<h2 class="mb-4 text-xl font-semibold">Need Help?</h2>
<p>
If you have any questions or need assistance, don't hesitate to check out our <a
href="/support"
class="text-blue-500 hover:underline">support page</a
> or reach out to our community forums.
</p>
</div>
</div>
</Stack>
48 changes: 48 additions & 0 deletions src/routes/[network]/(account)/welcome/metamask/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<script lang="ts">
import { getContext } from 'svelte';
import Pageheader from '$lib/components/pageheader.svelte';
import Stack from '$lib/components/layout/stack.svelte';
import Button from '$lib/components/button/button.svelte';
import type { UnicoveContext } from '$lib/state/client.svelte';
const context = getContext<UnicoveContext>('state');
function loginWithMetaMask() {
context.wharf.login({ walletPlugin: 'metamask' });
}
</script>

<Stack>
<Pageheader title="Welcome to MetaMask" subtitle="Your account is ready to use" />

<div class="container mx-auto p-4">
<p class="mb-6">
Congratulations! Your MetaMask account is now set up and ready to go. You're all set to start
exploring the world of blockchain and decentralized applications.
</p>

<h2 class="mb-4 text-xl font-semibold">What's Next?</h2>
<ul class="mb-6 list-disc space-y-2 pl-5">
<li>Use your MetaMask wallet to manage your digital assets</li>
<li>Interact with decentralized applications (dApps)</li>
<li>Participate in blockchain governance</li>
<li>Explore the features of your new MetaMask account</li>
</ul>

<p class="mb-6">
To get started, simply log in to your MetaMask account using the button below.
</p>

<Button on:click={loginWithMetaMask}>Log In to MetaMask</Button>

<div class="mt-8">
<h2 class="mb-4 text-xl font-semibold">Need Help?</h2>
<p>
If you have any questions or need assistance, don't hesitate to check out our <a
href="/support"
class="text-blue-500 hover:underline">support page</a
> or reach out to our community forums.
</p>
</div>
</div>
</Stack>
48 changes: 48 additions & 0 deletions src/routes/[network]/(account)/welcome/tokenpocket/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<script lang="ts">
import { getContext } from 'svelte';
import Pageheader from '$lib/components/pageheader.svelte';
import Stack from '$lib/components/layout/stack.svelte';
import Button from '$lib/components/button/button.svelte';
import type { UnicoveContext } from '$lib/state/client.svelte';
const context = getContext<UnicoveContext>('state');
function loginWithTokenPocket() {
context.wharf.login({ walletPlugin: 'tokenpocket' });
}
</script>

<Stack>
<Pageheader title="Welcome to TokenPocket" subtitle="Your account is ready to use" />

<div class="container mx-auto p-4">
<p class="mb-6">
Congratulations! Your TokenPocket account is now set up and ready to go. You're all set to
start exploring the world of blockchain and decentralized applications.
</p>

<h2 class="mb-4 text-xl font-semibold">What's Next?</h2>
<ul class="mb-6 list-disc space-y-2 pl-5">
<li>Use your TokenPocket wallet to manage your digital assets</li>
<li>Interact with decentralized applications (dApps)</li>
<li>Participate in blockchain governance</li>
<li>Explore the features of your new TokenPocket account</li>
</ul>

<p class="mb-6">
To get started, simply log in to your TokenPocket account using the button below.
</p>

<Button on:click={loginWithTokenPocket}>Log In to TokenPocket</Button>

<div class="mt-8">
<h2 class="mb-4 text-xl font-semibold">Need Help?</h2>
<p>
If you have any questions or need assistance, don't hesitate to check out our <a
href="/support"
class="text-blue-500 hover:underline">support page</a
> or reach out to our community forums.
</p>
</div>
</div>
</Stack>
46 changes: 46 additions & 0 deletions src/routes/[network]/(account)/welcome/wombat/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<script lang="ts">
import { getContext } from 'svelte';
import Pageheader from '$lib/components/pageheader.svelte';
import Stack from '$lib/components/layout/stack.svelte';
import Button from '$lib/components/button/button.svelte';
import type { UnicoveContext } from '$lib/state/client.svelte';
const context = getContext<UnicoveContext>('state');
function loginWithWombat() {
context.wharf.login({ walletPlugin: 'wombat' });
}
</script>

<Stack>
<Pageheader title="Welcome to Wombat" subtitle="Your account is ready to use" />

<div class="container mx-auto p-4">
<p class="mb-6">
Congratulations! Your Wombat account is now set up and ready to go. You're all set to start
exploring the world of blockchain and decentralized applications.
</p>

<h2 class="mb-4 text-xl font-semibold">What's Next?</h2>
<ul class="mb-6 list-disc space-y-2 pl-5">
<li>Use your Wombat wallet to manage your digital assets</li>
<li>Interact with decentralized applications (dApps)</li>
<li>Participate in blockchain governance</li>
<li>Explore the features of your new Wombat account</li>
</ul>

<p class="mb-6">To get started, simply log in to your Wombat account using the button below.</p>

<Button on:click={loginWithWombat}>Log In to Wombat</Button>

<div class="mt-8">
<h2 class="mb-4 text-xl font-semibold">Need Help?</h2>
<p>
If you have any questions or need assistance, don't hesitate to check out our <a
href="/support"
class="text-blue-500 hover:underline">support page</a
> or reach out to our community forums.
</p>
</div>
</div>
</Stack>

0 comments on commit e3f6842

Please sign in to comment.