Compare commits

...

3 Commits

Author SHA1 Message Date
35472f114c Add additional theme components 2024-02-26 21:14:43 -08:00
b0be1aeee8 Hide lock icon globally 2024-02-26 21:14:00 -08:00
b27e1ccf3b Add login CTA 2024-02-26 21:14:00 -08:00
3 changed files with 33 additions and 1 deletions

View File

@ -7,6 +7,8 @@
"https://github.com/discourse/discourse-clickable-topic.git",
"https://github.com/discourse/discourse-custom-header-links.git",
"https://github.com/discourse/discourse-user-card-directory.git",
"https://github.com/discourse/DiscoTOC.git",
"https://github.com/paviliondev/discourse-tc-topic-list-previews.git",
"https://github.com/discourse/Discourse-easy-footer.git"
],
"assets": {

9
common/after_header.html Executable file
View File

@ -0,0 +1,9 @@
<div id="login-message">
<h2>
There are a lot more discussions going on if you log in!
</h2>
<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;
@ -535,6 +551,10 @@ html body #main-outlet {
margin-top: 2em;
}
.d-icon-lock {
display: none;
}
// Community Resources Category
.category-resources {
// Topic List
@ -562,7 +582,8 @@ html body #main-outlet {
// Topic Posts
.topic-map,
.topic-status { // Hide the lock icon in the topic header of the post
.topic-avatar,
.names.trigger-user-card { // Hide the lock icon in the topic header of the post
display: none;
}