11import React , { FunctionComponent } from 'react' ;
2- import CSS from 'csstype' ;
3- import { useOvermind } from 'app/overmind' ;
42import { Link } from 'react-router-dom' ;
5- import theme from '@codesandbox/common/lib/theme' ;
6- import { Button } from '@codesandbox/common/lib/components/Button' ;
7-
8- // Inline styles because styled-components didn't load the styles
9- const titleStyles : CSS . Properties = {
10- fontWeight : 600 ,
11- color : 'rgba(255, 255, 255, 0.9)' ,
12- fontSize : '1.125rem' ,
13- marginTop : 0 ,
14- marginBottom : 0 ,
15- width : '100%' ,
16- textTransform : 'uppercase' ,
17- } ;
18-
19- const dateStyles : CSS . Properties = {
20- color : 'rgba(255, 255, 255, 0.5)' ,
21- fontSize : '.875rem' ,
22- float : 'right' ,
23- width : '100%' ,
24- textAlign : 'right' ,
25- } ;
26-
27- const subTitleStyles : CSS . Properties = {
28- fontWeight : 600 ,
29- color : 'rgba(255, 255, 255, .9)' ,
30- fontSize : '1rem' ,
31- marginTop : '1rem' ,
32- marginBottom : 0 ,
33- } ;
343
35- const descriptionStyles : CSS . Properties = {
36- lineHeight : 1.6 ,
37- color : 'rgba(255, 255, 255, 0.7)' ,
38- fontWeight : 600 ,
39- fontSize : '.875rem' ,
40- marginTop : '.5rem' ,
41- marginBottom : 0 ,
42- } ;
4+ import { useOvermind } from 'app/overmind' ;
435
44- const W : FunctionComponent = props => (
45- < span { ...props } style = { { color : 'white' } } />
46- ) ;
6+ import {
7+ Button ,
8+ ButtonContainer ,
9+ Container ,
10+ Date ,
11+ Description ,
12+ Image ,
13+ SubTitle ,
14+ Title ,
15+ TitleContainer ,
16+ White ,
17+ } from './elements' ;
4718
4819export const DashboardChangelog : FunctionComponent = ( ) => {
4920 const {
5021 actions : { modalClosed } ,
5122 } = useOvermind ( ) ;
5223
5324 return (
54- < div
55- style = { {
56- padding : '1.5rem' ,
57- backgroundColor : theme . background ( ) ,
58- } }
59- >
60- < div
61- style = { {
62- marginBottom : '1rem' ,
63- display : 'flex' ,
64- alignItems : 'center' ,
65- } }
66- >
67- < h1 style = { titleStyles } >
25+ < Container >
26+ < TitleContainer >
27+ < Title >
6828 What
6929 { "'" } s New
70- </ h1 >
71- < div style = { dateStyles } > July 2nd, 2018</ div >
72- </ div >
30+ </ Title >
31+
32+ < Date > July 2nd, 2018</ Date >
33+ </ TitleContainer >
7334
74- < img
35+ < Image
7536 alt = "CodeSandbox Announcement"
76- style = { {
77- width : '100%' ,
78- backgroundColor : 'rgba(0, 0, 0, 0.3)' ,
79- borderRadius : 2 ,
80- } }
8137 src = "https://cdn-images-1.medium.com/max/1600/1*wIMw31_Phf1WNEP6zjuTUw.png"
8238 />
8339
84- < p style = { descriptionStyles } >
40+ < Description >
8541 We
8642 { "'" }
8743 re back with a new update! This update is very focused on{ ' ' }
88- < W > collaboration</ W > and < W > organization</ W > . Let
44+ < White > collaboration</ White > and < White > organization</ White > . Let
8945 { "'" } s take a look!
90- </ p >
46+ </ Description >
9147
92- < h2 style = { subTitleStyles } > Dashboard</ h2 >
93- < p style = { descriptionStyles } >
48+ < SubTitle > Dashboard</ SubTitle >
49+
50+ < Description >
9451 You can now manage your sandboxes in your own{ ' ' }
9552 < Link to = "/dashboard" > dashboard</ Link > ! You
9653 { "'" }
97- re able to < W > filter, sort, search, delete, create and update</ W > { ' ' }
98- multiple sandboxes at the same time. The possibilities are endless!
99- </ p >
100-
101- < h2 style = { subTitleStyles } > Create Teams</ h2 >
102- < p style = { descriptionStyles } >
103- An extension to the dashboard is < W > teams</ W > ! You can now create a team
104- with unlimited members to share sandboxes for collaboration. All
105- sandboxes automatically sync using < W > live collaboration</ W > between
106- team members.
107- </ p >
108-
109- < h2 style = { subTitleStyles } > Free CodeSandbox Live</ h2 >
110- < p style = { descriptionStyles } >
54+ re able to{ ' ' }
55+ < White > filter, sort, search, delete, create and update</ White > multiple
56+ sandboxes at the same time. The possibilities are endless!
57+ </ Description >
58+
59+ < SubTitle > Create Teams</ SubTitle >
60+
61+ < Description >
62+ An extension to the dashboard is < White > teams</ White > ! You can now
63+ create a team with unlimited members to share sandboxes for
64+ collaboration. All sandboxes automatically sync using{ ' ' }
65+ < White > live collaboration</ White > between team members.
66+ </ Description >
67+
68+ < SubTitle > Free CodeSandbox Live</ SubTitle >
69+
70+ < Description >
11171 Teams is not our only feature that allows for collaboration. We also
112- have < W > real time collaboration</ W > with{ ' ' }
72+ have < White > real time collaboration</ White > with{ ' ' }
11373 < Link target = "_blank" to = "/docs/live" >
11474 CodeSandbox Live
11575 </ Link >
@@ -120,39 +80,41 @@ export const DashboardChangelog: FunctionComponent = () => {
12080 subscription, but we
12181 { "'" }
12282 re happy to announce that{ ' ' }
123- < W > CodeSandbox Live is from now on free for everyone</ W > !
124- </ p >
83+ < White > CodeSandbox Live is from now on free for everyone</ White > !
84+ </ Description >
85+
86+ < SubTitle > And More</ SubTitle >
12587
126- < h2 style = { subTitleStyles } > And More</ h2 >
127- < p style = { descriptionStyles } >
88+ < Description >
12889 There
12990 { "'" } s a lot more included in this update! Make sure to check out the
13091 announcement post to find out more about this update.
131- </ p >
92+ </ Description >
13293
133- < div style = { { display : 'flex' } } >
94+ < ButtonContainer >
13495 < Button
135- style = { { marginTop : '1rem' , marginRight : '.25rem' } }
13696 block
137- small
138- secondary
13997 onClick = { ( ) => modalClosed ( ) }
98+ secondary
99+ small
100+ style = { { marginRight : '.25rem' } }
140101 >
141102 Close
142103 </ Button >
143- { /*
144- // @ts -ignore */ }
104+
105+ { /*
106+ // @ts -ignore */ }
145107 < Button
146- href = "/post/announcing-codesandbox-dashboard-teams"
147- style = { { marginTop : '1rem' , marginLeft : '.25rem' } }
148108 block
109+ href = "/post/announcing-codesandbox-dashboard-teams"
110+ rel = "noreferrer noopener"
149111 small
112+ style = { { marginLeft : '.25rem' } }
150113 target = "_blank"
151- rel = "noreferrer noopener"
152114 >
153115 View Announcement
154116 </ Button >
155- </ div >
156- </ div >
117+ </ ButtonContainer >
118+ </ Container >
157119 ) ;
158120} ;
0 commit comments