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
1 change: 1 addition & 0 deletions apps/docs/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
--color-fd-primary: #ff8c66;
--color-fd-background: #fdfdfc;
--color-fd-foreground: #171717;
--fd-layout-width: 1400px;
}

.dark {
Expand Down
14 changes: 10 additions & 4 deletions apps/docs/components/landing/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,19 @@ export function Footer({ className }: { className?: string }) {
</Link>
</li>
<li>
<Link href="/blog" className="hover:text-primary transition-colors">
Blog
<Link
href="https://solana.com/developers/guides"
className="hover:text-primary transition-colors"
>
Guides
</Link>
</li>
<li>
<Link href="/examples" className="hover:text-primary transition-colors">
Examples
<Link
href="https://solana.com/developers/templates"
className="hover:text-primary transition-colors"
>
Templates
</Link>
</li>
</ul>
Expand Down
25 changes: 2 additions & 23 deletions apps/docs/components/landing/hero.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
'use client';

import { motion } from 'framer-motion';
import { ArrowRight, Check, Copy } from 'lucide-react';
import { ArrowRight } from 'lucide-react';
import Link from 'next/link';
import { useState } from 'react';

export function Hero() {
const [copied, setCopied] = useState(false);

const onCopy = () => {
navigator.clipboard.writeText('npm install @solana/client');
setCopied(true);
setTimeout(() => setCopied(false), 2000);
};

return (
<section className="relative overflow-hidden pt-32 pb-20 lg:pt-40 lg:pb-28">
<div className="container relative z-10 mx-auto px-4 text-center">
Expand Down Expand Up @@ -91,19 +82,7 @@ export function Hero() {
<div className="w-3 h-3 rounded-full bg-[#27c93f]" />
</div>
<div className="text-xs text-white/40 font-sans select-none">examples/starter.ts</div>
<div className="flex items-center gap-2">
<button
type="button"
onClick={onCopy}
className="text-white/40 hover:text-white transition-colors"
>
{copied ? (
<Check className="w-4 h-4 text-green-400" />
) : (
<Copy className="w-4 h-4" />
)}
</button>
</div>
<div className="w-4 h-4" />
</div>

{/* Code Content */}
Expand Down
Loading