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

Add logos to new account screen #349

Merged
merged 13 commits into from
Dec 2, 2021
14 changes: 12 additions & 2 deletions src/app/components/LinkButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ type Props = {
to: string;
title: string;
description?: string;
logo?: string;
};

export default function LinkButton({ to, title, description }: Props) {
export default function LinkButton({ to, title, description, logo }: Props) {
return (
<Link to={to} className="block">
<div className="p-4 bg-white flex justify-between items-center shadow overflow-hidden border-b border-gray-200 rounded-lg hover:bg-gray-50 transition duration-200">
Expand All @@ -17,7 +18,16 @@ export default function LinkButton({ to, title, description }: Props) {
<span className="text-sm text-gray-500">{description}</span>
)}
</div>
<CaretRightIcon className="h-5 w-5" />
<div>
<img
src={logo}
alt="logo"
width="75em"
height="75em"
className="inline rounded-lg mr-3"
/>
<CaretRightIcon className="h-5 w-5 inline" />
</div>
</div>
</Link>
);
Expand Down
12 changes: 11 additions & 1 deletion src/app/screens/Onboard/ChooseConnector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,36 @@ import ConnectLndHub from "../ConnectLndHub";
import ConnectLnbits from "../ConnectLnbits";
import NewWallet from "../NewWallet";

import lnbits from "/static/assets/icons/lnbits.png";
import lndhub from "/static/assets/icons/lndhub.png";
import lnd from "/static/assets/icons/lnd.png";
import alby from "/static/assets/icons/alby.png";

export default function ChooseConnector() {
const connectors = [
{
to: "lnd",
title: "LND",
description: "Connect to your LND node",
logo: lnd,
},
{
to: "lnd-hub",
title: "LNDHub (Bluewallet)",
description: "Connect to your Bluewallet mobile wallet",
logo: lndhub,
},
{
to: "lnbits",
title: "LNbits",
description: "Connect to your LNbits account",
logo: lnbits,
},
{
to: "create-wallet",
title: "Create a new wallet",
description: "We create and manage a lightning wallet for you",
logo: alby,
},
];

Expand All @@ -47,12 +56,13 @@ export default function ChooseConnector() {
lightning payments!
</p>
<div className="space-y-4">
{connectors.map(({ to, title, description }) => (
{connectors.map(({ to, title, description, logo }) => (
<LinkButton
key={to}
to={to}
title={title}
description={description}
logo={logo}
/>
))}
</div>
Expand Down
5 changes: 5 additions & 0 deletions src/custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ declare module "*.svg" {
const content: any;
export default content;
}

declare module "*.png" {
const content: any;
export default content;
}
Binary file added static/assets/icons/alby.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/assets/icons/lnbits.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/assets/icons/lnd.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/assets/icons/lndhub.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.