Skip to content

Commit b82df2e

Browse files
committed
updoot
1 parent 4564970 commit b82df2e

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed

src/assets/css/index.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ html {
1111

1212
:root {
1313
--color-background: #ffffff;
14-
--color-font-secondary: #787e87;
14+
--color-font-secondary: hsl(215, 6%, 40%);
1515
--color-font: #10181a;
1616
--color-header-font: #ffffff;
1717
--color-header: #080c0df0;
@@ -27,6 +27,7 @@ html {
2727
@media (prefers-color-scheme: dark) {
2828
:root {
2929
--color-background: #10181a;
30+
--color-font-secondary: hsl(215, 6%, 60%);
3031
--color-font: #ffffff;
3132
--color-dark-1: #ffffff10;
3233
--color-dark-2: #ffffff20;
@@ -325,6 +326,10 @@ ul {
325326
fill: #0077b5;
326327
}
327328

329+
.icon-link.pinterest {
330+
fill: #e7001e;
331+
}
332+
328333
.main-footer {
329334
display: flex;
330335
align-items: center;

src/components/common.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Article = (page: BluejayPage) => {
1616
<a href={page.url} class="blog-anchor" title={title}>
1717
<div class="blog-entry">
1818
<div class="blog-image-container">
19-
<img src={image ?? "/assets/images/blog/placeholder.avif"} class="blog-image" alt={title} />
19+
<img src={image ?? "/assets/images/placeholder.avif"} class="blog-image" alt={title} />
2020
{page.data.index === 0 ? <span class="blog-new">NEW!</span> : undefined}
2121
</div>
2222
<div class="blog-metadata">

src/components/icons.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ const LinkedInIcon = () => (
6060
</svg>
6161
);
6262

63+
const PinterestIcon = () => (
64+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">
65+
<path d="M568 320C568 457 457 568 320 568C294.4 568 269.8 564.1 246.6 556.9C256.7 540.4 271.8 513.4 277.4 491.9C280.4 480.3 292.8 432.9 292.8 432.9C300.9 448.3 324.5 461.4 349.6 461.4C424.4 461.4 478.3 392.6 478.3 307.1C478.3 225.2 411.4 163.9 325.4 163.9C218.4 163.9 161.5 235.7 161.5 314C161.5 350.4 180.9 395.7 211.8 410.1C216.5 412.3 219 411.3 220.1 406.8C220.9 403.4 225.1 386.5 227 378.7C227.6 376.2 227.3 374 225.3 371.6C215.2 359.1 207 336.3 207 315C207 260.3 248.4 207.4 319 207.4C379.9 207.4 422.6 248.9 422.6 308.3C422.6 375.4 388.7 421.9 344.6 421.9C320.3 421.9 302 401.8 307.9 377.1C314.9 347.6 328.4 315.8 328.4 294.5C328.4 275.5 318.2 259.6 297 259.6C272.1 259.6 252.1 285.3 252.1 319.8C252.1 341.8 259.5 356.6 259.5 356.6C259.5 356.6 235 460.4 230.5 479.8C225.5 501.2 227.5 531.4 229.6 551C137.4 514.9 72 425.1 72 320C72 183 183 72 320 72C457 72 568 183 568 320z" />
66+
</svg>
67+
);
68+
6369
const RssIcon = () => (
6470
<svg viewBox="0 0 640 640">
6571
<path d="M160 96c-35.3 0-64 28.7-64 64v320c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H160zm32 104c0-13.3 10.7-24 24-24 137 0 248 111 248 248 0 13.3-10.7 24-24 24s-24-10.7-24-24c0-110.5-89.5-200-200-200-13.3 0-24-10.7-24-24zm0 96c0-13.3 10.7-24 24-24 83.9 0 152 68.1 152 152 0 13.3-10.7 24-24 24s-24-10.7-24-24c0-57.4-46.6-104-104-104-13.3 0-24-10.7-24-24zm0 120c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32z" />
@@ -78,4 +84,4 @@ const CodeIcon = () => (
7884
</svg>
7985
);
8086

81-
export { CodeIcon, DiscordIcon, EmailIcon, FacebookIcon, GitHubIcon, HouseIcon, LinkedInIcon, MenuCloseIcon, MenuOpenIcon, RssIcon, TwitchIcon, TwitterIcon, YouTubeIcon };
87+
export { CodeIcon, DiscordIcon, EmailIcon, FacebookIcon, GitHubIcon, HouseIcon, LinkedInIcon, MenuCloseIcon, MenuOpenIcon, PinterestIcon, RssIcon, TwitchIcon, TwitterIcon, YouTubeIcon };

src/components/templates.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { BluejayContext } from "bluejay";
22
import { Article, CommonBody, CommonHead, dtf } from "./common.tsx";
3-
import { FacebookIcon, LinkedInIcon, TwitterIcon } from "./icons.tsx";
3+
import { FacebookIcon, LinkedInIcon, PinterestIcon, TwitterIcon } from "./icons.tsx";
44

55
const _url = (ctx: BluejayContext) => encodeURIComponent(Bun.env.BLUEJAY_URL + ctx.page.url);
66

@@ -23,6 +23,12 @@ const shareLinks = [
2323
createHref: (ctx: BluejayContext) => `https://www.linkedin.com/sharing/share-offsite?url=${_url(ctx)}`,
2424
icon: LinkedInIcon,
2525
},
26+
{
27+
id: "pinterest",
28+
title: "Pin on Pinterest",
29+
createHref: (ctx: BluejayContext) => `https://pinterest.com/pin/create/button/?url=${_url(ctx)}`,
30+
icon: PinterestIcon,
31+
},
2632
];
2733

2834
const PageTemplate = (ctx: BluejayContext) => (
@@ -58,7 +64,7 @@ const BlogTemplate = (ctx: BluejayContext) => {
5864
<h1 class="post-title">{ctx.page.metadata.title}</h1>
5965
<span class="blog-tag">{ctx.page.metadata.tag}</span>
6066
<time class="blog-date">{dtf.format(new Date(ctx.page.metadata.date))}</time>
61-
<img class="post-image" src={ctx.page.metadata.image ?? "/assets/images/blog/placeholder.avif"} alt={ctx.page.metadata.title} />
67+
<img class="post-image" src={ctx.page.metadata.image ?? "/assets/images/placeholder.avif"} alt={ctx.page.metadata.title} />
6268
</header>
6369
<main class="markdown">{ctx.page.element(ctx)}</main>
6470
<footer class="post-footer">

0 commit comments

Comments
 (0)