Skip to content

syntaxsage-tech/my-portfolio

Repository files navigation

HeroSection Component

A dark-mode, Matrix-green hero section for a Web3 Developer portfolio. Built with Next.js 14 (App Router) + Framer Motion.


Files

components/
├── HeroSection.jsx              # Main hero section
├── HeroSection.module.css       # Hero styles & design tokens
├── ParticleBackground.jsx       # Animated particle canvas
└── ParticleBackground.module.css

Setup

1. Install dependencies

npm install framer-motion

2. Add Google Fonts (optional but recommended)

In app/layout.jsx:

import { Syne } from "next/font/google";

const syne = Syne({ subsets: ["latin"], weight: ["400", "700", "800"] });

export default function RootLayout({ children }) {
  return (
    <html lang="en">
      <body className={syne.className}>{children}</body>
    </html>
  );
}

3. Drop into your page

// app/page.jsx
import HeroSection from "@/components/HeroSection";

export default function Home() {
  return (
    <main>
      <HeroSection />
    </main>
  );
}

Customisation

What Where
Name / bio text HeroSection.jsx — content block
GitHub URL HeroSection.jsxhref on btn
Contact email HeroSection.jsxmailto: href
Stats numbers HeroSection.jsxstats array
Terminal lines HeroSection.jsxTerminalLine
Colors / fonts HeroSection.module.css :root
Particle count ParticleBackground.jsxPARTICLE_COUNT

About

Web3 portfolio site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors