Skip to content
Projekte

msanvarov/personal-portfolio

Auf GitHub ansehen

Über uns

🌐 react next.js app for personal portfolio

Web- und App-Entwicklung

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Verlauf wird gesammelt

NettoΓ€nderungen in ΓΌberlappenden ZeitrΓ€umen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht QualitΓ€t.

README.md

Original

Sal's Personal Portfolio Website

Home page of sal-anvarov.com: a dark bento grid with stack, stats, bio, career highlights and studio cards

A modern Vite + React 18 portfolio site by Sal Anvarov. Optionally wired up to HotJar, GTM, and Formspree via environment variables.

Deploy to Netlify   Deploy with Vercel

Table of contents:

  1. Description
  2. Prerequisites
  3. Deployment
  4. Environment configuration
  5. SEO and AI-SEO
  6. Repository layout
  7. Testing

Description

Preview: https://www.sal-anvarov.com/

This portfolio site was rebuilt on Vite + React 18 + TypeScript with TanStack Router for client-side routing. Case studies and blog posts live as MDX files under content/ and are bundled at build time via @mdx-js/rollup + import.meta.glob. State management is Redux Toolkit with redux-persist; styling is SCSS + Bootstrap 5 + Iconoir; animations use Framer Motion + AOS.

All third-party identifiers (Hotjar, GTM, Microsoft Clarity, DebugBear, Formspree, Disqus, Calendly) are read from VITE_* environment variables β€” nothing is hardcoded. Integrations gracefully no-op when their env var is not set.


Prerequisites

Optional integrations:


Deployment

One-click deploy

Deploy to Netlify Deploy with Vercel

The repo ships with both a netlify.toml and a vercel.json configured for a Vite SPA: build with npm run build, publish dist/, and add a /* -> /index.html rewrite so the router handles deep links. See Netlify deploy docs and Vercel deploy docs.

Local development

git clone https://github.com/msanvarov/personal-portfolio
cd personal-portfolio
cp .env.example .env.local   # fill in the integrations you actually use
npm install
npm run dev                  # http://localhost:4200

Build

npm run build      # type-check + production bundle to ./dist
npm run preview    # serve the production bundle locally

Environment configuration

Vite only exposes variables prefixed with VITE_ to the client. All integrations are optional β€” if the env var is missing or VITE_ENABLE_TRACKING is not true, the associated script simply will not load.

Variable Purpose
VITE_ENABLE_TRACKING Master switch for analytics. true / false.
VITE_HOTJAR_WEBSITE_UID Hotjar site ID
VITE_HOTJAR_VERSION Hotjar script version (typically 6)
VITE_GOOGLE_TAG_MANAGER_UID GTM / GA4 measurement ID
VITE_MICROSOFT_CLARITY_UID Clarity project ID
VITE_DEBUGBEAR_RUM_UID DebugBear RUM script ID
VITE_FORMSPREE_FORM_ID Formspree form ID for /contact
VITE_DISQUS_SHORTNAME Disqus shortname for blog comments (optional)
VITE_CALENDLY_URL Calendly URL for the "Chat with Sal" popup
VITE_SITE_URL Canonical site URL used in OG metadata

No secrets ever ship to the client by design β€” these are all public IDs intended to be read at runtime by their respective scripts. Still, keep your real .env.local out of version control (it is git-ignored).


SEO and AI-SEO

The site ships ready for both classic search-engine indexing and AI-crawler discovery:

  • /robots.txt β€” explicit Allow: / for Googlebot, Bingbot, DuckDuckBot, Applebot, Yandex, Baidu, plus AI crawlers (GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-Web, anthropic-ai, PerplexityBot, Google-Extended, Meta-ExternalAgent, Amazonbot, Bytespider, YouBot, Mistral-AI-User). Edit any user-agent block to Disallow: / to opt out.
  • /sitemap.xml β€” generated at build time from the static routes plus every MDX file under content/case-studies/ and content/posts/, with lastmod taken from frontmatter or file mtime.
  • /llms.txt β€” curated index (per the llmstxt.org convention) that lists each portfolio entry and blog post with a one-line summary, so AI agents that respect the file can fetch a clean table of contents.
  • Per-route metadata β€” unique <title>, <meta name="description">, <link rel="canonical">, Open Graph, Twitter Card, and JSON-LD on every route. Case studies emit CreativeWork, blog posts emit BlogPosting, list pages emit ItemList/Blog, and detail pages add BreadcrumbList.
  • Static-HTML JSON-LD β€” index.html embeds a Person + WebSite @graph so non-JS-rendering crawlers see Sal's identity on the first byte without waiting for hydration.

When the canonical URL changes, update VITE_SITE_URL and the hardcoded https://www.sal-anvarov.com references in public/robots.txt, public/llms.txt, and index.html.


Repository layout

.
β”œβ”€β”€ content/
β”‚   β”œβ”€β”€ case-studies/     # portfolio MDX entries
β”‚   └── posts/            # blog MDX entries
β”œβ”€β”€ public/               # static assets served from /
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/       # Layout, Header, Footer, BlogNavbar, ...
β”‚   β”œβ”€β”€ i18n/             # English copy (JSON)
β”‚   β”œβ”€β”€ pages/            # page components (rendered by routes/)
β”‚   β”œβ”€β”€ providers/        # ThemeProvider
β”‚   β”œβ”€β”€ routes/           # TanStack Router file-based routes
β”‚   β”œβ”€β”€ store/            # Redux Toolkit slices + hooks
β”‚   β”œβ”€β”€ styles/           # global SCSS (dark + light)
β”‚   β”œβ”€β”€ utils/            # tracking, content loader, themed assets, SEO
β”‚   β”œβ”€β”€ App.tsx
β”‚   β”œβ”€β”€ main.tsx
β”‚   β”œβ”€β”€ router.ts
β”‚   └── vite-env.d.ts
β”œβ”€β”€ index.html
β”œβ”€β”€ netlify.toml
β”œβ”€β”€ package.json
β”œβ”€β”€ tsconfig.json
β”œβ”€β”€ vercel.json
└── vite.config.ts

Testing

npm run lint        # eslint
npm run typecheck   # tsc --noEmit

Help

PRs are appreciated.


License

This personal portfolio website is MIT licensed.

Author

Γ„hnliche Projekte entdecken

Wird geladen…