mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 10:19:10 +00:00
add branding images
This commit is contained in:
parent
a176f1770f
commit
4dff63a48a
9 changed files with 103 additions and 8 deletions
|
@ -1,13 +1,14 @@
|
|||
// @flow
|
||||
import * as React from 'react'
|
||||
import HeaderBarCommon from './common'
|
||||
import HeaderBarCommon, { Logomark } from './common'
|
||||
import { type User } from '../../containers/user'
|
||||
|
||||
const HeaderBarAuth: React.StatelessFunctionalComponent<{ user: User }> = ({ user }) => (
|
||||
<HeaderBarCommon>
|
||||
<div>
|
||||
<>
|
||||
<Logomark />
|
||||
Hey there, {user.username}#{user.discriminator}
|
||||
</div>
|
||||
</>
|
||||
</HeaderBarCommon>
|
||||
)
|
||||
|
||||
|
|
|
@ -1,16 +1,38 @@
|
|||
// @flow
|
||||
import * as React from 'react'
|
||||
import DebugBreakpoints from '../../kit/debug-breakpoints'
|
||||
import dynamic from 'next/dynamic'
|
||||
import styled from 'styled-components'
|
||||
import * as logo from '../logo'
|
||||
|
||||
export type CommonProps = {
|
||||
children: React.Element<any>
|
||||
}
|
||||
|
||||
const Header = styled.div`
|
||||
background-color: var(--c-dark);
|
||||
|
||||
`
|
||||
|
||||
const HeaderInner = styled.div``
|
||||
const HeaderInner = styled.div`
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
max-width: 960px;
|
||||
width: 100vw;
|
||||
margin: 0 auto;
|
||||
height: 50px;
|
||||
`
|
||||
|
||||
export const Logotype = styled(logo.Logotype)`
|
||||
height: 30px;
|
||||
`
|
||||
|
||||
export const Logomark = styled(logo.Logomark)`
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
`
|
||||
|
||||
const DebugBreakpoints = dynamic(() => import('../../kit/debug-breakpoints'))
|
||||
|
||||
const HeaderBarCommon = ({ children }: CommonProps) => (
|
||||
<Header>
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
// @flow
|
||||
import * as React from 'react'
|
||||
import HeaderBarCommon from './common'
|
||||
import HeaderBarCommon, { Logotype } from './common'
|
||||
|
||||
const HeaderBarUnauth: React.StatelessFunctionalComponent<{}> = () => (
|
||||
<HeaderBarCommon>
|
||||
<div>
|
||||
<>
|
||||
<Logotype />
|
||||
Hey stranger.
|
||||
</div>
|
||||
</>
|
||||
</HeaderBarCommon>
|
||||
)
|
||||
|
||||
|
|
36
ui/components/logo.js
Normal file
36
ui/components/logo.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue