Overview
The portfolio uses a CSS Grid-based layout system with semantic HTML5 elements. The entire page structure is wrapped in a.layout container that defines grid areas for each major section.
The Layout Container
The main grid container is defined in index.html:12:Grid Configuration
The CSS Grid is configured in styles.css:22-32 with a two-column structure:The
grid-template-columns: 2fr 1fr creates a two-column layout, but notice that all grid areas span both columns (e.g., "header header"). This creates a single-column responsive layout by default.Semantic HTML5 Elements
The portfolio uses proper semantic HTML5 elements from index.html:- Structure
- Grid Assignment
Element Breakdown
| Element | Purpose | Grid Area | Line Reference |
|---|---|---|---|
<header> | Fixed navigation bar | header | index.html:13-23 |
<main> | Hero section with intro | main | index.html:26-34 |
<section> (Skills) | Technology skills display | Habilidades | index.html:36-47 |
<section> (Projects) | Projects showcase | proyectos | index.html:49-52 |
<section> (Contact) | Contact information | contacto | index.html:54-56 |
<footer> | Footer content | footer | index.html:59-61 |
Two-Column Pattern
While the grid defines2fr 1fr columns, most sections span both columns for a full-width layout. The main section uniquely uses this two-column pattern:
styles.css:117-122
Document Structure
Here’s the complete HTML structure from index.html:1-66:Key Features
- Language: Set to Spanish (
lang="es") - Viewport: Mobile-responsive meta tag
- Single CSS file:
css/styles.css - Grid wrapper:
.layoutclass contains all content
Next Steps
Navigation
Learn about the fixed header and navigation system
Content Sections
Explore the main content sections and their structure
CSS Grid Layout
Deep dive into the CSS Grid implementation
Customize Content
Learn how to modify the HTML structure