Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
austintgriffith committed May 30, 2024
1 parent f022a3a commit ba2efa3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 76 deletions.
69 changes: 11 additions & 58 deletions packages/nextjs/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,74 +1,27 @@
"use client";

import Link from "next/link";
import type { NextPage } from "next";
import { useAccount } from "wagmi";
import { BugAntIcon, MagnifyingGlassIcon } from "@heroicons/react/24/outline";
import { Address } from "~~/components/scaffold-eth";

const Home: NextPage = () => {
const { address: connectedAddress } = useAccount();

return (
<>
<div className="flex items-center flex-col flex-grow pt-10">
<div className="px-5">
<h1 className="text-center">
<span className="block text-2xl mb-2">Welcome to</span>
<span className="block text-4xl font-bold">BuidlGuidl Nodes</span>
{/* <pre>{'/bin/bash -c "$(curl -fsSL https://nodes.buidlguidl.com/bgnodes.sh)"'}</pre> */}
<pre>{`curl -s https://nodes.buidlguidl.com/bgnodes.sh | /bin/bash`}</pre>
<span className="block text-4xl font-bold">🌐 BuidlGuidl Nodes 📡</span>
<span className="block text-2xl mt-4">run an ethereum node in one command</span>
<span className="block text-2xl mb-2 mt-8">mac/linux:</span>
<pre className="bg-black text-white p-8 rounded">
<code>{`curl -s https://nodes.buidlguidl.com/bgnodes.sh | /bin/bash`}</code>
</pre>
</h1>

<h1 className="text-center">
<span className="block text-2xl mb-2">Welcome to</span>
<span className="block text-4xl font-bold">BuidlGuidl Nodes</span>
<pre>{`wget -qO- https://nodes.buidlguidl.com/bgnodes.sh | /bin/bash`}</pre>
<span className="block text-2xl mb-2">windows:</span>
<pre className="bg-black text-white p-8 rounded">
<code>{`wget -qO- https://nodes.buidlguidl.com/bgnodes.sh | /bin/bash`}</code>
</pre>
</h1>
<div className="flex justify-center items-center space-x-2">
<p className="my-2 font-medium">Connected Address:</p>
<Address address={connectedAddress} />
</div>
<p className="text-center text-lg">
Get started by editing{" "}
<code className="italic bg-base-300 text-base font-bold max-w-full break-words break-all inline-block">
packages/nextjs/app/page.tsx
</code>
</p>
<p className="text-center text-lg">
Edit your smart contract{" "}
<code className="italic bg-base-300 text-base font-bold max-w-full break-words break-all inline-block">
YourContract.sol
</code>{" "}
in{" "}
<code className="italic bg-base-300 text-base font-bold max-w-full break-words break-all inline-block">
packages/hardhat/contracts
</code>
</p>
</div>

<div className="flex-grow bg-base-300 w-full mt-16 px-8 py-12">
<div className="flex justify-center items-center gap-12 flex-col sm:flex-row">
<div className="flex flex-col bg-base-100 px-10 py-10 text-center items-center max-w-xs rounded-3xl">
<BugAntIcon className="h-8 w-8 fill-secondary" />
<p>
Tinker with your smart contract using the{" "}
<Link href="/debug" passHref className="link">
Debug Contracts
</Link>{" "}
tab.
</p>
</div>
<div className="flex flex-col bg-base-100 px-10 py-10 text-center items-center max-w-xs rounded-3xl">
<MagnifyingGlassIcon className="h-8 w-8 fill-secondary" />
<p>
Explore your local transactions with the{" "}
<Link href="/blockexplorer" passHref className="link">
Block Explorer
</Link>{" "}
tab.
</p>
</div>
</div>
</div>
</div>
</>
Expand Down
23 changes: 5 additions & 18 deletions packages/nextjs/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"use client";

import React, { useCallback, useRef, useState } from "react";
import Image from "next/image";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { Bars3Icon, BugAntIcon } from "@heroicons/react/24/outline";
import { Bars3Icon } from "@heroicons/react/24/outline";
import { FaucetButton, RainbowKitCustomConnectButton } from "~~/components/scaffold-eth";
import { useOutsideClick } from "~~/hooks/scaffold-eth";

Expand All @@ -14,17 +13,7 @@ type HeaderMenuLink = {
icon?: React.ReactNode;
};

export const menuLinks: HeaderMenuLink[] = [
{
label: "Home",
href: "/",
},
{
label: "Debug Contracts",
href: "/debug",
icon: <BugAntIcon className="h-4 w-4" />,
},
];
export const menuLinks: HeaderMenuLink[] = [];

export const HeaderMenuLinks = () => {
const pathname = usePathname();
Expand Down Expand Up @@ -89,12 +78,10 @@ export const Header = () => {
)}
</div>
<Link href="/" passHref className="hidden lg:flex items-center gap-2 ml-4 mr-6 shrink-0">
<div className="flex relative w-10 h-10">
<Image alt="SE2 logo" className="cursor-pointer" fill src="/logo.svg" />
</div>
<div className="flex relative w-10 h-10 text-3xl">🛰️</div>
<div className="flex flex-col">
<span className="font-bold leading-tight">Scaffold-ETH</span>
<span className="text-xs">Ethereum dev stack</span>
<span className="font-bold leading-tight">BuidlGuidl</span>
<span className="text-xs">nodes</span>
</div>
</Link>
<ul className="hidden lg:flex lg:flex-nowrap menu menu-horizontal px-1 gap-2">
Expand Down

0 comments on commit ba2efa3

Please sign in to comment.