Welcome to the comprehensive guide for your new portfolio website. This document covers everything from initial setup to advanced customization and deployment.
This template is built with Vanilla HTML, CSS, and JavaScript. There are no build steps, no package managers (npm/yarn), and no framework dependencies.
- Download/Unzip the template files.
- Open the folder in your code editor (VS Code recommended).
- Double-click
index.htmlto open it in your browser.- Tip: Use the "Live Server" extension in VS Code for real-time updates.
The project uses a flat file structure for simplicity. All files are located in the root directory.
/
├── index.html # Main HTML structure and content
├── style.css # Core styles, design tokens, and layout
├── style_additions.css # Extra styles (e.g., animations, specific component overrides)
├── script.js # JavaScript for interactions (mobile menu, theme toggle)
├── man.jpg # Placeholder hero image
├── project.jpg # Placeholder project image
├── README.md # Quick start guide
├── ERROR_LOG.md # Troubleshooting and issue reporting
└── DOCUMENTATION.md # This file
All visual styles are controlled by CSS variables in style.css. To change the color scheme:
- Open
style.css. - Locate the
:rootselector at the top of the file. - Update the HSL values for the variables.
:root {
/* Base Background Colors */
--color-bg: hsl(140, 60%, 98%); /* Light Mint Green */
/* Brand Accent Colors */
--color-primary: hsl(340, 82%, 52%); /* Hot Pink */
--color-secondary: hsl(150, 50%, 45%); /* Darker Green */
/* Text Colors */
--color-text: hsl(150, 30%, 20%); /* Dark Green/Gray */
}The template uses Google Fonts (Outfit). To change the font:
- Go to Google Fonts.
- Select your desired font.
- Replace the
@importURL at the top ofstyle.csswith the new one. - Update the
font-familyproperty in thebodyselector instyle.css.
All text content is located in index.html.
- Navigation: Search for
<nav>to change links. - Hero Section: Look for
<header class="hero">to update the headline and bio. - Projects: Find the
<section id="projects">block. Duplicate the.project-carddiv to add more projects.
To replace the Hero image:
- Place your photo (e.g.,
my-photo.jpg) in the root folder. - Open
index.html. - Find the
<img>tag in the hero section and update thesrc.<img src="my-photo.jpg" alt="A photo of me">
To replace Project images:
- Place your project screenshot (e.g.,
app-design.jpg) in the root folder. - Update the
style="background-image: url(...)"inline style or the<img>tag within the.project-card.
The dark mode toggle works by adding a .dark-mode class to the <body>.
- Logic: Defined in
script.js. It saves the user's preference tolocalStorage. - Styles: Defined in
style.cssunder thebody.dark-modeselector.body.dark-mode { --color-bg: hsl(220, 20%, 10%); /* Dark Background */ --color-text: hsl(220, 20%, 90%); /* Light Text */ }
To make your site Google-friendly:
- Open
index.html. - Update the
<title>tag with your name and profession. - Update the
<meta name="description">tag with a brief summary of who you are.<meta name="description" content="Portfolio of John Doe, a Product Designer based in NYC.">
You can host this site for free on many platforms.
- Create an account on Netlify.
- Drag and drop your project folder onto the Netlify dashboard.
- Your site will be live instantly!
- Upload your files to a new GitHub repository.
- Go to Settings > Pages.
- Select the
mainbranch and click Save.
If something isn't working right, please check our Error Log & Troubleshooting Guide.
Common fixes include:
- Missing Images: Check file names and extensions (case-sensitive!).
- Cached Styles: Hard refresh your browser (Ctrl+F5).