Skip to main content
The portfolio section displays your projects in a responsive grid layout. This guide shows you how to manage portfolio items using the actual HTML structure from the template.

Portfolio Section Structure

The portfolio grid is located in index.html at lines 348-401:
index.html

Adding a New Project

1

Prepare Your Project Image

Add your project image to the images/ directory. Recommended size: 800x600px or similar 4:3 ratio.
2

Copy the Portfolio Item Template

Use this HTML structure for each project:
index.html
3

Update Project Details

Customize the href, src, alt, category, and title for your project.
4

Add to Portfolio Grid

Insert your new portfolio item inside the <div class="portfolio-grid"> container.

Real Portfolio Examples

Here are the actual portfolio items from the template at lines 356-399:

Example 1: WhatsApp Bot Project

index.html

Example 2: CRM System

index.html

Example 3: Travel Agency Website

index.html

Example 4: Ticket Administrator

index.html

Project Categories

The portfolio-category span is used to tag your projects. Common categories include:
  • Web - Web applications and websites
  • Mobile - Mobile applications
  • API - Backend and API projects
  • Design - UI/UX design work
  • En Construccion - Projects in progress
  • Open Source - Open source contributions
Keep category names short (1-2 words) for better visual appearance on the category badge.

Image Requirements

Image Optimization Tips

1

Use Proper Dimensions

Resize images to 800x600px before uploading to reduce file size and improve loading speed.
2

Compress Images

Use tools like TinyPNG or Squoosh to compress images without losing quality.
3

Use Descriptive Alt Text

Always include descriptive alt attributes for accessibility and SEO:
Large, unoptimized images can significantly slow down your portfolio page. Always optimize images before adding them.

Portfolio Grid Styling

The portfolio grid uses CSS Grid for responsive layout. Here’s the actual styling from style.css at lines 296-408:
style.css

Hover Effects

The template includes smooth hover animations at lines 342-369:
style.css

Customizing the Grid Layout

Adjust Number of Columns

style.css

Change Image Height

style.css

Modify Gap Between Items

style.css

Responsive Behavior

The portfolio grid automatically adjusts for different screen sizes at lines 389-408:
style.css
On tablets (991px), the grid shows 2 columns. On mobile (576px), it shows 1 column for optimal viewing.

Linking Projects

You can link projects to different destinations:

GitHub Repository

index.html

Live Demo

index.html

Case Study or Project Page

index.html
For projects with both demo and repository:
index.html
When adding buttons inside a linked portfolio item, use onclick="event.stopPropagation();" to prevent the parent link from triggering.

Removing Projects

To remove a project, simply delete the entire <div class="portfolio-item">...</div> block for that project.

Complete Full Example

Here’s a complete portfolio item with all best practices:
index.html
Add loading="lazy" to portfolio images to improve initial page load performance.