I'd be happy to help you build an impressive portfolio website. Let's create something modern and unique with Next.js and Tailwind CSS.
Here's a streamlined approach for a standout portfolio:
First, let's set up the project:
npx create-next-app portfolio-site
cd portfolio-site
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
For the tailwind.config.js file:
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
colors: {
primary: '#0f172a',
secondary: '#64748b',
accent: '#06b6d4',
},
fontFamily: {
sans: ['Inter', 'sans-serif'],
},
animation: {
'gradient-x': 'gradient-x 15s ease infinite',
},
keyframes: {
'gradient-x': {
'0%, 100%': { backgroundPosition: '0% 50%' },
'50%': { backgroundPosition: '100% 50%' },
},
},
},
},
plugins: [],
}
Now, let's create a sleek homepage in pages/index.js:
import Head from 'next/head'
import { useState, useEffect } from 'react'
import Link from 'next/link'
export default function Home() {
const [scrolled, setScrolled] = useState(false)
useEffect(() => {
const handleScroll = () => {
setScrolled(window.scrollY > 50)
}
window.addEventListener('scroll', handleScroll)
return () => window.removeEventListener('scroll', handleScroll)
}, [])
return (
<div className="min-h-screen bg-primary text-white">
<Head>
<title>Your Name | Developer Portfolio</title>
<meta name="description" content="Portfolio showcasing my work as a developer" />
<link rel="icon" href="/favicon.ico" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet" />
</Head>
<header className={`fixed w-full transition-all duration-300 z-50 ${scrolled ? 'bg-primary/90 backdrop-blur-sm py-4' : 'py-6'}`}>
<div className="container mx-auto px-6 flex justify-between items-center">
<Link href="/">
<span className="text-2xl font-bold bg-gradient-to-r from-accent to-purple-500 bg-clip-text text-transparent">YN</span>
</Link>
<nav>
<ul className="flex space-x-8">
<li><Link href="#work" className="hover:text-accent transition-colors">Work</Link></li>
<li><Link href="#about" className="hover:text-accent transition-colors">About</Link></li>
<li><Link href="#contact" className="hover:text-accent transition-colors">Contact</Link></li>
</ul>
</nav>
</div>
</header>
<main>
<section className="h-screen flex items-center relative overflow-hidden">
<div className="absolute inset-0 bg-gradient-to-br from-primary via-primary/90 to-primary z-0"></div>
<div className="absolute inset-0 opacity-10">
<div className="absolute top-0 left-0 w-full h-full bg-[radial-gradient(circle_at_center,_var(--tw-gradient-stops))] from-accent/20 via-transparent to-transparent animate-pulse"></div>
</div>
<div className="container mx-auto px-6 relative z-10">
<h1 className="text-5xl md:text-7xl font-bold mb-6">
<span className="block">Hello, I'm</span>
<span className="bg-gradient-to-r from-accent to-purple-500 bg-clip-text text-transparent animate-gradient-x">Your Name</span>
</h1>
<p className="text-xl md:text-2xl text-gray-300 max-w-2xl mb-10">
A passionate developer crafting beautiful digital experiences with modern technologies.
</p>
<div className="flex flex-col sm:flex-row gap-4">
<a href="#work" className="px-8 py-3 bg-accent hover:bg-accent/90 text-white font-medium rounded-md transition-colors text-center">
View My Work
</a>
<a href="#contact" className="px-8 py-3 border border-white/20 hover:border-accent hover:text-accent transition-colors rounded-md text-center">
Get In Touch
</a>
</div>
</div>
</section>
{/* Add more sections for projects, about, contact, etc. */}
</main>
</div>
)
}
Would you like me to explain or break down this code?