Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add demo app links #765

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions examples/ui-demo/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import { Configuration } from "../components/configuration";
import { CodePreview } from "../components/preview/CodePreview";
import { AuthCardWrapper } from "../components/preview/AuthCardWrapper";
import { CodePreviewSwitch } from "../components/shared/CodePreviewSwitch";
import ExternalLink from "../components/shared/ExternalLink";
import { links } from "../utils/links";

const publicSans = Public_Sans({
subsets: ["latin"],
Expand All @@ -37,14 +39,18 @@ export default function Home() {
<div className="flex justify-between items-center">
<h2 className="font-semibold text-xl">Demo</h2>
<div className="flex gap-4 text-secondary">
<Button className="border border-gray-400">
Integration call
<PhoneIcon className="ml-2 h-4 w-4" />
</Button>
<Button className="border border-gray-400">
Quickstart guide
<ArrowUpRightIcon className="ml-2 h-4 w-4" />
</Button>
<ExternalLink href={links.integrationCall}>
<Button className="border border-gray-400">
Integration call
<PhoneIcon className="ml-2 h-4 w-4" />
</Button>
</ExternalLink>
<ExternalLink href={links.quickstartGuide}>
<Button className="border border-gray-400">
Quickstart guide
<ArrowUpRightIcon className="ml-2 h-4 w-4" />
</Button>
</ExternalLink>
</div>
</div>

Expand Down
8 changes: 4 additions & 4 deletions examples/ui-demo/src/components/topnav/TopNav.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Link from "next/link";
import { AlchemyFullLogo } from "../icons/alchemy";
import ExternalLink from "../shared/ExternalLink";
import { DOCS } from "@/src/utils/links";
import { links } from "@/src/utils/links";
import { GithubLogo } from "../icons/github";
import { ArrowUpRightIcon } from "../icons/arrow";

Expand All @@ -15,16 +15,16 @@ export function TopNav() {
<Link className="p-2 bg-gray-100 rounded-lg" href="#">
Demo
</Link>
<ExternalLink href={DOCS} className="p-2 hover:bg-gray-100 transition-colors rounded-lg">
<ExternalLink href={links.docs} className="p-2 hover:bg-gray-100 transition-colors rounded-lg">
Docs
</ExternalLink>
<ExternalLink href={DOCS} className="p-2 hover:bg-gray-100 transition-colors rounded-lg flex items-center gap-1 mr-4">
<ExternalLink href={links.docs} className="p-2 hover:bg-gray-100 transition-colors rounded-lg flex items-center gap-1 mr-4">
Examples
<ArrowUpRightIcon className="h-4 w-4" />
</ExternalLink>
</div>
<BarSeparator />
<GithubLogo />
<ExternalLink href={links.github}><GithubLogo /></ExternalLink>
</div>
</div>
</div>
Expand Down
8 changes: 7 additions & 1 deletion examples/ui-demo/src/utils/links.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
export const DOCS = 'https://accountkit.alchemy.com/getting-started/introduction.html'
export const links = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

docs: 'https://accountkit.alchemy.com/getting-started/introduction.html',
github: 'https://github.com/alchemyplatform/aa-sdk',
integrationCall: 'https://alchemy.chilipiper.com/book/inbound-support-router?ws_support__c=/wallet-services-support',
// TODO: update once we have final links
quickstartGuide: 'https://accountkit.alchemy.com/getting-started/introduction'
}
Loading