Download spectrum/src/views/login/style.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 4.02 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/views/login/style.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/views/login/style.js
-
curl -L -o style.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/views/login/style.js
4.02 kB
| // @flow | |
| import theme from 'shared/theme'; | |
| import styled from 'styled-components'; | |
| import { FlexRow, FlexCol, Gradient, zIndex } from 'src/components/globals'; | |
| import { MEDIA_BREAK } from 'src/components/layout'; | |
| export const Title = styled.h1` | |
| color: ${theme.text.default}; | |
| width: 100%; | |
| font-weight: 800; | |
| font-size: 24px; | |
| line-height: 1.25; | |
| margin-bottom: 8px; | |
| padding: 0; | |
| font-size: 24px; | |
| text-align: center; | |
| letter-spacing: 0.2px; | |
| `; | |
| export const LargeTitle = styled(Title)` | |
| font-size: 40px; | |
| font-weight: 900; | |
| letter-spacing: 0.3px; | |
| margin-bottom: 16px; | |
| `; | |
| export const SmallTitle = styled(Title)` | |
| font-size: 18px; | |
| `; | |
| export const MiniTitle = styled(Title)` | |
| font-weight: 700; | |
| font-size: 1rem; | |
| line-height: 1.25; | |
| `; | |
| export const Actions = styled.div` | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| button { | |
| margin: 0 8px; | |
| } | |
| `; | |
| export const Subtitle = styled.h2` | |
| width: 100%; | |
| color: ${theme.text.alt}; | |
| font-weight: 500; | |
| font-size: 16px; | |
| line-height: 1.4; | |
| margin-bottom: 16px; | |
| padding: 0 32px; | |
| text-align: center; | |
| b { | |
| font-weight: 700; | |
| } | |
| a { | |
| color: ${theme.brand.default}; | |
| } | |
| li { | |
| margin-top: 8px; | |
| list-style-type: none; | |
| } | |
| `; | |
| export const LargeSubtitle = styled(Subtitle)` | |
| font-size: 20px; | |
| `; | |
| export const MiniSubtitle = styled(Subtitle)` | |
| font-weight: 600; | |
| color: ${theme.text.alt}; | |
| font-size: 0.875rem; | |
| line-height: 1.4; | |
| `; | |
| export const SmallSubtitle = styled(Subtitle)` | |
| font-size: 15px; | |
| `; | |
| export const Cost = styled(Subtitle)` | |
| margin-top: 8px; | |
| font-weight: bold; | |
| `; | |
| export const NullCol = styled(FlexCol)` | |
| background-image: ${props => | |
| props.bg ? `url('/img/fills/${props.bg}.svg')` : 'none'}; | |
| background-color: transparent; | |
| background-size: 110% auto; | |
| background-repeat: ${props => (props.repeat ? 'repeat-y' : 'no-repeat')}; | |
| background-position: ${props => | |
| props.repeat ? 'center top' : 'center center'}; | |
| width: 100%; | |
| height: auto; | |
| min-height: 160px; | |
| flex: 0 0 auto; | |
| padding: ${props => (props.noPadding ? '0' : '2rem')}; | |
| justify-content: center; | |
| align-items: center; | |
| position: relative; | |
| align-self: center; | |
| `; | |
| export const NullRow = styled(FlexRow)` | |
| background-image: url('/img/fills/${props => | |
| props.bg ? `${props.bg}` : 'locked'}.svg'); | |
| background-color: transparent; | |
| background-size: 110% auto; | |
| background-repeat: no-repeat; | |
| background-attachment: center; | |
| width: 100%; | |
| height: auto; | |
| padding: 1rem 15%; | |
| `; | |
| export const Profile = styled.div` | |
| position: relative; | |
| padding: 16px 0; | |
| img { | |
| border-radius: 48px; | |
| width: 48px; | |
| height: 48px; | |
| } | |
| span { | |
| background-color: ${theme.success.default}; | |
| background-image: ${({ theme }) => | |
| Gradient(theme.success.alt, theme.success.default)}; | |
| position: absolute; | |
| left: 75%; | |
| top: 48px; | |
| color: ${theme.text.reverse}; | |
| font-size: 10px; | |
| font-weight: 800; | |
| padding: 2px 4px; | |
| border-radius: 8px; | |
| line-height: 1.5; | |
| border: 2px solid #fff; | |
| z-index: ${zIndex.avatar + 1}; | |
| } | |
| `; | |
| export const UpsellIconContainer = styled.div` | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| margin-bottom: 16px; | |
| margin-top: 32px; | |
| color: ${theme.text.alt}; | |
| `; | |
| export const SigninLink = styled.span` | |
| color: ${theme.brand.default}; | |
| margin-left: 6px; | |
| cursor: pointer; | |
| `; | |
| export const FullscreenContent = styled.div` | |
| width: 100%; | |
| max-width: ${MEDIA_BREAK}px; | |
| display: flex; | |
| align-items: center; | |
| flex-direction: column; | |
| padding: 32px 16px; | |
| flex: 1 0 auto; | |
| @media (min-width: ${MEDIA_BREAK}px) { | |
| padding-top: 40px; | |
| } | |
| `; | |
| export const CodeOfConduct = styled.p` | |
| display: inline-block; | |
| font-size: 14px; | |
| font-weight: 500; | |
| color: ${theme.text.alt}; | |
| border-radius: 8px; | |
| margin-top: 64px; | |
| margin-left: 32px; | |
| margin-right: 32px; | |
| text-align: center; | |
| position: relative; | |
| z-index: ${zIndex.card + 1}; | |
| a { | |
| color: ${theme.brand.default}; | |
| font-weight: 600; | |
| } | |
| `; | |