Skip to content

anambedoya/portfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portfolio

Personal portfolio website built with HTML, CSS, and JavaScript.

Tech Stack

  • HTML5
  • CSS3
  • JavaScript (Vanilla)
  • Swiper.js
  • i18next (EN / ES / FR translations)
  • http-server (local development server)
  • Vercel Web Analytics (tracking and insights)

Project Structure

.
├── index.html
├── assets/
│   ├── css/
│   │   ├── styles.css
│   │   └── swiper-bundle.min.css
│   ├── js/
│   │   ├── script.js
│   │   └── swiper-bundle.min.js
│   ├── images/
│   └── pdf/
├── package.json
└── .gitignore

Getting Started

Node Version

This project targets Node.js 24.x (Vercel-compatible).

If you use nvm:

nvm use

1. Install dependencies

npm install

2. Run locally

npm start

Then open:

http://localhost:3000

You can also run:

npm run dev

Available Scripts

  • npm start: serves the project on port 3000
  • npm run dev: alias for npm start

Internationalization (i18n)

The website supports:

  • English (en)
  • Spanish (es)
  • French (fr)

Implementation details:

  • Translations are defined in assets/js/script.js in the resources object.
  • Translatable elements use data-i18n attributes in index.html.
  • Language can be changed from the header selector.
  • Selected language is stored in localStorage under selected-language.

Add or update translations

  1. Add/update keys in resources (en, es, fr) inside assets/js/script.js.
  2. Add data-i18n="your.key" in index.html where needed.
  3. Reload the page and switch languages from the selector to verify.

Styling

  • Main styles are in assets/css/styles.css.
  • The language selector style uses the .language-select class.
  • Theme colors are controlled by CSS variables in :root.

Vercel Web Analytics

This portfolio includes Vercel Web Analytics for tracking visitors and page views.

How it works

The analytics scripts are included in the <head> section of index.html:

  • A client-side script initializes the window.va function
  • The main tracking script is loaded from /_vercel/insights/script.js

Viewing analytics data

Once deployed to Vercel:

  1. Visit your project in the Vercel Dashboard
  2. Click on the Analytics tab
  3. View visitor metrics, page views, and other insights

Note: Analytics data will only be collected when the site is deployed to Vercel. The tracking script (/_vercel/insights/script.js) is provided by Vercel's infrastructure.

Notes

  • node_modules/ is ignored via .gitignore.
  • This is a static site and does not require a build step.

About

Portfolio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors