mirror of
https://github.com/cudr/slate-collaborative.git
synced 2024-10-27 20:34:06 +00:00
feat: update site styles
This commit is contained in:
parent
aaa6d1fa54
commit
aa2255a03c
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@slate-collaborative/backend",
|
||||
"version": "0.6.0",
|
||||
"version": "0.6.1",
|
||||
"files": [
|
||||
"lib"
|
||||
],
|
||||
@ -26,7 +26,7 @@
|
||||
"dependencies": {
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
|
||||
"@babel/runtime": "^7.6.3",
|
||||
"@slate-collaborative/bridge": "0.6.0",
|
||||
"@slate-collaborative/bridge": "0.6.1",
|
||||
"@types/lodash": "^4.14.150",
|
||||
"@types/socket.io": "^2.1.4",
|
||||
"automerge": "0.14.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@slate-collaborative/bridge",
|
||||
"version": "0.6.0",
|
||||
"version": "0.6.1",
|
||||
"files": [
|
||||
"lib"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@slate-collaborative/client",
|
||||
"version": "0.6.0",
|
||||
"version": "0.6.1",
|
||||
"files": [
|
||||
"lib"
|
||||
],
|
||||
@ -26,7 +26,7 @@
|
||||
"dependencies": {
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"@slate-collaborative/bridge": "0.6.0",
|
||||
"@slate-collaborative/bridge": "0.6.1",
|
||||
"automerge": "0.14.0",
|
||||
"slate": "0.58.0",
|
||||
"socket.io-client": "^2.3.0",
|
||||
|
@ -5,8 +5,8 @@
|
||||
"dependencies": {
|
||||
"@emotion/core": "^10.0.17",
|
||||
"@emotion/styled": "^10.0.17",
|
||||
"@slate-collaborative/backend": "^0.6.0",
|
||||
"@slate-collaborative/client": "^0.6.0",
|
||||
"@slate-collaborative/backend": "^0.6.1",
|
||||
"@slate-collaborative/client": "^0.6.1",
|
||||
"@types/faker": "^4.1.5",
|
||||
"@types/jest": "24.0.18",
|
||||
"@types/node": "12.7.5",
|
||||
|
@ -3,7 +3,10 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"
|
||||
/>
|
||||
<meta name="theme-color" content="#db7093" />
|
||||
<meta
|
||||
name="description"
|
||||
@ -17,7 +20,7 @@
|
||||
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||
|
||||
<title>Slate collaborative</title>
|
||||
<title>Slate-collaborative. Collaboration plugin and microservice</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript></noscript>
|
||||
|
@ -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;
|
||||
`
|
||||
|
@ -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
|
||||
|
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user