An open source design system that's fully customizable and agent ready
TypeScript
Socials (#3004)
Kenton Quatmancb87d822658f
diff --git a/apps/docsite/src/components/SiteFooter.tsx b/apps/docsite/src/components/SiteFooter.tsxindex 11c3d05539..4763a3598f 100644--- a/apps/docsite/src/components/SiteFooter.tsx+++ b/apps/docsite/src/components/SiteFooter.tsx@@ -11,12 +11,20 @@ import {Grid, GridSpan} from '@xds/core/Grid';import {Divider} from '@xds/core/Divider';import {Section} from '@xds/core/Section';import {useAppShellMobile} from '@xds/core/AppShell';-import {GITHUB_REPO} from '../constants';+import {+ GITHUB_REPO,+ FACEBOOK_URL,+ INSTAGRAM_URL,+ THREADS_URL,+ X_URL,+} from '../constants';import {AstryxLogo,GitHubLogo,ThreadsLogo,XLogo,+ InstagramLogo,+ FacebookLogo,MetaOpenSourceLogo,} from './logos';@@ -66,8 +74,10 @@ const SOCIAL_LINKS: ReadonlyArray<{Icon: (props: React.SVGProps<SVGSVGElement>) => React.ReactElement;}> = [{label: 'GitHub', href: GITHUB_REPO, Icon: GitHubLogo},- {label: 'Threads', href: 'https://www.threads.net', Icon: ThreadsLogo},- {label: 'X', href: 'https://x.com', Icon: XLogo},+ {label: 'Facebook', href: FACEBOOK_URL, Icon: FacebookLogo},+ {label: 'Instagram', href: INSTAGRAM_URL, Icon: InstagramLogo},+ {label: 'Threads', href: THREADS_URL, Icon: ThreadsLogo},+ {label: 'X', href: X_URL, Icon: XLogo},];const LEGAL_LINKS: ReadonlyArray<{label: string; href: string}> = [diff --git a/apps/docsite/src/components/logos.tsx b/apps/docsite/src/components/logos.tsxindex 1de66d2743..a49957ac5f 100644--- a/apps/docsite/src/components/logos.tsx+++ b/apps/docsite/src/components/logos.tsx@@ -61,7 +61,7 @@ export function ThreadsLogo(props: SvgProps) {fill="currentColor"xmlns="http://www.w3.org/2000/svg"{...props}>- <path d="M11.894 7.41569C11.8239 7.38266 11.7527 7.35087 11.6806 7.32043C11.555 5.04485 10.2904 3.74208 8.16696 3.72875C8.15734 3.72869 8.14777 3.72869 8.13815 3.72869C6.86806 3.72869 5.81175 4.26174 5.16159 5.23173L6.32941 6.0194C6.8151 5.29486 7.57735 5.1404 8.13871 5.1404C8.14519 5.1404 8.1517 5.1404 8.15812 5.14046C8.85729 5.14484 9.38488 5.34472 9.72635 5.7345C9.97485 6.01828 10.1411 6.41042 10.2234 6.90532C9.60346 6.80173 8.93306 6.76988 8.21638 6.81028C6.19751 6.92462 4.89962 8.08232 4.98679 9.691C5.03103 10.507 5.44447 11.209 6.15092 11.6676C6.74822 12.0553 7.5175 12.2448 8.317 12.2019C9.37284 12.145 10.2011 11.7489 10.779 11.0247C11.2179 10.4747 11.4954 9.76192 11.618 8.86383C12.1212 9.16242 12.4941 9.55533 12.7 10.0277C13.0502 10.8306 13.0707 12.15 11.9757 13.2257C11.0164 14.168 9.86323 14.5757 8.12048 14.5883C6.1873 14.5742 4.72526 13.9646 3.77468 12.7764C2.88455 11.6638 2.42452 10.0568 2.40736 8C2.42452 5.94315 2.88455 4.33613 3.77468 3.22356C4.72526 2.03541 6.18727 1.42583 8.12045 1.41171C10.0677 1.42594 11.5552 2.03845 12.5421 3.23233C13.0261 3.8178 13.3909 4.55407 13.6315 5.41253L15 5.05352C14.7084 3.99685 14.2497 3.08631 13.6254 2.33117C12.3601 0.800557 10.5096 0.0162623 8.12522 0H8.11568C5.73619 0.0162058 3.90639 0.803483 2.67714 2.33994C1.58327 3.7072 1.01902 5.60964 1.00006 7.99438L1 8L1.00006 8.00562C1.01902 10.3903 1.58327 12.2928 2.67714 13.6601C3.90639 15.1965 5.73619 15.9838 8.11568 16H8.12522C10.2407 15.9856 11.7319 15.441 12.9603 14.2343C14.5675 12.6555 14.5191 10.6766 13.9894 9.46175C13.6094 8.59058 12.8848 7.88302 11.894 7.41569ZM8.24142 10.7923C7.35659 10.8413 6.43734 10.4508 6.39201 9.61433C6.35842 8.99417 6.84089 8.30217 8.29572 8.21973C8.46233 8.21028 8.62582 8.20567 8.78643 8.20567C9.31487 8.20567 9.80924 8.25614 10.2587 8.35275C10.091 10.4113 9.10773 10.7455 8.24142 10.7923Z" />+ <path d="M11.542 7.45221C11.4773 7.42124 11.4117 7.39144 11.3452 7.3629C11.2295 5.22955 10.0637 4.0082 8.1064 3.9957C8.09753 3.99565 8.08871 3.99565 8.07984 3.99565C6.90909 3.99565 5.9354 4.49538 5.33609 5.40474L6.41258 6.14319C6.86028 5.46393 7.56291 5.31912 8.08036 5.31912C8.08634 5.31912 8.09234 5.31913 8.09825 5.31918C8.74273 5.32329 9.22906 5.51067 9.54383 5.87609C9.77289 6.14213 9.92609 6.50977 10.002 6.97373C9.43055 6.87662 8.81258 6.84676 8.15195 6.88463C6.29099 6.99183 5.09462 8.07718 5.17497 9.58531C5.21574 10.3503 5.59685 11.0084 6.24805 11.4384C6.79863 11.8018 7.50773 11.9795 8.24471 11.9393C9.21797 11.8859 9.98148 11.5146 10.5141 10.8356C10.9187 10.32 11.1745 9.6518 11.2875 8.80984C11.7513 9.08977 12.0951 9.45813 12.2849 9.90094C12.6077 10.6537 12.6266 11.8906 11.6173 12.8991C10.733 13.7825 9.67 14.1647 8.06355 14.1765C6.28158 14.1633 4.93389 13.5918 4.05766 12.4779C3.23715 11.4348 2.8131 9.92828 2.79728 8C2.8131 6.0717 3.23715 4.56513 4.05766 3.52209C4.93389 2.4082 6.28155 1.83672 8.06353 1.82348C9.85844 1.83682 11.2296 2.41105 12.1394 3.53031C12.5855 4.07919 12.9218 4.76944 13.1435 5.57424L14.405 5.23767C14.1363 4.24705 13.7134 3.39341 13.1379 2.68547C11.9716 1.25052 10.2658 0.515246 8.06793 0.5H8.05913C5.86575 0.515193 4.17907 1.25327 3.04596 2.6937C2.03765 3.9755 1.51753 5.75904 1.50005 7.99473L1.5 8L1.50005 8.00527C1.51753 10.2409 2.03765 12.0245 3.04596 13.3063C4.17907 14.7467 5.86575 15.4848 8.05913 15.5H8.06793C10.018 15.4865 11.3925 14.9759 12.5248 13.8446C14.0063 12.3645 13.9617 10.5093 13.4734 9.37039C13.1231 8.55367 12.4552 7.89033 11.542 7.45221ZM8.17504 10.6177C7.35941 10.6637 6.51206 10.2976 6.47028 9.51344C6.43931 8.93203 6.88405 8.28328 8.22509 8.206C8.37867 8.19714 8.52938 8.19281 8.67742 8.19281C9.16453 8.19281 9.62023 8.24013 10.0345 8.3307C9.88 10.2605 8.97359 10.5739 8.17504 10.6177Z" /></svg>);}@@ -78,6 +78,30 @@ export function XLogo(props: SvgProps) {);}+export function InstagramLogo(props: SvgProps) {+ return (+ <svg+ viewBox="0 0 16 16"+ fill="currentColor"+ xmlns="http://www.w3.org/2000/svg"+ {...props}>+ <path d="M4.894.552C4.096.59 3.55.717 3.074.905a3.7 3.7 0 0 0-1.326.867 3.7 3.7 0 0 0-.863 1.33C.7 3.578.575 4.123.54 4.921.505 5.722.497 5.979.5 8.015c.005 2.037.014 2.292.053 3.093.038.797.165 1.342.352 1.819.192.493.45.91.867 1.326.418.416.836.672 1.33.863.478.184 1.023.31 1.821.345.799.035 1.056.043 3.092.04 2.036-.005 2.292-.014 3.092-.052s1.342-.165 1.819-.352c.493-.193.91-.45 1.327-.867.415-.418.671-.836.862-1.33.185-.478.31-1.023.345-1.82.035-.801.043-1.057.04-3.093-.005-2.037-.014-2.292-.052-3.092s-.165-1.343-.352-1.82a3.7 3.7 0 0 0-.867-1.326 3.7 3.7 0 0 0-1.33-.863C12.42.701 11.876.575 11.078.54S10.023.497 7.986.5C5.949.506 5.694.514 4.894.553m.087 13.559c-.73-.032-1.128-.154-1.392-.255-.35-.135-.6-.299-.864-.56a2.3 2.3 0 0 1-.563-.861c-.102-.265-.226-.661-.26-1.392-.038-.79-.045-1.028-.05-3.03-.004-2.003.004-2.24.038-3.03.031-.731.154-1.129.255-1.393.135-.35.298-.6.56-.864.261-.263.511-.425.861-.562.264-.103.661-.226 1.392-.26.79-.038 1.028-.046 3.03-.05s2.24.003 3.03.038c.731.031 1.13.153 1.393.255.35.135.6.297.864.559.263.262.426.511.563.862.103.263.226.66.26 1.391.038.791.046 1.028.05 3.03s-.003 2.24-.038 3.03c-.032.731-.153 1.129-.255 1.393-.135.35-.298.6-.56.864a2.3 2.3 0 0 1-.861.562c-.264.104-.661.227-1.392.261-.79.037-1.027.045-3.03.05-2.003.004-2.24-.004-3.03-.038m6.114-10.12a.9.9 0 1 0 1.799-.002.9.9 0 0 0-1.8.003M4.149 8.008a3.85 3.85 0 1 0 7.702-.014 3.85 3.85 0 0 0-7.702.014M5.5 8.005a2.5 2.5 0 1 1 5-.01 2.5 2.5 0 0 1-5 .01" />+ </svg>+ );+}++export function FacebookLogo(props: SvgProps) {+ return (+ <svg+ viewBox="0 0 16 16"+ fill="currentColor"+ xmlns="http://www.w3.org/2000/svg"+ {...props}>+ <path d="M16 8.03C16 3.594 12.418 0 8 0S0 3.595 0 8.03a8.03 8.03 0 0 0 6.067 7.792v-5.339h-1.65V8.03h1.65V6.972c0-2.733 1.233-4 3.906-4 .507 0 1.381.1 1.74.2v2.224c-.19-.02-.518-.03-.925-.03-1.312 0-1.819.499-1.819 1.796v.867h2.614l-.45 2.454H8.97V16C12.931 15.52 16 12.135 16 8.03" />+ </svg>+ );+}+export function MetaOpenSourceLogo(props: SvgProps) {return (<svgdiff --git a/apps/docsite/src/constants.ts b/apps/docsite/src/constants.tsindex 7e1ed45e6b..9ffc69a70e 100644--- a/apps/docsite/src/constants.ts+++ b/apps/docsite/src/constants.ts@@ -1,6 +1,11 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-export const GITHUB_REPO = 'https://github.com/facebookexperimental/xds';+export const GITHUB_REPO = 'https://github.com/facebook/astryx';++export const FACEBOOK_URL = 'https://www.facebook.com/astryxdesign';+export const INSTAGRAM_URL = 'https://www.instagram.com/astryxdesign';+export const THREADS_URL = 'https://www.threads.com/@astryxdesign';+export const X_URL = 'https://x.com/Astryxdesign';/*** Public GitHub Pages deployment for the site (Storybook, sandbox, and the@@ -8,7 +13,7 @@ export const GITHUB_REPO = 'https://github.com/facebookexperimental/xds';* See .github/workflows/deploy.yml — the site is published to gh-pages with* no CNAME, so it resolves to the org's github.io subpath.*/-export const GITHUB_PAGES = 'https://facebookexperimental.github.io/xds/';+export const GITHUB_PAGES = 'https://facebook.github.io/astryx';/*** Astryx brand blue — logo/wordmark only (not wired to any semantic token).