@@ -32,31 +32,49 @@ class Home extends Component {
32
32
< main >
33
33
< section className = 'inner page welcome' >
34
34
< div className = 'card' >
35
- < h1 className = 'welcome__intro' > < pre > { title } </ pre > </ h1 >
35
+ < h1 className = 'welcome__intro' >
36
+ < pre > { title } </ pre >
37
+ </ h1 >
36
38
< p >
37
- Create teams of { publicRuntimeConfig . OSM_NAME } users and import them into your apps.
38
- Making maps better, together. Enable teams in OpenStreetMap applications, or build your team here. It’s not safe to map alone.
39
+ Create teams of { publicRuntimeConfig . OSM_NAME } users and import
40
+ them into your apps. Making maps better, together. Enable teams in
41
+ OpenStreetMap applications, or build your team here. It’s not safe
42
+ to map alone.
39
43
</ p >
40
- {
41
- this . props . user . username
42
- ? (
43
- < div className = 'welcome__user' >
44
- < h2 > Welcome, { this . props . user . username } !</ h2 >
45
- < ul className = 'welcome__user--actions' >
46
- < li > < a href = { join ( publicRuntimeConfig . APP_URL , '/teams/create' ) } > Create New Team</ a > </ li >
47
- < li > < a href = { join ( publicRuntimeConfig . APP_URL , '/teams' ) } className = '' > All Teams</ a > </ li >
48
- < li > < a href = { join ( publicRuntimeConfig . APP_URL , '/profile' ) } className = '' > Profile</ a > </ li >
49
- < li > < a href = { join ( publicRuntimeConfig . APP_URL , '/clients' ) } className = '' > Connected Apps</ a > </ li >
50
- </ ul >
51
- < Button variant = 'danger' onClick = { ( ) => {
52
- window . sessionStorage . clear ( )
53
- Router . push ( '/logout' )
54
- }
55
- } > Logout</ Button >
56
- </ div >
57
- )
58
- : < Button href = '/login' > Sign in →</ Button >
59
- }
44
+ { this . props . user . username ? (
45
+ < div className = 'welcome__user' >
46
+ < h2 > Welcome, { this . props . user . username } !</ h2 >
47
+ < ul className = 'welcome__user--actions' >
48
+ < li >
49
+ < a href = 'https://mapping.team/' > Manage Your Teams</ a >
50
+ </ li >
51
+ < li >
52
+ < a href = 'https://mapping.team/developers' >
53
+ Teams Developer Docs
54
+ </ a >
55
+ </ li >
56
+ < li >
57
+ < a
58
+ href = { join ( publicRuntimeConfig . APP_URL , '/clients' ) }
59
+ className = ''
60
+ >
61
+ Connected Apps
62
+ </ a >
63
+ </ li >
64
+ </ ul >
65
+ < Button
66
+ variant = 'danger'
67
+ onClick = { ( ) => {
68
+ window . sessionStorage . clear ( )
69
+ Router . push ( '/logout' )
70
+ } }
71
+ >
72
+ Logout
73
+ </ Button >
74
+ </ div >
75
+ ) : (
76
+ < Button href = '/login' > Sign in →</ Button >
77
+ ) }
60
78
</ div >
61
79
< div className = 'map-bg' />
62
80
</ section >
@@ -109,7 +127,9 @@ class Home extends Component {
109
127
background: rgba(25,51,130, 0.9);
110
128
border: 4px solid white;
111
129
position: relative;
112
- box-shadow: 12px 12px 0 ${ theme . colors . primaryDark } , 12px 12px 0 3px white;
130
+ box-shadow: 12px 12px 0 ${
131
+ theme . colors . primaryDark
132
+ } , 12px 12px 0 3px white;
113
133
}
114
134
115
135
.welcome__intro {
0 commit comments