-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/DLC-link/dlc-btc-website int…
…o feat/about-page
- Loading branch information
Showing
41 changed files
with
446 additions
and
214 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
7 changes: 5 additions & 2 deletions
7
src/app/components/company-website-button/company-website-button.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
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
10 changes: 10 additions & 0 deletions
10
src/app/components/mint-unmint/components/landing-page/components/landing-page.layout.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,10 @@ | ||
import { VStack } from '@chakra-ui/react'; | ||
import { HasChildren } from '@models/has-children'; | ||
|
||
export function LandingPageLayout({ children }: HasChildren): React.JSX.Element { | ||
return ( | ||
<VStack w={'65%'} spacing={'0px'}> | ||
{children} | ||
</VStack> | ||
); | ||
} |
File renamed without changes.
29 changes: 29 additions & 0 deletions
29
...nts/mint-unmint/components/landing-page/components/setup-information/setup-informatio.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,29 @@ | ||
import { Stack, Text, VStack } from '@chakra-ui/react'; | ||
|
||
import { SetupInformationWalletRequirement } from './components/setup-information-wallet-requirement'; | ||
|
||
export function SetupInformation(): React.JSX.Element { | ||
return ( | ||
<Stack w={'50%'} align={'center'}> | ||
<VStack align={'start'} spacing={'25px'}> | ||
<Text color={'white'} fontSize={'lg'} fontWeight={600}> | ||
What you will need: | ||
</Text> | ||
<SetupInformationWalletRequirement | ||
logo={'/images/logos/ethereum-logo.svg'} | ||
color={'accent.cyan.01'} | ||
walletName={'Metamask Wallet'} | ||
requirement={'+ETH (for fee)'} | ||
url={'https://metamask.io/'} | ||
/> | ||
<SetupInformationWalletRequirement | ||
logo={'/images/logos/bitcoin-logo.svg'} | ||
color={'accent.orange.01'} | ||
walletName={'Leather Wallet'} | ||
requirement={'+BTC (for lock)'} | ||
url={'https://leather.io/'} | ||
/> | ||
</VStack> | ||
</Stack> | ||
); | ||
} |
33 changes: 33 additions & 0 deletions
33
src/app/components/mint-unmint/components/landing-page/components/welcome-stack.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,33 @@ | ||
import { useDispatch } from 'react-redux'; | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
import { Button, HStack, Image, Text, VStack } from '@chakra-ui/react'; | ||
import { modalActions } from '@store/slices/modal/modal.actions'; | ||
|
||
export function WelcomeStack(): React.JSX.Element { | ||
const navigate = useNavigate(); | ||
const dispatch = useDispatch(); | ||
|
||
const setupText = 'Ready to\n mint dlcBTC?'; | ||
|
||
function onConnectWalletClick(): void { | ||
dispatch(modalActions.toggleSelectWalletModalVisibility()); | ||
} | ||
|
||
return ( | ||
<HStack spacing={'100px'} align={'start'}> | ||
<VStack alignItems={'start'} spacing={'25px'}> | ||
<Text variant={'welcome'} alignContent={'start'}> | ||
{setupText} | ||
</Text> | ||
<Text variant={'navigate'} onClick={() => navigate('/how-it-works')}> | ||
How it works? | ||
</Text> | ||
<Button variant={'account'} onClick={onConnectWalletClick}> | ||
Connect Wallet | ||
</Button> | ||
</VStack> | ||
<Image src={'/images/dlc-btc-mint-visualization.png'} h={'295px'} /> | ||
</HStack> | ||
); | ||
} |
22 changes: 22 additions & 0 deletions
22
src/app/components/mint-unmint/components/landing-page/landing-page.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,22 @@ | ||
import React from 'react'; | ||
|
||
import { Divider, HStack } from '@chakra-ui/react'; | ||
|
||
import { ProtocolSummaryStack } from '../protocol-summary-stack/protocol-summary-stack'; | ||
import { LandingPageLayout } from './components/landing-page.layout'; | ||
import { SetupInformation } from './components/setup-information/setup-informatio'; | ||
import { WelcomeStack } from './components/welcome-stack'; | ||
|
||
export function LandingPage(): React.JSX.Element { | ||
return ( | ||
<LandingPageLayout> | ||
<WelcomeStack /> | ||
<Divider orientation={'horizontal'} h={'35px'} variant={'thick'} /> | ||
<HStack w={'100%'} align={'start'} pt={'50px'}> | ||
<SetupInformation /> | ||
<Divider orientation={'vertical'} w={'35px'} h={'205px'} variant={'thick'} /> | ||
<ProtocolSummaryStack /> | ||
</HStack> | ||
</LandingPageLayout> | ||
); | ||
} |
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
10 changes: 0 additions & 10 deletions
10
...t-unmint/components/setup-information-stack/components/setup-information-stack.layout.tsx
This file was deleted.
Oops, something went wrong.
60 changes: 0 additions & 60 deletions
60
...app/components/mint-unmint/components/setup-information-stack/setup-information-stack.tsx
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.