diff options
Diffstat (limited to 'www/src/components/BlogPostPreview.astro')
-rw-r--r-- | www/src/components/BlogPostPreview.astro | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/www/src/components/BlogPostPreview.astro b/www/src/components/BlogPostPreview.astro deleted file mode 100644 index aa1e8731b..000000000 --- a/www/src/components/BlogPostPreview.astro +++ /dev/null @@ -1,57 +0,0 @@ ---- -import Author from './Author.astro'; - -export interface Props { - title: string; - publishDate: string; - href: string; -} - -const { title, publishDate, href } = Astro.props; ---- - -<article class="post-preview"> - <header> - <p class="publish-date">{publishDate}</p> - <a {href}><h1 class="title">{title}</h1></a> - </header> - <slot />{' '}<a {href}>Read more →</a> -</article> - -<style> - .content :global(main > * + *) { - margin-top: 1rem; - } - - .post-preview { - padding-bottom: 2rem; - margin-bottom: 2rem; - border-bottom: 4px solid var(--theme-divider); - } - - header { - display: flex; - flex-direction: column; - text-align: left; - align-items: flex-start; - justify-content: center; - } - - .title, - .author, - .publish-date { - margin: 0; - } - - .publish-date, - .author { - font-size: 1.25rem; - color: var(--theme-text-lighter); - } - - .title { - font-size: 2.25rem; - font-weight: 700; - color: var(--theme-text); - } -</style> |