You have two options to get started with this template:
If you want to clone only this specific template:
git clone --no-checkout https://github.com/devportfoliotemplates/devportfoliotemplates.git
cd devportfoliotemplates
git sparse-checkout init --cone
git sparse-checkout set web-developer-portfolio-template
git checkout
You can download this template as a ZIP file:
- Visit download-directory.github.io
- Paste the URL of this portfolio folder:
https://github.com/devportfoliotemplates/devportfoliotemplates/tree/main/web-developer-portfolio-template
- Download and extract the ZIP file
Once you have the template:
- Install dependencies:
npm install
# or
yarn install
# or
pnpm install
- Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
- Open http://localhost:3000 in your browser to see the portfolio.
-
Update metadata in
app/layout.tsx
:- Site title
- Description
- Open Graph metadata
- Favicon
-
Modify content in
app/page.tsx
:- Hero section
- About section
- Projects
- Contact information
-
Replace assets:
- Replace images in the
public
directory - Update social media icons
- Modify logo if needed
- Replace images in the
-
Colors and Theme:
- Customize colors in
tailwind.config.js
- Modify theme variables in
app/globals.css
- Customize colors in
-
Typography:
- Update font families in
tailwind.config.js
- Modify text sizes and weights
- Update font families in
-
Layout:
- Adjust spacing and padding in component files
- Modify responsive breakpoints in
tailwind.config.js
-
Build Errors
- Ensure all dependencies are installed
- Clear
.next
folder and node_modules - Run
npm install
again
-
Styling Issues
- Run
npm run build
to ensure TailwindCSS classes are generated - Check for conflicting styles in
globals.css
- Run
-
Image Loading
- Verify images are in the correct format (PNG, JPG, WebP)
- Check image paths are correct
- Ensure images are in the
public
directory
Follow these steps to deploy your portfolio for free using GitHub Pages.
- Create a repository
<YOU_GITHUB_USERNAME>.github.io
In my case: rsalgadoc.github.io
- On the new repository, go to Settings -> Pages -> Section "Build and deployment" and select "Git Hub Actions"
3 . Configure the Next.js Build Process
change the output mode to export inside next.config.ts:
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
output: 'export',
distDir: 'out',
reactStrictMode: true,
images: { unoptimized: true }
}
export default nextConfig;
- Configure Github Actions
- Create two files:
.github/workflows/setup-node/action.yml
- Here the file: action.yml
.github/workflows/publish.yml
- Here the file: publish.yml
- Commit and Push
After committing and pushing your changes to the main branch, GitHub will automatically initiate the deployment to GitHub Pages.
To inspect the process, navigate to the Actions tab, and select the publish-to-github-pages action from the menu on the left hand side. You will see a all your deployments on the screen (they are called workflows).