-
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.
Merge pull request #290 from jermspeaks/bug/mobile-layout-curation
Updated curation for mobile layout of curation
- Loading branch information
Showing
17 changed files
with
92 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: "Logs" | ||
link: "/curation/log" | ||
heroImage: | ||
"https://images.unsplash.com/photo-1623265300797-4a3541e29a60?q=80&w=2370&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" | ||
heroImageAlt: "Written list on a legal pad, photographed by Torbjørn Helgesen" | ||
tags: ["log", "lists"] | ||
--- | ||
|
||
A curated journey through my Media Log – a meticulous record of everything I watch, play, read, and attend. Each entry captures a moment in time, creating a rich tapestry of experiences. |
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
import { CollectionEntry, getCollection } from 'astro:content'; | ||
import LogPost from '../../../layouts/LogPost.astro'; | ||
export async function getStaticPaths() { | ||
const posts = await getCollection('log'); | ||
return posts.map((post) => ({ | ||
params: { slug: post.slug }, | ||
props: post, | ||
})); | ||
} | ||
type Props = CollectionEntry<'log'>; | ||
const post = Astro.props; | ||
const { Content } = await post.render(); | ||
--- | ||
|
||
<LogPost {...post.data}> | ||
<h1>{post.data.title}</h1> | ||
<Content /> | ||
</LogPost> |
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,46 @@ | ||
--- | ||
import { getCollection } from "astro:content"; | ||
import { SITE_TITLE, SITE_DESCRIPTION } from "../../../consts"; | ||
import BaseBody from "../../../components/BaseBody.astro"; | ||
import BaseHead from "../../../components/BaseHead.astro"; | ||
import Footer from "../../../components/Footer.astro"; | ||
import Header from "../../../components/Header.astro"; | ||
import ProseArticle from "../../../components/ProseArticle.astro"; | ||
import TitleHeading from "../../../components/TitleHeading.astro"; | ||
const logs = (await getCollection("log")).sort( | ||
(a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf() | ||
); | ||
--- | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<BaseHead title={SITE_TITLE} description={SITE_DESCRIPTION} /> | ||
</head> | ||
<BaseBody> | ||
<Header /> | ||
<main class="max-w-[65ch] mx-auto"> | ||
<TitleHeading>Logs by Year</TitleHeading> | ||
<ProseArticle> | ||
<p> | ||
These are logs of consumed media from the past few years. (Updates in | ||
Progress). | ||
</p> | ||
<p>I've been logging media consumption since 2010.</p> | ||
<ul> | ||
{ | ||
logs.map((log) => ( | ||
<li> | ||
<a href={`/curation/log/${log.slug}/`} title={log.data.title}> | ||
{log.data.title} | ||
</a> | ||
</li> | ||
)) | ||
} | ||
</ul> | ||
</ProseArticle> | ||
</main> | ||
<Footer /> | ||
</BaseBody> | ||
</html> |