Add login CTA

This commit is contained in:
Tony Grosinger 2024-02-26 21:04:54 -08:00
parent c863a3c9a1
commit 943fe7bd92
2 changed files with 25 additions and 0 deletions

9
common/after_header.html Executable file
View File

@ -0,0 +1,9 @@
<div id="login-message">
<h3>
There are a lot more discussions going on if you log in!
</h3>
<button class="widget-button btn btn-primary btn-small sign-up-button btn-text">
<span class="d-button-label">Log in or Sign Up</span>
</button>
</div>

View File

@ -1,3 +1,19 @@
// Login CTA
#login-message {
display: none;
}
html.anon {
body:not(.category-resources) {
// Display this message on all pages except in Community Resources
#login-message {
display: flex;
flex-direction: column;
align-items: center;
}
}
}
// Login form
.login-right-side {
display: none;