-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,36 @@ | ||
{{!-- footer.hbs --}} | ||
{{!-- app/components/footer.hbs --}} | ||
|
||
<footer class="footer p-3"> | ||
{{#if @selected}} | ||
<div class="d-flex justify-content-center mb-2"> | ||
{{#if this.previousItem}} | ||
<button class="previous btn btn-outline-primary me-2" type="button" {{on "click" (fn this.select this.previousItem)}}> | ||
{{this.previousItem.title}} | ||
<FaIcon class="icon" @icon="arrow-left" /> | ||
</button> | ||
{{else}} | ||
<button class="back btn btn-outline-secondary" type="button" {{on "click" @handleBack}}> | ||
Back to Blogs | ||
</button> | ||
{{/if}} | ||
{{#if this.nextItem}} | ||
<button class="next btn btn-outline-primary" type="button" {{on "click" (fn this.select this.nextItem)}}> | ||
{{this.nextItem.title}} | ||
<FaIcon class="icon" @icon="arrow-right" /> | ||
</button> | ||
{{else}} | ||
<button class="back btn btn-outline-secondary" type="button" {{on "click" @handleBack}}> | ||
Back to Blogs | ||
</button> | ||
{{/if}} | ||
</div> | ||
<div class="d-flex justify-content-center mb-2"> | ||
{{#if this.previousItem}} | ||
<button class="previous btn btn-outline-primary me-2" type="button" {{on "click" (fn this.select this.previousItem)}}> | ||
<FaIcon class="icon" @icon="arrow-left" /> {{this.previousItem.title}} | ||
</button> | ||
{{else}} | ||
<button class="back btn btn-outline-secondary" type="button" {{on "click" @handleBack}}> | ||
Back to Blogs | ||
</button> | ||
{{/if}} | ||
{{#if this.nextItem}} | ||
<button class="next btn btn-outline-primary" type="button" {{on "click" (fn this.select this.nextItem)}}> | ||
{{this.nextItem.title}} <FaIcon class="icon" @icon="arrow-right" /> | ||
</button> | ||
{{else}} | ||
<button class="back btn btn-outline-secondary" type="button" {{on "click" @handleBack}}> | ||
Back to Blogs | ||
</button> | ||
{{/if}} | ||
</div> | ||
{{/if}} | ||
<div class="d-flex justify-content-center align-items-center"> | ||
<p class="mb-0 me-3">{{@pageTitle}}</p> | ||
<p class="mb-0">© {{this.currentYear}}</p> | ||
<div class="d-flex justify-content-between align-items-center w-100"> | ||
<div> | ||
<p class="mb-0 small">{{@pageTitle}}</p> | ||
<p class="mb-0 small">© {{this.currentYear}}</p> | ||
</div> | ||
<div class="d-flex align-items-center"> | ||
<p class="mb-0 small">Built with</p> | ||
<img src="ember.svg" alt="Custom Ember Logo" class="ember-logo"/> | ||
</div> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,3 +70,8 @@ img { | |
.footer .next .icon { | ||
float: right; | ||
} | ||
|
||
.footer .ember-logo { | ||
height: 30px; | ||
width: auto; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.