Skip to content

Commit

Permalink
Update firehose styling
Browse files Browse the repository at this point in the history
  • Loading branch information
DeclanChidlow committed Feb 7, 2025
1 parent f7f8e54 commit b54d3cf
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
23 changes: 20 additions & 3 deletions src/assets/styles/pages/firehose.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,35 @@
article {
max-width: 65ch;
padding: 2rem 1rem;
border-bottom: 2px solid var(--bright_grey);
margin: 1rem 0;

header {
display: flex;
justify-content: space-between;
gap: 2rem;
margin-bottom: 1rem;

div {
display: flex;
gap: 1ch;
}
}
}

.post {
background: oklch(from var(--cyan) l c h / calc(alpha - 0.9));
}

.photo {
background: oklch(from var(--green) l c h / calc(alpha - 0.9));

p {
margin-bottom: 1rem;
}
}

.photo p {
margin-bottom: 1rem;
.micro {
background: oklch(from var(--blue) l c h / calc(alpha - 0.9));
}

.socials {
Expand Down
15 changes: 12 additions & 3 deletions src/pages/firehose.ori
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
// if post
`<article class="post">
<header>
<a href="/posts/${ basename(key) }"><time datetime="${ item/pub_time }" title="Date of first publication.">${ functions/pretty-date.js(item/pub_time) }</time></a>
<div>
<span class="icons">article</span>
<a href="/posts/${ basename(key) }"><time datetime="${ item/pub_time }" title="Date of first publication.">${ functions/pretty-date.js(item/pub_time) }</time></a>
</div>
</header>

<p>
Expand All @@ -32,7 +35,10 @@
// if photo
`<article class="photo">
<header>
<a href="/photography/${ basename(key) }"><time datetime="${ item/pub_time }" title="Date of first publication.">${ functions/pretty-date.js(item/pub_time) }</time></a>
<div>
<span class="icons">photo_camera</span>
<a href="/photography/${ basename(key) }"><time datetime="${ item/pub_time }" title="Date of first publication.">${ functions/pretty-date.js(item/pub_time) }</time></a>
</div>

<div class="socials">
${ item/unsplash_link ? `
Expand All @@ -53,7 +59,10 @@
// if micro (not post or photo)
`<article class="micro">
<header>
<a href="/micros/${ basename(key) }"><time datetime="${ item/pub_time }" title="Date of first publication.">${ functions/pretty-date.js(item/pub_time) }</time></a>
<div>
<span class="icons">stylus_note</span>
<a href="/micros/${ basename(key) }"><time datetime="${ item/pub_time }" title="Date of first publication.">${ functions/pretty-date.js(item/pub_time) } ${ functions/pretty-time.js(item/pub_time) }</time></a>
</div>

<div class="socials">
${ item/fedi_link ? `
Expand Down

0 comments on commit b54d3cf

Please sign in to comment.