Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: onboarding screen #54

Merged
merged 20 commits into from
Feb 9, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Settings from './Settings'
import Navbar from './Navbar'
import { useCurrentWallet, useSetCurrentWallet, useSetCurrentWalletInfo } from '../context/WalletContext'
import { getSession, setSession, clearSession } from '../session'
import Onboarding from './Onboarding'

export default function App() {
const currentWallet = useCurrentWallet()
Expand Down
42 changes: 42 additions & 0 deletions src/components/Onboarding.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import logo from '../assets/logo.png'
import * as rb from 'react-bootstrap'
import React, { useState } from 'react'

export default function Onboarding() {
const [step, setStep] = useState(0)

if (step === 0) {
return (
<div class="mx-auto my-auto">
<div class="d-flex justify-content-center">
<img src={logo} alt="logo" class="mb-4" width="200rem" />
dergigi marked this conversation as resolved.
Show resolved Hide resolved
</div>
<h1 class="text-center">JoinMarket</h1>
<p class="text-center fs-4 text-secondary mb-5">Top-notch privacy for your bitcoin.</p>
<div class="d-flex justify-content-center">
<rb.Button variant="dark" onClick={() => setStep(1)}>
Get started
</rb.Button>
</div>
<p class="mt-4 text-center">
Your wallet, your coins. <br />
100% open-source & open-design.
</p>
</div>
)
} else if (step === 1) {
return (
<div class="mx-auto my-auto">
<p class="fs-3 text-center">Intro copy</p>
<p class="text-center text-secondary mb-5">
Explainer what this app does for the user, core concepts, features...
</p>
<div class="d-flex justify-content-center">
<rb.Button variant="dark" onClick={() => setStep(0)}>
Continue
</rb.Button>
</div>
</div>
)
}
}