Skip to content

Commit

Permalink
Update sketch
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Oct 14, 2024
1 parent ee943e2 commit 7b13708
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/libraries/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export type Library = {
handleRedirects?: (href: string) => void
hideCodesandboxUrl?: true
hideStackblitzUrl?: true
showVercelUrl?: true
}

export const libraries = [
Expand Down
1 change: 1 addition & 0 deletions app/libraries/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ export const routerProject: Library = {
scarfId: '3d14fff2-f326-4929-b5e1-6ecf953d24f4',
defaultDocs: 'framework/react/overview',
hideCodesandboxUrl: true,
showVercelUrl: true,
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default function Example() {

const hideCodesandbox = library.hideCodesandboxUrl
const hideStackblitz = library.hideStackblitzUrl
const showVercel = library.showVercelUrl

return (
<div className="flex-1 flex flex-col min-h-0 overflow-auto">
Expand All @@ -66,10 +67,18 @@ export default function Example() {
{capitalize(framework)} Example: {slugToTitle(_splat)}
</span>
<div className="flex items-center gap-4 flex-wrap font-normal text-xs">
{showVercel ? (
<a
href={`https://vercel.com/new/clone?repository-url=${githubUrl}`}
>
<img src="https://vercel.com/button" alt="Deploy with Vercel" />
</a>
) : null}
<a
href={githubUrl}
target="_blank"
className="flex gap-1 items-center"
rel="noreferrer"
>
<FaExternalLinkAlt /> Github
</a>
Expand All @@ -78,6 +87,7 @@ export default function Example() {
href={stackBlitzUrl}
target="_blank"
className="flex gap-1 items-center"
rel="noreferrer"
>
<FaExternalLinkAlt /> StackBlitz
</a>
Expand All @@ -87,6 +97,7 @@ export default function Example() {
href={codesandboxUrl}
target="_blank"
className="flex gap-1 items-center"
rel="noreferrer"
>
<FaExternalLinkAlt /> CodeSandbox
</a>
Expand Down
Binary file modified media/brand.sketch
Binary file not shown.

0 comments on commit 7b13708

Please sign in to comment.