-
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.
Add 'blog-posts' section and 'post-item' component
- Loading branch information
Showing
12 changed files
with
234 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<section class="blog-posts"> | ||
<div class="container"> | ||
|
||
<h2 class="blog-posts__title title">Caring is the new marketing</h2> | ||
|
||
<p class="blog-posts__subtitle subtitle">The Nexcent blog is the best place to read about the latest membership insights, trends and more. See who's joining the community, read about how our community are increasing their membership income and lot's more.</p> | ||
|
||
<div class="blog-posts__items"> | ||
|
||
@@include('./_post-item.html', { | ||
"img": { | ||
"src": "img/post-item/laptop-1.jpeg", | ||
"alt": "Image", | ||
}, | ||
"title": "Creating Streamlined Safeguarding Processes with OneRen", | ||
"readmoreLink": "#", | ||
}) | ||
|
||
@@include('./_post-item.html', { | ||
"img": { | ||
"src": "img/post-item/laptop-2.jpeg", | ||
"alt": "Image", | ||
}, | ||
"title": "What are your safeguarding responsibilities and how can you manage them?", | ||
"readmoreLink": "#", | ||
}) | ||
|
||
@@include('./_post-item.html', { | ||
"img": { | ||
"src": "img/post-item/laptop-3.jpeg", | ||
"alt": "Image", | ||
}, | ||
"title": "Revamping the Membership Model with Triathlon Australia", | ||
"readmoreLink": "#", | ||
}) | ||
|
||
</div> | ||
|
||
</div> | ||
</section> |
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,15 @@ | ||
<article class="post-item"> | ||
|
||
<div class="post-item__img"> | ||
<img src="@@img.src" alt="@@img.alt"> | ||
</div> | ||
|
||
<div class="post-item__caption"> | ||
|
||
<h4 class="post-item__title title">@@title</h4> | ||
|
||
<a class="btn-arrow-tertiary" href="@@readmoreLink">Readmore</a> | ||
|
||
</div> | ||
|
||
</article> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ $neutral-3: #717171; | |
$neutral-4: #89939E; | ||
|
||
$tint-1: #E8F5E9; | ||
$tint-2: #C8E6C9; | ||
|
||
$shade-1: #388E3B; | ||
|
||
|
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,66 @@ | ||
@use "abstracts/colors"; | ||
@use "abstracts/breakpoints" as *; | ||
@use "abstracts/mixins" as *; | ||
|
||
|
||
|
||
.post-item { | ||
@include flex (flex, null, center, null, null, column); | ||
|
||
&__img { | ||
width: 100%; | ||
height: 286px; | ||
|
||
@media (max-width: $md) { | ||
height: 256px; | ||
} | ||
@media (max-width: $sm) { | ||
height: 226px; | ||
} | ||
|
||
|
||
img { | ||
width: 100%; | ||
height: 100%; | ||
|
||
object-fit: cover; | ||
border-radius: 8px; | ||
} | ||
} | ||
|
||
&__caption { | ||
flex: 1; | ||
@include flex (flex, space-between, null, 16px, null, column); | ||
|
||
width: calc(100% - (2 * 25.5px)); | ||
|
||
margin-top: -96px; | ||
padding: 16px; | ||
|
||
border-radius: 8px; | ||
background: colors.$neutral-2; | ||
box-shadow: 0px 8px 16px 0px rgba(171, 190, 209, 0.40); | ||
|
||
@media (max-width: $sm) { | ||
gap: 12px; | ||
|
||
width: calc(100% - (2 * 20px)); | ||
|
||
margin-top: -86px; | ||
padding: 14px; | ||
} | ||
@media (max-width: $sm) { | ||
gap: 8px; | ||
|
||
width: calc(100% - (2 * 15px)); | ||
|
||
margin-top: -76px; | ||
padding: 12px; | ||
} | ||
} | ||
|
||
&__title { | ||
text-align: center; | ||
color: colors.$neutral-3; | ||
} | ||
} |
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,41 @@ | ||
@use "abstracts/breakpoints" as *; | ||
@use "abstracts/mixins" as *; | ||
|
||
|
||
|
||
.blog-posts { | ||
margin-bottom: 95px; | ||
|
||
@media (max-width: $xl) { | ||
margin-bottom: 80px; | ||
} | ||
@media (max-width: $lg) { | ||
margin-bottom: 64px; | ||
} | ||
@media (max-width: $md) { | ||
margin-bottom: 48px; | ||
} | ||
|
||
|
||
&__title, | ||
&__subtitle { | ||
text-align: center; | ||
} | ||
|
||
&__subtitle { | ||
max-width: 630px; | ||
|
||
margin: 8px auto 16px auto; | ||
} | ||
|
||
&__items { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); | ||
gap: 24px; | ||
|
||
@media (max-width: $sm) { | ||
grid-template-columns: 1fr; | ||
gap: 20px; | ||
} | ||
} | ||
} |
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