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 referral info on front page #289

Merged
merged 2 commits into from
Oct 31, 2023
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
4 changes: 4 additions & 0 deletions packages/app/public/breakpoint.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/app/src/hub/HubApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ const _HubApp: ForwardRefRenderFunction<
className="block w-full mt-4 leading-none"
>
<div className="relative inline-block">
<span className="text-2xl">Referral</span>
<span className="text-2xl">Refer</span>
</div>
<br />
<IoChevronDownOutline
Expand Down
5 changes: 4 additions & 1 deletion packages/app/src/hub/components/HubIntro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { WalletMultiButton } from "@solana/wallet-adapter-react-ui";
import { type FC } from "react";

import { CarbonRecovered, LogoIcon, LogoText } from "../../common/components";
import { BreakpointHero } from "../../referral/BreakpointHero";

const HubIntro: FC<{
show: boolean;
Expand Down Expand Up @@ -83,8 +84,10 @@ const HubIntro: FC<{
leave="transition-opacity ease-out duration-500"
>
<WalletMultiButton className="!bg-green hover:!bg-green-light !text-white">
Start reducing CO<sub>2</sub>&nbsp;emissions
Connect Wallet
{/* Start reducing CO<sub>2</sub>&nbsp;emissions */}
</WalletMultiButton>
<BreakpointHero />
<CarbonRecovered />
</Transition.Child>
</Transition>
Expand Down
13 changes: 13 additions & 0 deletions packages/app/src/referral/BreakpointHero.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { type FC } from "react";

export const BreakpointHero: FC = () => (
<div className="card shadow-xl w-96 text-gray-800">
<figure>
<h2 className="card-title">Win €200 at&nbsp;</h2>
<img src="/breakpoint.svg" alt="Breakpoint" />
</figure>
<div className="card-body items-center text-center">
<p className="text-lg">Connect wallet to get your referral link</p>
</div>
</div>
);