Skip to content
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
3 changes: 2 additions & 1 deletion apps/explorer/src/app/[network]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { GlobalSearchBar, Stats, TopAccounts, TopOperators } from "@/components/Home";
import { ConsoleHero, GlobalSearchBar, Stats, TopAccounts, TopOperators } from "@/components/Home";

function Page() {
return (
<>
<ConsoleHero />
<GlobalSearchBar />
<Stats />
<TopAccounts />
Expand Down
43 changes: 43 additions & 0 deletions apps/explorer/src/components/Home/ConsoleHero.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { PageSection } from "@filecoin-foundation/ui-filecoin/PageSection";
import { ArrowRight } from "lucide-react";
import Link from "next/link";
import { PATHS } from "@/constants/paths";

/**
* Console entry point, rendered above search and stats on the network home page.
*/
const ConsoleHero = () => (
<PageSection backgroundVariant='light' paddingVariant='none'>
<div className='w-full pt-10 xl:pt-2'>
<div className='relative overflow-hidden rounded-xl border px-6 py-14 sm:py-16'>
<div
aria-hidden='true'
className='absolute inset-0 [background-image:radial-gradient(circle,rgb(228_228_231)_1.5px,transparent_1.5px)] [background-size:20px_20px] [mask-image:radial-gradient(ellipse_90%_100%_at_50%_40%,black,transparent_75%)]'
/>

<div className='relative mx-auto flex max-w-2xl flex-col items-center text-center'>
<span className='text-xs font-medium uppercase tracking-widest text-muted-foreground'>
Filecoin Onchain Cloud Console
</span>
<h1 className='mt-3 font-heading text-balance text-3xl/10 font-medium sm:text-4xl/12 sm:tracking-tight'>
Manage your Filecoin services
</h1>
<p className='mt-3 max-w-xl text-balance text-muted-foreground'>
Manage services, billing, notifications, and more.
</p>

{/* Deliberately not the design system's `Button`*/}
<Link
href={PATHS.CONSOLE.path}
className='focus:brand-outline mt-8 inline-flex items-center gap-2 rounded-md bg-zinc-900 px-5 py-2.5 text-sm font-medium text-white transition-colors hover:bg-zinc-700'
>
Open Console
<ArrowRight className='size-4' aria-hidden='true' />
</Link>
</div>
</div>
</div>
</PageSection>
);

export default ConsoleHero;
1 change: 1 addition & 0 deletions apps/explorer/src/components/Home/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { default as ConsoleHero } from "./ConsoleHero";
export { default as GlobalSearchBar } from "./GlobalSearchBar";
export { default as Stats } from "./Stats";
export { default as TopAccounts } from "./TopAccounts";
Expand Down