Skip to content

Commit

Permalink
Add already registered link
Browse files Browse the repository at this point in the history
  • Loading branch information
jtatum committed Jul 21, 2015
1 parent 216bd0a commit 439883f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default function slackin({
dom('link rel="shortcut icon" href=https://slack.global.ssl.fastly.net/272a/img/icons/favicon-32.png'),
css && dom('link rel=stylesheet', { href: css })
),
splash({ css, name, logo, channels, active, total })
splash({ css, name, org, logo, channels, active, total })
);
res.type('html');
res.send(page.toHTML());
Expand Down
21 changes: 20 additions & 1 deletion lib/splash.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import dom from 'vd';

export default function splash({ name, logo, active, total, channels, iframe }){
export default function splash({ name, org, logo, active, total, channels, iframe }){
let div = dom('.splash',
!iframe && dom('.logos',
logo && dom('.logo.org'),
Expand Down Expand Up @@ -32,6 +32,10 @@ export default function splash({ name, logo, active, total, channels, iframe }){
+ (!iframe ? 'autofocus' : '')),
dom('button.loading', 'Get my Invite')
),
!iframe && dom('p.signin',
'Already registered? ',
dom(`a href=https://${org}.slack.com`, 'Sign in.')
),
!iframe && dom('footer',
'powered by ',
dom('a href=http://rauchg.com/slackin target=_blank', 'slackin')
Expand Down Expand Up @@ -226,6 +230,21 @@ function style({ logo, active, iframe } = {}){
});
}

if (!iframe) {
css.add('p.signin', {
'font-size': '12px'
});

css.add('p.signin a', {
'color': pink,
'text-decoration': 'none'
});

css.add('p.signin a:hover', {
'background-color': '#9B9B9B'
});
}

if (!iframe) {
css.add('footer', {
'color': '#D6D6D6',
Expand Down

0 comments on commit 439883f

Please sign in to comment.