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 encrypted backups card to connect alby account page #798

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
30 changes: 18 additions & 12 deletions frontend/src/screens/ConnectAlbyAccount.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
CreditCard,
DatabaseBackup,
Headphones,
LifeBuoy,
Mail,
PartyPopper,
Zap,
} from "lucide-react";
import Container from "src/components/Container";
Expand Down Expand Up @@ -47,10 +47,19 @@ export function ConnectAlbyAccount({ connectUrl }: ConnectAlbyAccountProps) {
</CardDescription>
</CardHeader>
</Card>
<Card className="w-full">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will only work for LDK

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also, we do not know at startup if they will choose LDK, because this screen is shown before picking the backend type.

Copy link
Contributor Author

@rolznz rolznz Nov 29, 2024

Choose a reason for hiding this comment

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

I don't know how to do this without a*

*Encrypted backups are only available for the Alby Hub embedded node. Read more. (guide link)

Thoughts? @bumi @reneaaron

<CardHeader className="flex flex-col justify-center items-center text-center p-4">
<DatabaseBackup className="w-6 h-6" />
<CardTitle className="text-sm">Encrypted Backups</CardTitle>
<CardDescription className="text-xs">
Ensures you can always recover funds from lightning channels
</CardDescription>
</CardHeader>
</Card>
<Card className="w-full">
<CardHeader className="flex flex-col justify-center items-center text-center p-4">
<LifeBuoy className="w-6 h-6" />
<CardTitle className="text-sm">Support</CardTitle>
<CardTitle className="text-sm">Real Support</CardTitle>
<CardDescription className="text-xs">
Human support via live chat when you need a helping hand
</CardDescription>
Expand All @@ -74,17 +83,14 @@ export function ConnectAlbyAccount({ connectUrl }: ConnectAlbyAccountProps) {
</CardDescription>
</CardHeader>
</Card>
<Card className="w-full">
<CardHeader className="flex flex-col justify-center items-center text-center p-4">
<PartyPopper className="w-6 h-6" />
<CardTitle className="text-sm">and there's more...</CardTitle>
<CardDescription className="text-xs">
Claim your Nostr address, discover apps, etc
</CardDescription>
</CardHeader>
</Card>
</div>
<div className="flex flex-col items-center justify-center mt-8 gap-2">
<div className="flex flex-col justify-center items-center text-center p-4 mt-4">
<CardTitle className="text-sm">and there's more...</CardTitle>
<CardDescription className="text-xs">
Claim your Nostr address, discover apps, etc
</CardDescription>
</div>
<div className="flex flex-col items-center justify-center gap-2">
<LinkButton to={connectUrl || "/alby/auth"} size="lg">
Connect now
</LinkButton>
Expand Down
Loading