Skip to content

Sashmitha-Ravindu/portfolio

Repository files navigation

Sashmitha Ravindu — Portfolio

Personal portfolio built with vanilla HTML/CSS/JS and bundled with Vite.

Development

npm install
npm run dev      # start the dev server
npm run build    # production build to dist/
npm run preview  # preview the production build

Helper scripts

Script What it does
npm run images Generate optimized .webp from images in public/
npm run og Regenerate the social share card public/og-image.png

Adding a project? See docs/adding-a-project.md.

Deployment

Pushing to main triggers .github/workflows/vitedeploy.yml, which builds and deploys to GitHub Pages. The site is served under the /portfolio base path (configured in vite.config.js).

Contact form

The contact form posts to Formspree. Create a free form and paste its endpoint into the action of .contact__form in index.html (replace YOUR_FORM_ID). Until then, submissions show a "not configured" notice and the direct-email link still works.

Analytics

A commented Plausible snippet sits in index.html's <head>. Set data-domain to your domain and uncomment it to enable privacy-friendly, cookie-free analytics.

Custom domain

To move off the username.github.io/portfolio path to your own domain:

  1. Add a public/CNAME file containing just your domain (e.g. sashmitha.dev). A public/CNAME.example is included as a starting point.
  2. Change base in vite.config.js from '/portfolio' to '/'.
  3. Update the canonical, og:url, og:image, twitter:image and JSON-LD URLs in index.html to the new domain.
  4. Point your domain's DNS at GitHub Pages and set the custom domain in the repository's Settings → Pages.

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors