Dark/light theme toggle with state managed by React Context
Portfolio (DanyalAnsari) — Next.js Portfolio Template
By DanyalAnsari
A Next.js-based personal portfolio website template that includes a dark/light theme toggle, animated transitions, and sections for About, Services, Skills, project showcase, and a contact form.
Explore the design
Compare the page layouts and mobile experience. Open any screenshot for a closer look.
Preview provided in the project README.
One original preview is available. Open the full image to inspect the design.
Screenshots show visual appearance; interactive behavior may differ.
What stands out
A quick read of the recorded project description.
Styles organized with CSS Modules, with animated transitions provided by Motion
Includes common portfolio sections such as Hero, About, Works, and Contact
Provides a contact form and a project showcase area
Mobile-first responsive layout
MIT license, allowing modification, commercial use, and distribution of the code
Template Details
This is a personal portfolio website template built with Next.js, and the repository is under the MIT license. The page is composed of components such as Hero, About, Works, and Contact, and uses React Context to manage theme state, supporting dark and light mode switching. Styles are organized with CSS Modules, animations are provided by Motion, and the overall layout is organized in a mobile-first responsive manner.
The template includes common portfolio sections such as project showcase, About Me, Services, Skills and Expertise display, and a contact form. The repository README provides local running instructions: after cloning the repository, install dependencies, run npm run dev or yarn dev, and visit localhost:3000 in the browser to view the result; the build command is npm run build.
Customization is explained in the README: replace personal information in each component, modify theme colors in globals.css, add projects in the Works section, update contact information in the Contact component, and replace public/sample-resume.pdf as the resume file. The project structure includes app/components, app/context, app/assets, and public directories.
Note that the repository does not provide a dependency manifest check, so specific framework version numbers are not listed here. The licenses for third-party assets such as demo images, fonts, and icons need to be checked separately; the MIT license for the code does not cover these assets. External services such as domains and hosting may incur costs.
Is it right for your project?
Use Cases
- Personal developers or designers building a portfolio website
- A personal homepage that needs to showcase projects, skills, and contact information
- As a sample project for learning Next.js componentization and theme switching
- Deploying a personal site on Vercel or another platform that supports Next.js
Suitable For
- Front-end developers who want to quickly start a personal portfolio
- Personal sites that need a dark/light theme toggle and responsive layout
- Users who accept manually replacing personal information component by component
- Users who can check third-party asset licenses themselves and handle external service costs
Getting started & customization
Use these recorded setup notes alongside the repository instructions for your chosen version.
- 1
After cloning the repository, run npm install or yarn install to install dependencies
- 2
Run npm run dev or yarn dev to preview at localhost:3000
- 3
The build command is npm run build
- 4
Follow the README instructions to replace personal information, theme colors, projects, and contact information in the components, and update public/sample-resume.pdf
- 5
Third-party assets such as demo images, fonts, and icons need separate license checks; external services such as domains and hosting may be charged separately
License & source material
Usage conditions & limitations
Free to use · keep license noticeThis entry covers the free version under the MIT license in a public repository; the free scope is the code of this version and does not mean that external services or third-party assets are free.
Must comply with when using
- Free use, modification, commercial use, and distribution of this version's code are allowed.
- When distributing copies or substantial portions of the code, retain the original author's copyright notice and the complete MIT license notice.
- The code is provided as is; warranties and limitations of liability are governed by the original license and applicable law.
Additional costs & items to verify
- Demo images, fonts, icons, and other third-party assets must be checked against their respective licenses and cannot be judged solely by the code's MIT license.
- External services such as domains, hosting, databases, payments, or AI may be charged separately.
View Original Text Basis
https://github.com/DanyalAnsari/Portfolio/blob/main/LICENSEhttps://github.com/DanyalAnsari/Portfolio/blob/main/README.mdPermission is hereby granted, free of charge
Original License Text
Compiled by DeepSeek based on repository license and README ·2026-10-13. Results only cover the materials read; dependencies, images, fonts, and subsequent term changes are subject to their respective original texts.
Project checks & description sources
Template Information
- Source platforms
- GitHub
- Documentation and maintenance reference score
- More documented · 80 / 100
- Technologies
- Next.js · React
- Website type
- Portfolio
How this score is calculated
Our heuristic uses license records (up to 30), a demo link (12), a preview (10), stars (15), recorded maintenance (15), description completeness (8), feature records (5) and classification data (5). It is not a code, security or performance test, or a Google score. A link does not establish tested functionality.
What to verify for this project
- Repository update recorded
- 2026-07-20
- Screenshot last checked
- 2026-10-13
A demo link is listed. Check it with your own content and viewport sizes; its presence does not confirm that forms, authentication or payments work.
The catalog identifies Next.js as the primary stack. Check the actual dependency manifest and lockfile for versions and hosting requirements. These notes use recorded metadata, not a code audit or a deployment test.
Use a selection guide →How this description was prepared
AI-assisted description based on catalog records and repository material. Repository authors are not automatically the reviewers of this description.
Review declaration: [email protected] · 2026-10-13
Inspect the recorded source material
SHA-256: 0b69ab1eb9d65324ca9528ab3c77d6ee2daa44f49cb0a77ca1d01c504a057c2a
2026-10-13T02:13:51.117Z
Source file / repository# Personal Portfolio Website A modern and responsive portfolio website built with Next.js, featuring a dark/light theme toggle, smooth animations, and a clean design aesthetic.  ## Features - 🎨 Modern UI/UX with responsive design - 🌓 Dark/Light theme support - ⚡ Fast performance with Next.js - 🎭 Smooth animations and transitions - 📱 Mobile-first approach - 📧 Contact form functionality - 💼 Project showcase section - 📝 About me and services sections - 🎯 Skills and expertise display ## Tech Stack - [Next.js](https://nextjs.org/) - React framework for production - React Context for state management - CSS Modules for styling - Motion animations - Responsive design principles ## Getting Started 1. **Clone the repository** ```bash git clone https://github.com/DanyalAnsari/Portfolio.git cd portfolio ``` 2. **Install dependencies** ```bash npm install # or yarn install ``` 3. **Run the development server** ```bash npm run dev # or yarn dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. ## Project Structure ``` app/ ├── components/ # Reusable UI components │ ├── About.js # About section │ ├── Contact.js # Contact form │ ├── Hero.js # Hero section │ └── Works.js # Portfolio projects ├── context/ # React context providers ├── assets/ # Images and icons └── public/ # Static files ``` ## Customization 1. Update the personal information in respective components 2. Modify the theme colors in `globals.css` 3. Add your projects in the Works section 4. Update contact information in the Contact component 5. Customize the resume in `public/sample-resume.pdf` ## Deployment The project is ready to be deployed on [Vercel](https://vercel.com) or any other hosting platform that supports Next.js applications. ```bash npm run build # or yarn build ``` ## License This project is open source and available under the [MIT License](LICENSE).
Explore similar templates
Compare previews and descriptions within the same stack and category.

react-resume-template
A personal resume website template for software developers, built with Next.js, React, and TypeScript and styled with Tailwind CSS. Site content is driven by a single data file at /src/data/data.tsx, with types in dataDef.ts and images in src/images/.
Next.js · Portfolio

nxt-lnk
nxt-lnk is a Next.js-based bio link page template that manages personal information and links via BioData.js and LinksData.js, positioned as a self-hosted alternative to Linktree. It groups links by type, supports enabling/disabling individual links, and offers hexagonal or oval avatars.
Next.js · Portfolio

sylph
Sylph is a minimal portfolio and blog template built on Next.js, supporting MDX/Markdown writing, light/dark themes, and automatic OG image generation. It includes sitemap, robots.txt, metadata, and syntax highlighting, with automatic blog timestamps.
Next.js · Portfolio

sleek-portfolio
A modern, responsive portfolio template built with Next.js 15, TypeScript, Tailwind CSS, and Shadcn UI. It includes an MDX blog, project showcase, work experience timeline, and a contact form that receives messages via Telegram Bot.
Next.js · Portfolio

research-website-template
A React + Next.js template for research personal websites, aimed at PhD students and researchers. It centralizes publications, projects, and other content in src/data as arrays of objects, with optional fields automatically generating UI components.
Next.js · Portfolio

shadcn-portfolio
A developer portfolio template built with Next.js 15, shadcn/ui, Tailwind CSS, and Framer Motion, featuring an MDX blog, light and dark modes, responsive design, and SEO meta tags.
Next.js · Portfolio
