Skip to content
Open
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
2 changes: 1 addition & 1 deletion frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function RootLayout({
<ThemeProvider attribute="class" defaultTheme="dark">
<section className="dark relative overflow-hidden">
<BackgroundGradients />
<div className="mx-auto min-h-screen p-8 md:max-w-[54rem]">
<div className="mx-auto min-h-screen p-8 md:max-w-[54rem] flex flex-col items-center justify-center">
{children}
</div>
</section>
Expand Down
26 changes: 25 additions & 1 deletion frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import UserInfo from "@/components/UserInfo";
import { useLatestBlobs } from "@/data/useLatestBlobs";
import { useSubmitBlob } from "@/data/useSubmitBlob";
import { useUserBalance } from "@/data/useUserBalance";
import { Button } from "@/components/ui/button";

const DEPOSIT_CONTRACT_ADDRESS =
process.env.NEXT_PUBLIC_DEPOSIT_CONTRACT_ADDRESS;
Expand All @@ -33,10 +34,33 @@ if (!DEPOSIT_CONTRACT_ADDRESS || !isAddress(DEPOSIT_CONTRACT_ADDRESS)) {
}

const Home = () => {
return (
<div className="align-center flex h-full w-full flex-col items-center justify-center gap-2 rounded-sm bg-background/40 p-8 py-16 backdrop-blur-md">
<h1 className="text-2xl font-bold tracking-tight">
We've turned off the BlobFusion demo
</h1>
<p className="mb-5 text-lg text-white">
But you can still{" "}
<a
href="https://github.com/ephema/blobfusion"
className="text-blue-500"
>
check out the code
</a>{" "}
and try it out yourself
</p>
<Button asChild>
<a href="https://github.com/ephema/blobfusion">Open GitHub</a>
</Button>
</div>
);
};

const HomeOld = () => {
const { connectors, connect } = useConnect();
const { address, isConnected, chainId } = useAccount();
const { sendTransactionAsync } = useSendTransaction();
const { chains, switchChainAsync } = useSwitchChain();
const { switchChainAsync } = useSwitchChain();
const { signMessageAsync } = useSignMessage();

const [newBlobDialogOpen, setNewBlobDialogOpen] = useState(false);
Expand Down