diff --git a/less/login.less b/less/login.less index 473d26f..b756a6a 100644 --- a/less/login.less +++ b/less/login.less @@ -1,45 +1,45 @@ /* * Copyright © 2020 A Bunch Tell LLC. * * This file is part of WriteFreely. * * WriteFreely is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, included * in the LICENSE file in this source code package. */ .row.signinbtns { justify-content: space-evenly; font-size: 1em; margin-top: 2em; margin-bottom: 1em; .loginbtn { height: 40px; - } - #writeas-login, #gitlab-login { - box-sizing: border-box; - font-size: 17px; + &.btn.cta { + box-sizing: border-box; + font-size: 17px; + } } } .or { text-align: center; margin-bottom: 3.5em; p { display: inline-block; background-color: white; padding: 0 1em; } hr { margin-top: -1.6em; margin-bottom: 0; } hr.short { max-width: 30rem; } } \ No newline at end of file diff --git a/pages/landing.tmpl b/pages/landing.tmpl index f968404..e661aa6 100644 --- a/pages/landing.tmpl +++ b/pages/landing.tmpl @@ -1,218 +1,213 @@ {{define "head"}} {{.SiteName}} {{end}} {{define "content"}}
{{ if .OpenRegistration }} {{ if or .OauthSlack .OauthWriteAs .OauthGitlab .OauthGeneric }} {{ if .OauthSlack }}
Sign in with Slack
{{ end }} {{ if .OauthWriteAs }} {{ end }} {{ if .OauthGitlab }} {{ end }} {{ if .OauthGeneric }} {{ end }} {{ end }} {{if not .DisablePasswordAuth}} {{if .Flashes}}
    {{range .Flashes}}
  • {{.}}
  • {{end}}
{{end}}
{{end}} {{ else }}

Registration is currently closed.

You can always sign up on another instance.

{{ end }}
{{if .Content}}
{{end}} {{ if .Content }}
{{.Content}}
{{ end }} {{end}} diff --git a/pages/login.tmpl b/pages/login.tmpl index 9a65da2..d554afe 100644 --- a/pages/login.tmpl +++ b/pages/login.tmpl @@ -1,65 +1,61 @@ {{define "head"}}Log in — {{.SiteName}} {{end}} {{define "content"}}

Log in to {{.SiteName}}

{{if .Flashes}}{{end}} {{ if or .OauthSlack .OauthWriteAs .OauthGitlab .OauthGeneric .OauthGitea }}
{{ if .OauthSlack }} Sign in with Slack {{ end }} {{ if .OauthWriteAs }} Sign in with Write.as {{ end }} {{ if .OauthGitlab }} Sign in with {{.GitlabDisplayName}} {{ end }} {{ if .OauthGeneric }} Sign in with {{ .OauthGenericDisplayName }} {{ end }} {{ if .OauthGitea }} Sign in with {{.GiteaDisplayName}} {{ end }}
{{if not .DisablePasswordAuth}}

or


{{end}} {{ end }} {{if not .DisablePasswordAuth}}


{{if .To}}{{end}}
{{if and (not .SingleUser) .OpenRegistration}}

{{if .Message}}{{.Message}}{{else}}No account yet? Sign up to start a blog.{{end}}

{{end}} {{end}} {{end}}