forked from TrueFiEng/devcon-raffle
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎸 Add Gitcoin flow with first step (#23)
- Loading branch information
1 parent
543c5ba
commit 639b82d
Showing
6 changed files
with
72 additions
and
0 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
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
28 changes: 28 additions & 0 deletions
28
packages/frontend/src/components/userActious/gitcoin/CheckGitcoinPassword.tsx
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,28 @@ | ||
import styled from 'styled-components' | ||
import { FormHeading, FormRow, FormWrapper } from '../../form' | ||
import { Button } from '../../buttons' | ||
import { SeparatorWithText } from '@/components/common/Separator' | ||
|
||
export const CheckGitcoinPassword = () => { | ||
return ( | ||
<ConnectFormWrapper> | ||
<FormHeading>Check GitCoin Passport</FormHeading> | ||
<FormRow> | ||
<span>To place a bid we need to check your score. By verifying your score we checking if you are a human.</span> | ||
</FormRow> | ||
<Button wide>Check Score</Button> | ||
<SeparatorWithText text="Or" /> | ||
<FormRow> | ||
<span> | ||
If you don’t have a <b>GitCoin Passport</b>, please create one. | ||
</span> | ||
</FormRow> | ||
<Button wide>Create a Gitcoin Passport</Button> | ||
</ConnectFormWrapper> | ||
) | ||
} | ||
|
||
const ConnectFormWrapper = styled(FormWrapper)` | ||
justify-content: center; | ||
padding: 0 143px; | ||
` |
21 changes: 21 additions & 0 deletions
21
packages/frontend/src/components/userActious/gitcoin/GitcointFlow.tsx
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,21 @@ | ||
import { useState } from 'react' | ||
import { CheckGitcoinPassword } from './CheckGitcoinPassword' | ||
|
||
enum GitcoinState { | ||
INITIAL_PAGE, | ||
CHECKING_SCORE, | ||
YOU_DONT_HAVE_PASSPORT, | ||
YOUR_SCORE, | ||
} | ||
|
||
export const GitcoinFlow = () => { | ||
const [gitcoinState] = useState<GitcoinState>(GitcoinState.INITIAL_PAGE) | ||
|
||
switch (gitcoinState) { | ||
case GitcoinState.INITIAL_PAGE: | ||
return <CheckGitcoinPassword /> | ||
|
||
default: | ||
return <CheckGitcoinPassword /> | ||
} | ||
} |
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