-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1311 from near/develop
2x weekly promotion of develop to main
- Loading branch information
Showing
46 changed files
with
5,816 additions
and
2,679 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
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export { default as binance } from './binance.webp'; | ||
export { default as bitget } from './bitget.webp'; | ||
export { default as bitte } from './bitte.svg'; | ||
export { default as here } from './here.svg'; | ||
export { default as ledger } from './ledger.webp'; | ||
export { default as metamask } from './metamask.webp'; | ||
export { default as meteor } from './meteor.png'; | ||
export { default as myNear } from './myNear.png'; | ||
export { default as safePal } from './safePal.webp'; | ||
export { default as sender } from './sender.png'; | ||
export { default as trustWallet } from './trustWallet.webp'; | ||
export { default as uniswap } from './uniswap.webp'; |
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Button as Btn } from '@near-pagoda/ui'; | ||
import styled from 'styled-components'; | ||
|
||
export const Button = styled(Btn)` | ||
&[data-variant='primary'][data-fill='solid']:hover { | ||
--button-color-background: var(--violet8); | ||
} | ||
&[data-variant='primary'][data-fill='solid'] { | ||
--button-color-background: var(--violet9); | ||
--button-color-border: var(--sand12); | ||
--button-color-text: var(--bs-body-bg); | ||
--button-color-icon: var(--bs-body-bg); | ||
border: 0; | ||
} | ||
`; | ||
|
||
export const BigButton = styled(Button)` | ||
&[data-variant='primary'][data-fill='solid'] { | ||
--button-color-background: var(--violet9); | ||
--button-color-border: var(--sand12); | ||
--button-color-text: var(--bs-body-bg); | ||
--button-color-icon: var(--bs-body-bg); | ||
border: 0; | ||
height: 3rem; | ||
border-radius: 0.8rem; | ||
} | ||
`; |
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,104 @@ | ||
import { Flex, Grid, Text } from '@near-pagoda/ui'; | ||
import { BookOpenText, GasPump, Signature, UserCheck } from '@phosphor-icons/react'; | ||
|
||
import useDeviceType from '@/hooks/useDeviceType'; | ||
|
||
import { Button } from '../Button'; | ||
|
||
export const ChainAbstraction = () => { | ||
const deviceType = useDeviceType(); | ||
|
||
return ( | ||
<> | ||
<Flex | ||
stack | ||
gap="l" | ||
gapPhone="xl" | ||
gapTablet="xl" | ||
style={{ padding: '0.5rem', flexGrow: 1, justifyContent: 'space-between' }} | ||
> | ||
<Grid | ||
columns="542px minmax(0, 1fr)" | ||
gap="2xl" | ||
gapPhone="m" | ||
gapTablet="m" | ||
columnsTablet="minmax(0, 1fr)" | ||
columnsPhone="minmax(0, 1fr)" | ||
> | ||
<Flex stack gap="m"> | ||
<Text as="h1" style={{ fontWeight: 'normal' }}> | ||
{' '} | ||
The Account Model Built for Abstraction{' '} | ||
</Text> | ||
<Text size="text-l" style={{ fontWeight: 'lighter' }}> | ||
Built-in named accounts, a rich key system, and contracts that are wallets | ||
</Text> | ||
</Flex> | ||
<Flex stack gap="m" style={{ justifyContent: 'center', textAlign: 'center' }}> | ||
<UserCheck fill="var(--green11)" size="s" style={{ height: '95px' }} /> | ||
<Button | ||
iconLeft={<BookOpenText fill="bold" />} | ||
href="/documentation/concepts/protocol/account-model" | ||
label="Read on Account Model" | ||
/> | ||
</Flex> | ||
</Grid> | ||
|
||
<Grid | ||
columns="minmax(0, 1fr) 542px" | ||
gap="2xl" | ||
gapPhone="m" | ||
gapTablet="m" | ||
columnsTablet="minmax(0, 1fr)" | ||
columnsPhone="minmax(0, 1fr)" | ||
style={{ margin: deviceType != 'desktop' ? '24px 0' : '0' }} | ||
> | ||
<Flex stack gap="m" style={{ justifyContent: 'center', gridRowEnd: deviceType == 'desktop' ? 'auto' : '3' }}> | ||
<GasPump fill="var(--red9)" size="s" style={{ height: '95px' }} /> | ||
<Button | ||
iconLeft={<BookOpenText fill="bold" />} | ||
href="/documentation/concepts/abstraction/relayers" | ||
label="Discover Gas Relayers" | ||
/> | ||
</Flex> | ||
<Flex stack gap="m" justify="space-between"> | ||
<Text as="h1" style={{ fontWeight: 'normal' }}> | ||
Easily Cover your Users' Transactions | ||
</Text> | ||
<Text size="text-l" style={{ fontWeight: 'lighter' }}> | ||
Built-in meta-transactions enable your users to enjoy your application, without handling funds | ||
</Text> | ||
</Flex> | ||
</Grid> | ||
|
||
<Grid | ||
columns="542px minmax(0, 1fr)" | ||
gap="2xl" | ||
gapPhone="m" | ||
gapTablet="m" | ||
columnsTablet="minmax(0, 1fr)" | ||
columnsPhone="minmax(0, 1fr)" | ||
> | ||
<Flex stack gap="m" style={{ textAlign: 'left' }}> | ||
<Text as="h1" style={{ fontWeight: 'normal' }}> | ||
{' '} | ||
Control Accounts Across Multiple Chains{' '} | ||
</Text> | ||
<Text size="text-l" style={{ fontWeight: 'lighter' }}> | ||
Near accounts can sign transactions for chains like Ethereum, Bitcoin or Doge | ||
</Text> | ||
</Flex> | ||
<Flex stack gap="m" style={{ justifyContent: 'center', textAlign: 'center' }}> | ||
<Signature fill="var(--violet8)" size="s" style={{ height: '95px' }} /> | ||
|
||
<Button | ||
iconLeft={<BookOpenText fill="bold" />} | ||
href="/documentation/build/chain-abstraction/chain-signatures/getting-started" | ||
label="Discover Chain Signatures" | ||
/> | ||
</Flex> | ||
</Grid> | ||
</Flex> | ||
</> | ||
); | ||
}; |
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,38 @@ | ||
import React from 'react'; | ||
import { CodeBlock } from 'react-code-block/dist/code-block'; | ||
import styled from 'styled-components'; | ||
|
||
const CodeWrapper = styled.div<{ | ||
height?: number; | ||
}>` | ||
background-color: rgb(41, 45, 62); | ||
padding: 1rem; | ||
border-radius: 0.4rem; | ||
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); | ||
position: relative; | ||
max-height: ${({ height }) => (height ? `${height}px` : 'none')}; | ||
overflow-y: auto; | ||
overflow-x: hidden; | ||
`; | ||
|
||
const LineContent = styled(CodeBlock.LineContent)` | ||
padding: 2px 0 2px 8px; | ||
&:hover { | ||
border-radius: 4px; | ||
background-color: rgba(255, 255, 255, 0.1); | ||
} | ||
`; | ||
|
||
export const Code = ({ height, code, language }: { height?: number; code: string; language: string }) => { | ||
return ( | ||
<CodeBlock code={code} language={language}> | ||
<CodeWrapper height={height}> | ||
<CodeBlock.Code style={{ marginBottom: 0, overflowX: 'auto' }}> | ||
<LineContent> | ||
<CodeBlock.Token /> | ||
</LineContent> | ||
</CodeBlock.Code> | ||
</CodeWrapper> | ||
</CodeBlock> | ||
); | ||
}; |
Oops, something went wrong.