Skip to content

Commit

Permalink
fix(site): minor layout adjustment to site
Browse files Browse the repository at this point in the history
  • Loading branch information
GarthDB committed Dec 6, 2023
1 parent 68e2f92 commit 146ecc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions docs/site/components/layout.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import Head from "next/head";
import Link from "next/link";

const name = "Spectrum Components API";
export const siteTitle = "Next.js Sample Website";
export const siteTitle = "Spectrum Components API";

export default function Layout({ children, home }) {
return (
Expand All @@ -11,20 +10,19 @@ export default function Layout({ children, home }) {
<link rel="icon" type="image/png" href="/favicon.png" />
<meta
name="description"
content="Learn how to build a personal website using Next.js"
content="API documentation for components options in Spectrum, Adobe's design system"
/>
<meta
property="og:image"
content={`https://og-image.vercel.app/${encodeURI(
siteTitle,
)}.png?theme=light&md=0&fontSize=75px&images=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fnextjs-black-logo.svg`}
name="twitter:image"
content="https://spectrum.adobe.com/static/landscape-2.png"
/>
<meta name="og:title" content={siteTitle} />
<meta name="twitter:card" content="summary_large_image" />
</Head>
<header>
<h2>
<Link href="/">{name}</Link>
<Link href="/">{siteTitle}</Link>
</h2>
</header>
<main>{children}</main>
Expand Down
2 changes: 1 addition & 1 deletion docs/site/pages/tokens/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function TokenValue({ token }) {
</>
);
case "color":
return <pre>{RGBAToHexA(token.value)}</pre>;
return <code>{RGBAToHexA(token.value)}</code>;
default:
return <pre>JSON.stringify(token)</pre>;
}
Expand Down

0 comments on commit 146ecc5

Please sign in to comment.