How to Build a Premium Portfolio with Next.js
A comprehensive guide on building a futuristic, glassmorphism-inspired portfolio using Next.js, Tailwind CSS, and Framer Motion.
Web Development1 min read
Building the Future of Web Design
Welcome to my new blog! This post demonstrates how you can easily write and publish blog posts using simple Markdown files.
The Tech Stack
To build a premium portfolio, you need a modern tech stack:
- Next.js: For fast, server-rendered pages and seamless routing.
- Tailwind CSS: For utility-first, rapid styling.
- Framer Motion: For buttery-smooth animations and transitions.
Code Example
Here is a quick example of a Framer Motion component:
import { motion } from 'framer-motion'; export default function AnimatedCard() { return ( <motion.div whileHover={{ scale: 1.05 }} className="glass-card p-6" > <h2>Premium Design</h2> <p>Hover me to see the effect!</p> </motion.div> ); }
How to add a new post
To add a new post to this blog, all you need to do is:
- Create a new
.mdfile inside thecontent/blog/folder. - Add the frontmatter (the metadata at the top of the file) containing the
title,date,description, andcategory. - Write your content in Markdown!
That's it! The Next.js app will automatically parse the markdown, apply syntax highlighting to your code blocks, and render it beautifully on the site.
0 comments