mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-10-08 20:26:20 +08:00
💄(onboarding): Minor style changes to account choose page
This commit is contained in:
parent
aac3198971
commit
9c07a1a15e
6 changed files with 19 additions and 21 deletions
Binary file not shown.
Before Width: | Height: | Size: 33 KiB |
|
@ -30,9 +30,7 @@ class AccountChoosePage extends React.Component
|
||||||
<RetinaImg name="onboarding-close.png" mode={RetinaImg.Mode.ContentPreserve}/>
|
<RetinaImg name="onboarding-close.png" mode={RetinaImg.Mode.ContentPreserve}/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<RetinaImg url="nylas://onboarding/assets/nylas-mailplane@2x.png" mode={RetinaImg.Mode.ContentPreserve} className="logo"/>
|
<div className="caption" style={marginTop: 33, marginBottom:25}>Select your email provider:</div>
|
||||||
|
|
||||||
<div className="caption" style={marginTop: 25, marginBottom:20}>Select your email provider</div>
|
|
||||||
|
|
||||||
{@_renderProviders()}
|
{@_renderProviders()}
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,12 @@ class PageRouterStore extends NylasStore
|
||||||
@_tokenAuthEnabled = "yes"
|
@_tokenAuthEnabled = "yes"
|
||||||
else
|
else
|
||||||
@_tokenAuthEnabled = "no"
|
@_tokenAuthEnabled = "no"
|
||||||
|
|
||||||
|
if @_tokenAuthEnabled is "no" and @_page is 'token-auth'
|
||||||
|
@_onMoveToPage("account-choose")
|
||||||
|
else
|
||||||
@trigger()
|
@trigger()
|
||||||
|
|
||||||
error: (err) =>
|
error: (err) =>
|
||||||
if err.statusCode is 404
|
if err.statusCode is 404
|
||||||
err.message = "Sorry, we could not reach the Nylas API. Please try again."
|
err.message = "Sorry, we could not reach the Nylas API. Please try again."
|
||||||
|
|
|
@ -68,7 +68,7 @@ class PageRouter extends React.Component
|
||||||
background = "linear-gradient(to top, #f6f7f8, #{gradient})"
|
background = "linear-gradient(to top, #f6f7f8, #{gradient})"
|
||||||
height = 200
|
height = 200
|
||||||
else
|
else
|
||||||
background = "linear-gradient(to top, #f6f7f8 0%, rgba(255,255,255,0) 100%), linear-gradient(to right, #e1e58f 0%, #a8d29e 50%, #8bc9c9 100%)"
|
background = "linear-gradient(to top, #f6f7f8 0%, rgba(255,255,255,0) 100%), linear-gradient(to right, #E7EBAE 0%, #C1DFBC 50%, #AED7D7 100%)"
|
||||||
height = 330
|
height = 330
|
||||||
<div className="page-gradient" key={"#{@state.page}-gradient"} style={background: background, height: height}/>
|
<div className="page-gradient" key={"#{@state.page}-gradient"} style={background: background, height: height}/>
|
||||||
|
|
||||||
|
|
|
@ -33,12 +33,9 @@ class TokenAuthAPI
|
||||||
request: options,
|
request: options,
|
||||||
requestId: requestId
|
requestId: requestId
|
||||||
})
|
})
|
||||||
console.log options
|
|
||||||
nodeRequest options, (error, response, body) ->
|
nodeRequest options, (error, response, body) ->
|
||||||
statusCode = response?.statusCode
|
statusCode = response?.statusCode
|
||||||
|
|
||||||
console.log error, response, body
|
|
||||||
|
|
||||||
Actions.didMakeAPIRequest({
|
Actions.didMakeAPIRequest({
|
||||||
request: options,
|
request: options,
|
||||||
statusCode: statusCode,
|
statusCode: statusCode,
|
||||||
|
|
|
@ -117,9 +117,6 @@
|
||||||
.page {
|
.page {
|
||||||
margin:auto;
|
margin:auto;
|
||||||
|
|
||||||
&.account-choose {
|
|
||||||
padding-top: 45px;
|
|
||||||
}
|
|
||||||
&.account-setup {
|
&.account-setup {
|
||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
width: 330px
|
width: 330px
|
||||||
|
@ -313,16 +310,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.page.account-choose {
|
.page.account-choose {
|
||||||
width: 388px;
|
width: 330px;
|
||||||
height: 688px;
|
height: 478px;
|
||||||
|
|
||||||
.caption {
|
.caption {
|
||||||
font-size: 17px;
|
font-size: 19px;
|
||||||
color: rgba(0,0,0,0.56);
|
color: rgba(0,0,0,0.56);
|
||||||
}
|
}
|
||||||
|
|
||||||
.provider-name {
|
.provider-name {
|
||||||
font-size: 20px;
|
font-size: 18px;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
color: rgba(0,0,0,0.7);
|
color: rgba(0,0,0,0.7);
|
||||||
}
|
}
|
||||||
|
@ -331,19 +328,20 @@
|
||||||
text-align: left;
|
text-align: left;
|
||||||
border-top: 1px solid rgba(0,0,0,0.05);
|
border-top: 1px solid rgba(0,0,0,0.05);
|
||||||
cursor: default;
|
cursor: default;
|
||||||
line-height: 70px;
|
line-height: 63px;
|
||||||
|
|
||||||
.icon-container {
|
.icon-container {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
padding: 0 25px 0 25px;
|
padding: 0 15px 0 20px;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
|
zoom: 0.9;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.provider:hover{
|
.provider:hover{
|
||||||
background: rgba(255,255,255,0.7);
|
background: rgba(255,255,255,0.4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -353,10 +351,10 @@
|
||||||
}
|
}
|
||||||
.page.token-auth {
|
.page.token-auth {
|
||||||
width: 388px;
|
width: 388px;
|
||||||
min-height: 500px;
|
min-height: 478px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
padding-top: 50px;
|
padding-top: 40px;
|
||||||
img.logo.content-mask {
|
img.logo.content-mask {
|
||||||
background-color: rgba(255,255,255,0.4);
|
background-color: rgba(255,255,255,0.4);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue