Add a follow us on GitHub button to the login page

This commit is contained in:
Jackson Harper 2022-02-14 23:41:41 -08:00
parent 3f34813e97
commit 979372c6c8
3 changed files with 47 additions and 1 deletions

View file

@ -30,6 +30,24 @@ export const Button = styled('button', {
bg: '$omnivoreCtaYellow',
p: '10px 12px',
},
ctaLightGray: {
border: 0,
fontSize: '14px',
fontWeight: 500,
fontStyle: 'normal',
fontFamily: 'Inter',
borderRadius: '8px',
cursor: 'pointer',
color: '$omnivoreGray',
p: '10px 12px',
bg: 'rgb(125, 125, 125, 0)',
'&:hover': {
bg: 'rgb(125, 125, 125, 0.1)',
},
'@xsmDown': {
visibility: 'collapse',
}
},
ctaGray: {
border: 0,
fontSize: '14px',

View file

@ -1,9 +1,12 @@
import { Box, MediumBreakpointBox, VStack } from '../elements/LayoutPrimitives'
import { Box, HStack, MediumBreakpointBox, SpanBox, VStack } from '../elements/LayoutPrimitives'
import { LoginForm } from './LoginForm'
import type { LoginFormProps } from './LoginForm'
import Image from 'next/image'
import { OmnivoreNameLogo } from '../elements/images/OmnivoreNameLogo'
import { theme } from '../tokens/stitches.config'
import Link from 'next/link'
import { Star } from 'phosphor-react'
import { Button } from '../elements/Button'
export function LoginLayout(props: LoginFormProps): JSX.Element {
return (
@ -25,9 +28,33 @@ export function LoginLayout(props: LoginFormProps): JSX.Element {
alignItems: 'center',
'@md': { width: '50%' },
'@xsDown': { height: '48px' },
justifyContent: 'space-between',
width: '100%',
}}
>
<OmnivoreNameLogo color={theme.colors.omnivoreGray.toString()} />
<Box css={{
marginLeft: 'auto',
fontSize: '14px',
fontWeight: '500',
verticalAlign: 'middle',
textAlign: 'center',
cursor: 'pointer',
lineHeight: '100%',
textDecoration: 'none',
'&hover': {
bg: theme.colors.omnivoreGray.toString(),
},
}}>
<a href="https://github.com/omnivore-app/omnivore">
<Button style="ctaLightGray">
<HStack css={{ height: '100%' }}>
<Star size={16} />
<SpanBox css={{ pl: '4px' }}>Star us on GitHub</SpanBox>
</HStack>
</Button>
</a>
</Box>
</Box>
</>
)

View file

@ -159,6 +159,7 @@ export const { styled, css, theme, getCssText, globalCss, keyframes, config } =
},
},
media: {
xsmDown: '(max-width: 375px)',
smDown: '(max-width: 575px)',
mdDown: '(max-width: 768px)',
sm: '(min-width: 576px)',