forked from eddiesigner/liebling
-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
468099f
commit 3108ad1
Showing
11 changed files
with
174 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{{!-- | ||
This template is used for the tags page. | ||
You must first create a page called Tags in the dashboard to enable it. | ||
--}} | ||
|
||
{{!-- This block loads specific styles for the authors page --}} | ||
{{#contentFor "styles"}} | ||
<link rel="preload" href="{{asset "css/tags.css"}}" as="style" /> | ||
|
||
<link rel="stylesheet" type="text/css" href="{{asset "css/tags.css"}}" media="screen" /> | ||
{{/contentFor}} | ||
|
||
{{!-- The tag below means: insert everything in this file | ||
into the {body} of the default.hbs template --}} | ||
{{!< default}} | ||
|
||
{{!-- Special header.hbs partial to generate the <header> tag --}} | ||
{{#post}} | ||
{{> header background=feature_image}} | ||
{{/post}} | ||
|
||
<main class="main-wrap"> | ||
{{#post}} | ||
{{!-- Inject styles of the hero image to make it responsive --}} | ||
{{> hero background=feature_image}} | ||
<div class="m-hero__content" data-aos="fade-down"> | ||
<h1 class="m-hero-title bigger">{{title}}</h1> | ||
{{#if custom_excerpt}} | ||
<p class="m-hero-description">{{custom_excerpt}}</p> | ||
{{/if}} | ||
</div> | ||
</section> | ||
{{/post}} | ||
<div class="l-content"> | ||
<div class="l-wrapper" data-aos="fade-up" data-aos-delay="300"> | ||
<div class="l-tags-container"> | ||
{{#get 'tags' limit='all' include='count.posts'}} | ||
{{#foreach tags}} | ||
<div class="m-tag-card"> | ||
<a href="{{url}}" class="m-tag-card__link {{#unless feature_image}}no-picture{{/unless}}" aria-label="{{name}}"> | ||
{{#if feature_image}} | ||
<img class="m-tag-card__picture" src="{{img_url feature_image size="m"}}" loading="lazy" alt=""> | ||
{{/if}} | ||
<div class="m-tag-card__info {{#unless feature_image}}no-picture{{/unless}}"> | ||
<h4 class="m-tag-card__name">{{name}}</h4> | ||
<span class="m-tag-card__counter"> | ||
{{plural count.posts empty=(t "No posts") singular=(t "1 post") plural=(t "% posts")}} | ||
</span> | ||
</div> | ||
</a> | ||
</div> | ||
{{else}} | ||
<p class="m-not-found"> | ||
{{t "No tags found :("}} | ||
</p> | ||
{{/foreach}} | ||
{{/get}} | ||
</div> | ||
</div> | ||
</div> | ||
</main> |
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
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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
.m-tag-card { | ||
height: 180px; | ||
margin: 0 0 20px; | ||
position: relative; | ||
border-radius: 10px; | ||
border: 1px solid var(--secondary-border-color); | ||
@include transition(all .25s cubic-bezier(.02,.01,.47,1)); | ||
|
||
&:hover { | ||
@include transform(translateY(-5px)); | ||
|
||
&:before { | ||
@include bs(var(--article-shadow-hover)); | ||
} | ||
} | ||
|
||
@include respond-to('medium') { | ||
width: 320px; | ||
margin: 0 20px 40px; | ||
} | ||
|
||
&:before { | ||
content: ''; | ||
position: absolute; | ||
top: 10px; | ||
right: 10px; | ||
bottom: 0; | ||
left: 10px; | ||
border-radius: 10px; | ||
z-index: 1; | ||
@include bs(var(--article-shadow-normal)); | ||
@include transition(all .25s cubic-bezier(.02,.01,.47,1)); | ||
} | ||
} | ||
|
||
.m-tag-card__link { | ||
display: block; | ||
width: 100%; | ||
height: 100%; | ||
border-radius: 10px; | ||
overflow: hidden; | ||
position: relative; | ||
background-color: $black; | ||
z-index: 2; | ||
|
||
&.no-picture { | ||
background-color: var(--secondary-subtle-color); | ||
} | ||
} | ||
|
||
.m-tag-card__picture { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
border-radius: 10px; | ||
object-fit: cover; | ||
opacity: 0.7; | ||
z-index: 1; | ||
} | ||
|
||
.m-tag-card__info { | ||
position: absolute; | ||
left: 15px; | ||
bottom: 15px; | ||
color: $white; | ||
z-index: 2; | ||
|
||
&.no-picture { | ||
color: var(--titles-color); | ||
} | ||
} | ||
|
||
.m-tag-card__name { | ||
letter-spacing: 0.3px; | ||
line-height: 1.3; | ||
font-size: 1.25rem; | ||
font-weight: 600; | ||
margin: 0 0 5px; | ||
} | ||
|
||
.m-tag-card__counter { | ||
display: block; | ||
letter-spacing: 0.2px; | ||
font-size: 0.875rem; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.l-tags-container { | ||
@include respond-to('medium') { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
margin: 0 auto; | ||
max-width: 720px; | ||
} | ||
|
||
@include respond-to('large') { | ||
max-width: 1080px; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@import "common/mixins"; | ||
@import "common/variables"; | ||
|
||
@import "layouts/tags-container"; | ||
|
||
@import "components/tags/tag-card"; |
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