✨ Added twitter login
This commit is contained in:
@ -77,4 +77,10 @@ const frontpage-bg-color = rgb(32, 32, 32)
|
||||
background hsl(222, 67%, 42%)
|
||||
|
||||
:hover
|
||||
background hsl(222, 67%, 47%)
|
||||
background hsl(222, 67%, 47%)
|
||||
|
||||
.login-button-twitter
|
||||
background hsl(203, 89%, 53%)
|
||||
|
||||
:hover
|
||||
background hsl(203, 89%, 58%)
|
@ -8,4 +8,9 @@ component Login(target string)
|
||||
if arn.APIKeys.Facebook.Secret != ""
|
||||
a.login-button.login-button-facebook(href="/auth/facebook", target=target, data-ajax="false")
|
||||
Icon("facebook")
|
||||
span Sign in via Facebook
|
||||
span Sign in via Facebook
|
||||
|
||||
if arn.APIKeys.Twitter.Secret != ""
|
||||
a.login-button.login-button-twitter(href="/auth/twitter", target=target, data-ajax="false")
|
||||
Icon("twitter")
|
||||
span Sign in via Twitter
|
@ -50,6 +50,17 @@ component SettingsAccounts(user *arn.User)
|
||||
else
|
||||
Icon("circle-o")
|
||||
span Not connected
|
||||
|
||||
.widget-section.social-account
|
||||
label(for="twitter") Twitter:
|
||||
|
||||
a#twitter.button.social-account-button(href="/auth/twitter", data-ajax="false")
|
||||
if user.Accounts.Twitter.ID != ""
|
||||
Icon("check")
|
||||
span Connected
|
||||
else
|
||||
Icon("circle-o")
|
||||
span Not connected
|
||||
|
||||
.widget.mountable
|
||||
h3.widget-title
|
||||
|
Reference in New Issue
Block a user