Skip to content

Commit

Permalink
add ui home
Browse files Browse the repository at this point in the history
  • Loading branch information
karlavasquez8 committed Apr 24, 2024
1 parent 0c9817c commit 7db08de
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 36 deletions.
81 changes: 46 additions & 35 deletions packages/nextjs/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,53 @@ import Image from "next/image";
import type { NextPage } from "next";

const Home: NextPage = () => {
return (
<div className="flex items-center flex-col flex-grow pt-10">
<div className="px-5 w-[90%] md:w-[75%]">
<h1 className="text-center mb-6">
<span className="block text-2xl mb-2">SpeedRunStark</span>
<span className="block text-4xl font-bold">Challenge #1: 🥩 Decentralized Staking App</span>
</h1>
<div className="flex flex-col items-center justify-center">
<Image
src="/hero.png"
width="727"
height="231"
alt="challenge banner"
className="rounded-xl border-4 border-primary"
/>
<div className="max-w-3xl">
<p className="text-center text-lg mt-8">
🦸 A superpower of Ethereum is allowing you, the builder, to create a simple set of rules that an
adversarial group of players can use to work together. In this challenge, you create a decentralized
application where users can coordinate a group funding effort. If the users cooperate, the money is
collected in a second smart contract. If they defect, the worst that can happen is everyone gets their
money back. The users only have to trust the code.
</p>
<p className="text-center text-lg">
🌟 The final deliverable is deploying a Dapp that lets users send ether to a contract and stake if the
conditions are met, then deploy your app to a public webserver. Submit the url on{" "}
<a href="https://speedrunstark.com/" target="_blank" rel="noreferrer" className="underline">
SpeedRunStark.com
</a>{" "}
!
</p>
</div>
</div>
</div>
return (
<div className="flex items-center flex-col flex-grow pt-10">
<div className="px-5 w-[90%] md:w-[75%]">
<h1 className="text-center mb-6">
<span className="block text-2xl mb-2">SpeedRunStark</span>
<span className="block text-4xl font-bold">
Challenge #1: 🥩 Decentralized Staking App
</span>
</h1>
<div className="flex flex-col items-center justify-center">
<Image
src="/hero.png"
width="727"
height="231"
alt="challenge banner"
className="rounded-xl border-4 border-primary"
/>
<div className="max-w-3xl">
<p className="text-center text-lg mt-8">
🦸 A superpower of Ethereum is allowing you, the builder, to
create a simple set of rules that an adversarial group of players
can use to work together. In this challenge, you create a
decentralized application where users can coordinate a group
funding effort. If the users cooperate, the money is collected in
a second smart contract. If they defect, the worst that can happen
is everyone gets their money back. The users only have to trust
the code.
</p>
<p className="text-center text-lg">
🌟 The final deliverable is deploying a Dapp that lets users send
ether to a contract and stake if the conditions are met, then
deploy your app to a public webserver. Submit the url on{" "}
<a
href="https://speedrunstark.com/"
target="_blank"
rel="noreferrer"
className="underline"
>
SpeedRunStark.com
</a>{" "}
!
</p>
</div>
</div>
);
</div>
</div>
);
};

export default Home;
7 changes: 6 additions & 1 deletion packages/nextjs/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ import { usePathname } from "next/navigation";
import { useOutsideClick } from "~~/hooks/scaffold-stark";
import { CustomConnectButton } from "~~/components/scaffold-stark/CustomConnectButton";
import MenuItem from "~~/components/MenuItem/MenuItem";
import {Bars3Icon, BugAntIcon, CircleStackIcon, InboxStackIcon} from "@heroicons/react/24/outline";
import {
Bars3Icon,
BugAntIcon,
CircleStackIcon,
InboxStackIcon,
} from "@heroicons/react/24/outline";

export type HeaderMenuLink = {
label: string;
Expand Down

0 comments on commit 7db08de

Please sign in to comment.