-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: Modal styling * fix: Modal size, Closes blockstack-app/issues/82 * fix: Retune vertical rhythm * fix: CheckList padding * fix: Icon alignment * fix: Use blue footer links in modal * fix: Fix sign in page header, Fixes leather-io/extension#79 * refactor: Remove all use of <Stack>, avoid implicit margins * fix: <Intro> component. Fixes leather-io/extension#73 * fix: Fixes leather-io/extension#84 * fix: How it works page * fix: Remove Stack component from <Screen/>
- Loading branch information
1 parent
1271875
commit e2cdda5
Showing
14 changed files
with
116 additions
and
105 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from 'react'; | ||
|
||
export const CheckmarkIcon = ({ size = 72 }: { size?: number }) => ( | ||
<svg xmlns="http://www.w3.org/2000/svg" width={size} height={size} fill="none" viewBox="0 0 72 72"> | ||
<circle cx="36" cy="36" r="34.5" fill="#fff" stroke="#00A73E" strokeWidth="3"></circle> | ||
<path stroke="#00A73E" strokeLinecap="round" strokeLinejoin="round" strokeWidth="3" d="M21 37l10 10 20-22"></path> | ||
</svg> | ||
); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
import React from 'react'; | ||
|
||
import { Stack, BoxProps } from '@blockstack/ui'; | ||
import { Flex, FlexProps } from '@blockstack/ui'; | ||
import { Title, Body, Pretitle } from '../typography'; | ||
|
||
export interface ScreenBodyProps extends BoxProps { | ||
export interface ScreenBodyProps extends FlexProps { | ||
title?: string; | ||
pretitle?: string | React.ElementType; | ||
body?: (string | JSX.Element)[]; | ||
fullWidth?: boolean; | ||
} | ||
|
||
export const ScreenBody = ({ title, body, pretitle, fullWidth, ...rest }: ScreenBodyProps) => ( | ||
<Stack spacing={3} mx={fullWidth ? 0 : 6} {...rest}> | ||
{pretitle && <Pretitle>{pretitle}</Pretitle>} | ||
{title && <Title>{title}</Title>} | ||
{body && ( | ||
<Stack spacing={[3, 4]}> | ||
{body && body.length ? body.map((text, key) => <Body key={key}>{text}</Body>) : body} | ||
</Stack> | ||
)} | ||
</Stack> | ||
); | ||
export const ScreenBody = ({ title, body, pretitle, fullWidth, ...rest }: ScreenBodyProps) => { | ||
return ( | ||
<Flex mx={fullWidth ? 0 : 6} flexDirection="column" {...rest}> | ||
{pretitle && <Pretitle>{pretitle}</Pretitle>} | ||
{title && <Title>{title}</Title>} | ||
{body && body.length ? body.map((text, key) => <Body key={key}>{text}</Body>) : body} | ||
</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
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 |
---|---|---|
@@ -1,41 +1,25 @@ | ||
import React from 'react'; | ||
|
||
import { Stack, BoxProps, StackProps } from '@blockstack/ui'; | ||
import { Flex, FlexProps } from '@blockstack/ui'; | ||
import { ScreenLoader } from './screen-loader'; | ||
|
||
interface ScreenBodyProps extends BoxProps, StackProps { | ||
interface ScreenBodyProps extends FlexProps { | ||
noMinHeight?: boolean; | ||
isLoading?: boolean; | ||
} | ||
|
||
export const Screen: React.FC<ScreenBodyProps> = ({ | ||
isInline, | ||
spacing = 4, | ||
align, | ||
justify, | ||
shouldWrapChildren, | ||
noMinHeight, | ||
isLoading, | ||
children, | ||
...rest | ||
}) => ( | ||
export const Screen: React.FC<ScreenBodyProps> = ({ noMinHeight, isLoading, children, ...rest }) => ( | ||
<> | ||
<ScreenLoader isLoading={isLoading} /> | ||
<Stack | ||
<Flex | ||
width="100%" | ||
flexDirection="column" | ||
letterSpacing="tighter" | ||
minHeight={noMinHeight ? undefined : ['calc(100vh - 57px)', 'unset']} | ||
style={{ pointerEvents: isLoading ? 'none' : 'unset' }} | ||
spacing={spacing} | ||
isInline={isInline} | ||
align={align} | ||
justify={justify} | ||
shouldWrapChildren={shouldWrapChildren} | ||
pb={6} | ||
{...rest} | ||
> | ||
{children} | ||
</Stack> | ||
</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
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.