Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | 2x 2x 2x 2x 2x 2x 4x 4x 4x 2x 2x 2x | // @flow
/* eslint-disable no-ternary */
import styled, { type StyledComponent } from "styled-components"
import Paragraph from "components/Typography/Paragraph"
import type { Theme } from "@bluframe/blublocks"
import colors from "styles/colors"
export const Content: StyledComponent<void, Theme, HTMLDivElement> = styled.div`
display: grid;
justify-items: center;
row-gap: 16px;
`
export const Buttons: StyledComponent<void, Theme, HTMLDivElement> = styled.div`
column-gap: 16px;
display: grid;
grid-template-columns: 1fr 1fr;
`
export const Message: StyledComponent<void, Theme, typeof Paragraph> = styled(
Paragraph
)`
margin: 0;
text-align: center;
`
export const UploadArea: StyledComponent<
void,
Theme,
HTMLDivElement
> = styled.div`
align-items: center;
border: 2px dashed ${colors.wildSand};
cursor: pointer;
display: grid;
justify-items: center;
margin: 20px 0;
padding: 16px;
row-gap: 16px;
text-align: center;
`
export const FileInput: StyledComponent<
void,
Theme,
HTMLInputElement
> = styled.input`
display: none;
`
export const FileInputLabel: StyledComponent<
{ disabled: boolean },
Theme,
HTMLLabelElement
> = styled.label`
background: ${({ disabled, theme }: { disabled: boolean, theme: Theme }) =>
disabled ? theme.palette.disabled.main : theme.palette.primary.main};
color: ${({ theme }: { theme: Theme }) => theme.palette.primary.contrast};
cursor: ${({ disabled }: { disabled: boolean }) =>
disabled ? "not-allowed" : "pointer"};
font-size: 16px;
padding: 8px 16px;
`
export const Messages: StyledComponent<
void,
Theme,
HTMLDivElement
> = styled.div`
display: grid;
row-gap: 6px;
`
export const AdditionalMessage: StyledComponent<
void,
Theme,
typeof Paragraph
> = styled(Paragraph)`
color: ${({ theme }: { theme: Theme }) => theme.palette.subtitle.main};
font-size: 14px;
margin: 0;
`
export const ErrorMessage: StyledComponent<
void,
Theme,
typeof Paragraph
> = styled(Paragraph)`
color: ${({ theme }: { theme: Theme }) => theme.palette.error.main};
font-size: 14px;
margin: 0;
`
|