Footer signup

This commit is contained in:
Sodbileg Gansukh 2023-07-10 14:27:31 +08:00
parent 413e08cfb1
commit c5a1fce9d9
6 changed files with 50 additions and 19 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -753,12 +753,16 @@ Search LOGO Login Subscribe
/* 10. Footer */
.gh-footer {
padding-block: 48px;
margin-top: 80px;
}
.gh-footer-inner {
/* 10.1. Footer bar */
.gh-footer-bar {
display: grid;
grid-template-columns: 1fr auto 1fr;
padding-block: 40px;
border-block: 1px solid var(--color-border);
}
.gh-footer-menu .nav {
@ -769,4 +773,13 @@ Search LOGO Login Subscribe
.gh-footer-copyright {
text-align: right;
}
/* 10.2. Footer signup */
.gh-footer-signup {
display: flex;
flex-direction: column;
align-items: center;
padding-block: 100px;
}

View File

@ -94,6 +94,14 @@
],
"default": "Logo in the middle"
},
"footer_signup_header": {
"type": "text",
"default": "Stay in the loop"
},
"footer_signup_subhead": {
"type": "text",
"default": "New content delivered to your inbox."
},
"header_style": {
"type": "select",
"options": [

View File

@ -1,21 +1,31 @@
<footer class="gh-footer gh-outer">
<div class="gh-footer-inner gh-inner">
<span class="gh-footer-logo">
{{#if @site.logo}}
<img src="{{@site.logo}}" alt="{{@site.title}}">
{{else}}
{{@site.title}}
{{/if}}
</span>
<nav class="gh-footer-menu">
{{navigation type="secondary"}}
</nav>
<div class="gh-footer-copyright">
Powered by <a href="https://ghost.org/" target="_blank" rel="noopener">Ghost</a>
<div class="gh-footer-bar">
<span class="gh-footer-logo">
{{#if @site.logo}}
<img src="{{@site.logo}}" alt="{{@site.title}}">
{{else}}
{{@site.title}}
{{/if}}
</span>
<nav class="gh-footer-menu">
{{navigation type="secondary"}}
</nav>
<div class="gh-footer-copyright">
Powered by <a href="https://ghost.org/" target="_blank" rel="noopener">Ghost</a>
</div>
</div>
<section class="gh-footer-signup">
{{#if @custom.footer_signup_header}}
<h2 class="gh-footer-signup-header">{{@custom.footer_signup_header}}</h2>
{{/if}}
{{#if @custom.footer_signup_subhead}}
<p class="gh-footer-signup-subhead">{{@custom.footer_signup_subhead}}</p>
{{/if}}
<button class="gh-button">Subscribe</button>
</section>
</div>
</footer>

View File

@ -22,7 +22,7 @@
{{/if}}
{{#if @site.members_enabled}}
{{#unless @member}}
<button>Subscribe</button>
<button class="gh-button">Subscribe</button>
{{/unless}}
{{/if}}
</section>