-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cbe642e fix v2 issues (Graeme Byrne) Pull request description: * change from using `window` in `TableOfContents` to using `IntersectionObserver` * [fielename prop in <CodeBlock> component should be optional #49](#49) * [Normal links don't have any special style #48](#48) * [Ask the designer how to implement a link inside a key feature card #42](#42) * [Blog post tags style is not the same as the design #38](#38) * [Ask the designer how to implement html lists #37](#37) * [Font size for table of contents is not as the design #31](#31) * [Ask the designer how to implement share links in blog posts #29](#29) * [Related Post section does not look like the standard blog post list #27](#27) * [Top menu padding is not the same as the design #26](#26) * [Key features list width should be 100% #6](#6) ACKs for top commit: josecelano: ACK cbe642e Tree-SHA512: 1b6df7281d9b9f0f88555874aec76fc20d2a73b098ef9112952b47fc916981c26ec63ee1197c21c1c75fd9db6c1ea1da453a91142838d11a77656c3845dbbefa
- Loading branch information
Showing
12 changed files
with
211 additions
and
121 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
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
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 |
---|---|---|
@@ -1,41 +1,39 @@ | ||
<script lang="ts"> | ||
import BlogPostCard from '$lib/components/molecules/BlogPostCard.svelte'; | ||
import type { BlogPost } from '$lib/utils/types'; | ||
import RelatedPostCard from '$lib/components/molecules/RelatedPostCard.svelte'; | ||
import ContentSection from '$lib/components/organisms/ContentSection.svelte'; | ||
export let posts: BlogPost[]; | ||
</script> | ||
|
||
<ContentSection id="related-posts" title="Related Posts"> | ||
<div class="simple-grid"> | ||
<div class="container"> | ||
<div class="grid"> | ||
{#each posts as post} | ||
<RelatedPostCard | ||
<BlogPostCard | ||
slug={post.slug} | ||
title={post.title} | ||
excerpt={post.excerpt} | ||
tags={post.tags} | ||
readingTime={post.readingTime} | ||
date={post.date} | ||
contributor={post.contributor} | ||
/> | ||
{/each} | ||
</div> | ||
</ContentSection> | ||
</div> | ||
|
||
<style lang="scss"> | ||
@import '$lib/scss/breakpoints.scss'; | ||
.simple-grid { | ||
.container { | ||
color: rgba(245, 245, 245, 0.8); | ||
background: rgba(26, 26, 26, 1); | ||
} | ||
.grid { | ||
width: 100%; | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 1fr; | ||
grid-template-columns: 1fr 1fr; | ||
grid-gap: 20px; | ||
@media (max-width: 1070px) { | ||
grid-template-columns: 1fr 1fr; | ||
} | ||
@include for-tablet-portrait-down { | ||
grid-template-columns: 1fr; | ||
@include for-desktop-up { | ||
grid-template-columns: 1fr 1fr 1fr; | ||
} | ||
} | ||
</style> |
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
Oops, something went wrong.