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
12 changes: 12 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@
"quoteStyle": "double"
}
},
"css": {
"parser": {
"cssModules": true,
"tailwindDirectives": true
},
"formatter": {
"enabled": true
},
"linter": {
"enabled": false
}
},
"assist": {
"enabled": true,
"actions": {
Expand Down
36 changes: 28 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/app/developers/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { ChainSpecsSection } from "@/components/sections/ChainSpecsSection";
import { ComparisonSection } from "@/components/sections/ComparisonSection";
import {
DevelopersHeroSection,
FaucetSection,
RpcEndpointsSection,
} from "@/components/sections/developers";
import { ResourcesSection } from "@/components/sections/ResourcesSection";
Expand All @@ -19,6 +20,7 @@ export default function DevelopersPage() {
<div className="min-h-screen bg-background text-foreground">
<FloatingNav />
<DevelopersHeroSection />
<FaucetSection />
<RpcEndpointsSection />
<ChainSpecsSection />
<ComparisonSection />
Expand Down
58 changes: 0 additions & 58 deletions src/components/sections/FaucetSection.tsx

This file was deleted.

62 changes: 62 additions & 0 deletions src/components/sections/developers/FaucetSection.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
"use client";

import { FaucetCard } from "@/components/shared/FaucetCard";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { DEVELOPERS_PAGE_CONTENT } from "@/constants/developers";
import { Droplets, ExternalLink, Sparkles } from "lucide-react";

export function FaucetSection() {
return (
<section id="faucet" className="section-primary py-24">
<div className="max-w-7xl mx-auto px-6">
<div className="text-center mb-16">
<h2 className="text-4xl md:text-5xl font-bold mb-6">
{DEVELOPERS_PAGE_CONTENT.faucet.title}
</h2>
<p className="text-xl text-muted-foreground max-w-3xl mx-auto">
{DEVELOPERS_PAGE_CONTENT.faucet.description}
</p>
</div>

<div className="grid gap-6 max-w-4xl mx-auto">
{DEVELOPERS_PAGE_CONTENT.faucet.faucets.map((faucet) => (
<FaucetCard
key={faucet.name}
icon={Droplets}
title={faucet.name}
subtitle={
<div className="flex items-center gap-1 text-sm text-muted-foreground">
<Sparkles className="w-3 h-3" />
<span>Free testnet tokens</span>
</div>
}
description={faucet.description}
action={
<Button asChild size="lg" className="group w-full md:w-auto">
<a
href={faucet.url}
target="_blank"
rel="noopener noreferrer"
>
<Droplets className="mr-2 h-5 w-5" />
Get Test Tokens
<ExternalLink className="ml-2 h-4 w-4 transition-transform group-hover:translate-x-1" />
</a>
</Button>
}
>
<div className="flex flex-wrap gap-2">
{faucet.networks.map((network) => (
<Badge key={network} variant="secondary" className="text-xs">
{network}
</Badge>
))}
</div>
</FaucetCard>
))}
</div>
</div>
</section>
);
}
1 change: 1 addition & 0 deletions src/components/sections/developers/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { DevelopersHeroSection } from "./DevelopersHeroSection";
export { FaucetSection } from "./FaucetSection";
export { RpcEndpointsSection } from "./RpcEndpointsSection";
Loading
Loading