diff options
author | Orhun Parmaksız | 2023-12-06 16:32:26 +0100 |
---|---|---|
committer | GitHub | 2023-12-06 16:32:26 +0100 |
commit | 4601449894bbbd619e4149788113090b67697fe1 (patch) | |
tree | af220c9eaa93bf5aa247ad0054ce4a270f049df7 | |
parent | 909afa2d468099e237bfbd25eda56270b7b00082 (diff) | |
download | IT.starlight-4601449894bbbd619e4149788113090b67697fe1.tar.gz IT.starlight-4601449894bbbd619e4149788113090b67697fe1.tar.bz2 IT.starlight-4601449894bbbd619e4149788113090b67697fe1.zip |
Add Matrix social icon (#1203)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
-rw-r--r-- | .changeset/strange-boxes-know.md | 4 | ||||
-rw-r--r-- | packages/starlight/components/Icons.ts | 2 | ||||
-rw-r--r-- | packages/starlight/schemas/social.ts | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/.changeset/strange-boxes-know.md b/.changeset/strange-boxes-know.md new file mode 100644 index 00000000..2af4c76d --- /dev/null +++ b/.changeset/strange-boxes-know.md @@ -0,0 +1,4 @@ +--- +'@astrojs/starlight': patch +--- +Adds Matrix social link icon diff --git a/packages/starlight/components/Icons.ts b/packages/starlight/components/Icons.ts index 6446a5ae..4aeabd27 100644 --- a/packages/starlight/components/Icons.ts +++ b/packages/starlight/components/Icons.ts @@ -101,4 +101,6 @@ export const Icons = { '<path d="M22.04 7.6c0-2.8-2.19-5.1-4.75-5.93a15.19 15.19 0 0 0-10.44.55C3.16 3.96 2 7.78 1.95 11.58c-.02 3.12.3 11.36 4.94 11.42 3.45.04 3.97-4.4 5.56-6.55 1.14-1.52 2.6-1.95 4.4-2.4 3.1-.76 5.2-3.2 5.2-6.44Z"/>', slack: '<path d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52Zm1.271 0a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313ZM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834Zm0 1.271a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312Zm10.122 2.521a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834Zm-1.268 0a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312Zm-2.523 10.122a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52Zm0-1.268a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313Z"/>', + matrix: + '<path d="M22.5 1.5v21h-2.25V24H24V0h-3.75v1.5h2.25ZM7.46 7.95V9.1h.04a3.02 3.02 0 0 1 2.61-1.39c.54 0 1.03.1 1.48.32.44.2.78.58 1.01 1.1.26-.37.6-.7 1.03-.99.44-.28.95-.43 1.55-.43.45 0 .87.06 1.26.17.38.11.71.29.99.53.27.24.49.56.64.95.15.4.23.86.23 1.42v5.72h-2.34v-4.85c0-.29-.01-.56-.04-.8a1.73 1.73 0 0 0-.18-.67 1.1 1.1 0 0 0-.44-.45 1.6 1.6 0 0 0-.78-.16c-.33 0-.6.06-.8.19-.2.12-.37.29-.48.5a2 2 0 0 0-.23.69c-.04.26-.06.52-.06.78v4.77H10.6v-4.8l-.01-.75a2.29 2.29 0 0 0-.14-.69c-.08-.2-.23-.38-.42-.5a1.5 1.5 0 0 0-.85-.2c-.15.01-.3.04-.44.08-.19.06-.37.15-.52.28-.18.14-.32.34-.44.6-.12.26-.18.6-.18 1.02v4.96H5.25V7.94h2.21ZM1.5 1.5v21h2.25V24H0V0h3.75v1.5H1.5Z"/>', }; diff --git a/packages/starlight/schemas/social.ts b/packages/starlight/schemas/social.ts index 6882f9f8..c3ccff8f 100644 --- a/packages/starlight/schemas/social.ts +++ b/packages/starlight/schemas/social.ts @@ -25,6 +25,7 @@ export const socialLinks = [ 'reddit', 'patreon', 'slack', + 'matrix', ] as const; export const SocialLinksSchema = () => @@ -65,6 +66,7 @@ export const SocialLinksSchema = () => reddit: 'Reddit', patreon: 'Patreon', slack: 'Slack', + matrix: 'Matrix', }[key]; labelledLinks[key] = { label, url }; } |