diff --git a/src/components/SiteBar.astro b/src/components/SiteBar.astro
index dc099ab..c71ceef 100644
--- a/src/components/SiteBar.astro
+++ b/src/components/SiteBar.astro
@@ -1,7 +1,7 @@
---
/**
- * The bar on top of every page: the brand that leads home, the way to search, the organization on GitHub
- * and the theme control.
+ * The bar on top of every page: the brand that leads home, the way to search, the organization on GitHub and
+ * on Packagist, and the theme control.
*/
import { SITE, TEXT } from '../content/site'
import BrandMark from './BrandMark.astro'
@@ -29,6 +29,16 @@ import ThemeToggle from './ThemeToggle.astro'
>
+
+
+
diff --git a/src/components/SiteFooter.astro b/src/components/SiteFooter.astro
index 439f329..5f29db4 100644
--- a/src/components/SiteFooter.astro
+++ b/src/components/SiteFooter.astro
@@ -9,11 +9,21 @@ import Icon from './Icon.astro'
href={SITE.github}
target="_blank"
rel="noopener noreferrer"
- class="tb-footer__github"
+ class="tb-footer__link"
aria-label={TEXT.nav.source}
title={TEXT.nav.source}
>
+
diff --git a/src/components/icons.ts b/src/components/icons.ts
index a401bcd..7fa1ba7 100644
--- a/src/components/icons.ts
+++ b/src/components/icons.ts
@@ -10,6 +10,7 @@ export const ICONS = {
external: '',
github:
'',
+ packagist: '',
} as const
export type IconName = keyof typeof ICONS
diff --git a/src/content/site.ts b/src/content/site.ts
index e570d4b..8ef8f8a 100644
--- a/src/content/site.ts
+++ b/src/content/site.ts
@@ -7,6 +7,7 @@ import { ORGANIZATION } from './catalog'
export const SITE = {
name: 'Tiny Blocks',
github: `https://github.com/${ORGANIZATION}`,
+ packagist: `https://packagist.org/packages/${ORGANIZATION}/`,
meta: {
title: 'Tiny Blocks ยท Small, focused PHP libraries',
description:
@@ -26,6 +27,7 @@ export const TEXT = {
libraries: 'Libraries',
toTop: 'Back to top',
source: 'Tiny Blocks on GitHub',
+ packagist: 'Tiny Blocks on Packagist',
},
home: {
lede: 'Small, focused PHP libraries. Each one solves a single problem and can be adopted on its own, without pulling in the rest.',
diff --git a/src/styles/theme.css b/src/styles/theme.css
index 08e2450..abf2453 100644
--- a/src/styles/theme.css
+++ b/src/styles/theme.css
@@ -477,9 +477,10 @@ code {
.tb-footer__inner {
display: flex;
justify-content: center;
+ gap: 0.5rem;
padding-block: 1.25rem;
}
-.tb-footer__github {
+.tb-footer__link {
display: grid;
place-items: center;
width: 2.75rem;
@@ -487,7 +488,7 @@ code {
border-radius: var(--radius-pill);
color: var(--color-ink-muted);
}
-.tb-footer__github:hover {
+.tb-footer__link:hover {
background: var(--color-surface-strong);
color: var(--color-ink);
}
@@ -1195,7 +1196,6 @@ a.tb-chip:hover {
padding: 1.5rem;
border-radius: var(--radius-lg);
border: 1px dashed var(--color-tb-brand);
- padding: 0;
list-style: none;
}
.tb-promise li {