-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: quick prototype for apps in the sidebar (wip)
- Loading branch information
Showing
6 changed files
with
71 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { Link } from "react-router-dom"; | ||
import AppHeader from "src/components/AppHeader"; | ||
import { NostrWalletConnectIcon } from "src/components/icons/NostrWalletConnectIcon"; | ||
import { suggestedApps } from "src/components/SuggestedAppData"; | ||
import { Button } from "src/components/ui/button"; | ||
|
||
const BITREFILL_APP_ID = "bitrefill"; | ||
|
||
export function Bitrefill() { | ||
const app = suggestedApps.find((x) => x.id === BITREFILL_APP_ID); | ||
|
||
return ( | ||
<div className="grid gap-5"> | ||
<AppHeader | ||
title={ | ||
<> | ||
<div className="flex flex-row items-center"> | ||
<img src={app?.logo} className="w-14 h-14 rounded-lg mr-4" /> | ||
<div className="flex flex-col"> | ||
<div>{app?.title}</div> | ||
<div className="text-sm font-normal text-muted-foreground"> | ||
{app?.description} | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
} | ||
description="" | ||
contentRight={ | ||
<Link to={`/apps/new?app=${app?.id}`}> | ||
<Button variant="outline"> | ||
<NostrWalletConnectIcon className="w-4 h-4 mr-2" /> | ||
Connect to {app?.title} | ||
</Button> | ||
</Link> | ||
} | ||
/> | ||
<iframe | ||
className="w-full rounded-lg flex-1" | ||
width="375" | ||
height="667" | ||
src="https://embed.bitrefill.com/?showPaymentInfo=true" | ||
sandbox="allow-same-origin allow-popups allow-scripts allow-forms" | ||
></iframe> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters