Skip to content

Commit

Permalink
image card
Browse files Browse the repository at this point in the history
  • Loading branch information
royalfig committed Jul 10, 2023
1 parent cfe44aa commit 34b5888
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions assets/css/components/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@
display: block;
}

.sm-card picture::after {
position: absolute;
inset: 0;
content: '';
background-image: linear-gradient(0deg, rgb(0 0 0 / 50%), transparent);
}

.sm-card img {
position: absolute;
inset: 0;
Expand Down
8 changes: 6 additions & 2 deletions partials/cta-card.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{{#if @site.members_enabled}}
{{^if @site.members_invite_only}}
<aside class='sm-cta-card'>
<header class=''>
<h2>Don't miss out</h2>
<h2>Never miss an update!</h2>
<p>Sign up for the newsletter</p>
</header>

Expand Down Expand Up @@ -33,4 +35,6 @@
</div>

</form>
</aside>
</aside>
{{/if}}
{{/if}}

0 comments on commit 34b5888

Please sign in to comment.