feat: update site styles

This commit is contained in:
cudr
2020-05-15 22:43:19 +03:00
parent aaa6d1fa54
commit aa2255a03c
8 changed files with 36 additions and 24 deletions

View File

@@ -49,7 +49,8 @@ const Button = styled.button`
`
const AddButton = styled(Button)`
margin-left: 30px;
margin-left: 0px;
color: violet;
margin-bottom: 10px;
border: 2px solid violet;
`

View File

@@ -93,12 +93,14 @@ const Client: React.FC<ClientProps> = ({ id, name, slug, removeUser }) => {
<Instance online={isOnline}>
<Title>
<Head>Editor: {name}</Head>
<Button type="button" onClick={toggleOnline}>
Go {isOnline ? 'offline' : 'online'}
</Button>
<Button type="button" onClick={() => removeUser(id)}>
Remove
</Button>
<div style={{ display: 'flex', marginTop: 10, marginBottom: 10 }}>
<Button type="button" onClick={toggleOnline}>
Go {isOnline ? 'offline' : 'online'}
</Button>
<Button type="button" onClick={() => removeUser(id)}>
Remove
</Button>
</div>
</Title>
<EditorFrame

View File

@@ -1,7 +1,7 @@
import styled from '@emotion/styled'
export const RoomWrapper = styled.div`
padding: 30px;
padding-bottom: 10px;
border-bottom: 2px solid #e8e8e8;
`
@@ -13,19 +13,19 @@ export const H4 = styled.h4`
export const Input = styled.input`
padding: 6px 14px;
font-size: 14px;
margin-right: 10px;
margin-top: 10px;
margin-bottom: 10px;
min-width: 240px;
outline: none;
border: 2px solid palevioletred;
& + button {
margin-left: auto;
}
margin-right: auto;
`
export const Button = styled.button`
padding: 6px 14px;
display: block;
outline: none;
background-color: transparent;
font-size: 14px;
text-align: center;
color: palevioletred;
@@ -46,20 +46,26 @@ export const Icon = styled.div``
export const Grid = styled.div`
display: grid;
grid-gap: 2vw;
grid-gap: 1vw;
grid-template-columns: 1fr 1fr;
@media (max-width: 767px) {
grid-template-columns: 1fr;
}
`
export const Title = styled.div`
display: flex;
align-items: center;
margin-bottom: 20px;
margin-bottom: 10px;
@media (max-width: 767px) {
flex-wrap: wrap;
}
`
export const Instance = styled.div<{ online: boolean }>`
background: ${props =>
props.online ? 'rgba(128, 128, 128, 0.1)' : 'rgba(247, 0, 0, 0.2)'};
padding: 20px 30px 40px;
padding: 20px 20px 30px;
`
export const ClientFrame = styled.div`