Enable github account UX
This commit is contained in:
parent
790cbea367
commit
3a0293c056
|
@ -90,11 +90,14 @@
|
||||||
(fn []
|
(fn []
|
||||||
(println "gh-admin-token" @gh-admin-token)
|
(println "gh-admin-token" @gh-admin-token)
|
||||||
(if (empty? @gh-admin-token)
|
(if (empty? @gh-admin-token)
|
||||||
[:div.ui.container
|
[:div.ui.container.enable-github-account
|
||||||
[:div.ui.warning.message
|
[:div.ui.center.aligned.segment.enable-github-account-title
|
||||||
[:i.warning.icon]
|
"Work on bounties that suit you"]
|
||||||
"To set bounties for your repositories or for organizations' repositories where you have access, you need to grant Commit ETH the required permissions"]
|
[:div.ui.center.aligned.segment.enable-github-account-description
|
||||||
[:a.ui.button.small {:href js/authorizeUrlAdmin} "Enable"]]
|
[:p
|
||||||
|
"Not all projects are created equally. Choose the bounties that excite you, match your skill set or fit in with your schedule. No strings attached. Enable your GitHub repositories to get started."]]
|
||||||
|
[:div.ui.center.aligned.segment
|
||||||
|
[:a.ui.button.small {:href js/authorizeUrlAdmin} "ENABLE GITHUB ACCOUNT"]]]
|
||||||
(do
|
(do
|
||||||
(rf/dispatch [:load-user-repos])
|
(rf/dispatch [:load-user-repos])
|
||||||
[repos-page-token-ok])))))
|
[repos-page-token-ok])))))
|
||||||
|
|
|
@ -210,6 +210,46 @@
|
||||||
margin-bottom: 1.5em;
|
margin-bottom: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.enable-github-account {
|
||||||
|
border-radius: 10px;
|
||||||
|
background-color: #fff;
|
||||||
|
transform: translateY(-30px);
|
||||||
|
padding-top: 80px;
|
||||||
|
padding-bottom: 80px;
|
||||||
|
.center.aligned.segment { border: 0; }
|
||||||
|
|
||||||
|
|
||||||
|
.button {
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 1.15;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.enable-github-account-title {
|
||||||
|
color: #42505c;
|
||||||
|
font-family: 'postgrotesk-medium';
|
||||||
|
font-size: 25px;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 1.36;
|
||||||
|
margin-bottom: 0!important;
|
||||||
|
padding-bottom: 0!important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.enable-github-account-description {
|
||||||
|
p {
|
||||||
|
color: #8d99a4;
|
||||||
|
margin-left: 180px;
|
||||||
|
margin-right: 180px;
|
||||||
|
line-height: 1.39;
|
||||||
|
font-family: 'postgrotesk';
|
||||||
|
font-size: 18px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.repo-label {
|
.repo-label {
|
||||||
color: #42505c;
|
color: #42505c;
|
||||||
font-family: 'postgrotesk-medium';
|
font-family: 'postgrotesk-medium';
|
||||||
|
|
Loading…
Reference in New Issue