Skip to content

Commit 92d0885

Browse files
committed
Remove stale links
1 parent 5470dc5 commit 92d0885

File tree

1 file changed

+44
-24
lines changed

1 file changed

+44
-24
lines changed

pages/index.js

+44-24
Original file line numberDiff line numberDiff line change
@@ -32,31 +32,49 @@ class Home extends Component {
3232
<main>
3333
<section className='inner page welcome'>
3434
<div className='card'>
35-
<h1 className='welcome__intro'><pre>{title}</pre></h1>
35+
<h1 className='welcome__intro'>
36+
<pre>{title}</pre>
37+
</h1>
3638
<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.
3943
</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+
)}
6078
</div>
6179
<div className='map-bg' />
6280
</section>
@@ -109,7 +127,9 @@ class Home extends Component {
109127
background: rgba(25,51,130, 0.9);
110128
border: 4px solid white;
111129
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;
113133
}
114134
115135
.welcome__intro {

0 commit comments

Comments
 (0)