11# Portfolio — Mohammad Azhdari (V-CodeSmith)
22
3- A single-page portfolio in Nuxt 4: warm paper, one ink, one electric accent,
4- oversized Bricolage type and soft squircle cards. Everything is plain CSS — no
5- UI framework, no CSS framework.
3+ A bilingual portfolio in Nuxt 4: English at ` / ` and Persian at ` /fa ` , with an RTL
4+ layout and its own SEO and JSON-LD per language. Warm paper, one ink, one
5+ electric accent, oversized Bricolage type (Vazirmatn for Persian) and soft
6+ squircle cards. Everything is plain CSS — no UI framework, no CSS framework.
67
78## Run it
89
@@ -12,27 +13,42 @@ npm run dev # http://localhost:3000
1213npm run generate # static site in .output/public
1314```
1415
16+ ## Languages
17+
18+ - ` app/i18n/en.ts ` and ` app/i18n/fa.ts ` — all page copy per locale.
19+ - ` app/i18n/structured-data.ts ` — the Person / Organization / WebSite /
20+ ProfilePage graph, localized (` inLanguage ` , job title, project descriptions).
21+ - ` app/composables/usePortfolioSeo.ts ` — title, description, OG tags, canonical
22+ and ` hreflang ` alternates (` en ` , ` fa-IR ` , ` x-default ` ).
23+ - ` app/pages/index.vue ` and ` app/pages/fa.vue ` both render
24+ ` <PortfolioPage :locale> ` ; the layout direction and fonts switch on
25+ ` html[dir='rtl'] ` .
26+ - ` app/constants/content.ts ` — locale-neutral data: project links, years, stack,
27+ tints, monograms, process tones, contact links.
28+
29+ Adding a third language: add a dictionary in ` app/i18n ` , a route page, an entry
30+ in ` app/i18n/index.ts ` , then extend the sitemap and the hreflang links.
31+
1532## Make it yours
1633
17- - ` app/constants/seo.ts ` — name, handle, title, description, email, socials,
18- canonical origin (` SITE_URL ` ) and the whole JSON-LD ` @graph ` . The head meta,
19- OG tags, canonical and structured data all read from this one file.
20- - ` app/constants/content.ts ` — stack, approach, the eight process rules,
21- projects, skills, AI notes and contact links.
22- - ` app/pages/index.vue ` — the page. ` app/assets/styles/main.css ` holds the
23- design tokens (paper, ink, accent, radii, motion).
24- - ` public/ ` — ` robots.txt ` , ` sitemap.xml ` , ` llms.txt ` , ` humans.txt ` ,
25- ` .well-known/security.txt ` , the Google Search Console verification file and
26- ` og.png ` . Update the origin and dates in these files when ` SITE_URL ` changes.
34+ - ` app/constants/seo.ts ` — name, handle, email, socials and canonical origin
35+ (` SITE_URL ` ). Head meta and JSON-LD build on these values per locale.
36+ - ` app/pages/index.vue ` — thin route; the page itself is
37+ ` app/components/PortfolioPage.vue ` .
38+ - ` app/assets/styles/main.css ` — design tokens; ` page.css ` holds the section
39+ styles, RTL overrides and the marquee/spotlight/progress details.
40+ - ` public/ ` — ` robots.txt ` , ` sitemap.xml ` (both languages with alternates),
41+ ` llms.txt ` , ` humans.txt ` , ` .well-known/security.txt ` , the Google Search
42+ Console verification file, and ` og.png ` / ` og-fa.png ` .
2743
2844### Still worth a look
2945
30- - Project copy in ` app/constants/content.ts ` — keep it in sync with the
31- ` hasPart ` entries in ` seo .ts` .
32- - ` public/og.png ` — regenerate after copy changes (a 1200×630 capture of the
33- homepage).
34- - ` public/google*.html ` — the Google Search Console verification file; replace
35- it if you re-verify the domain.
46+ - Project copy in the dictionaries — keep it in sync with ` PROJECTS ` in
47+ ` app/constants/content .ts` .
48+ - ` public/og.png ` and ` public/og-fa.png ` — regenerate after copy changes
49+ (1200×630 captures of each homepage).
50+ - ` public/google*.html ` — the Search Console verification file; replace it if
51+ you re-verify the domain.
3652
3753## Deploy
3854
@@ -42,7 +58,7 @@ publishes `.output/public` to GitHub Pages on every push to `main`.
4258The workflow assumes a user site at the repo root (` V-CodeSmith.github.io ` ).
4359For a project page served from ` /<repo>/ ` , set
4460` NUXT_APP_BASE_URL: /${{ github.event.repository.name }}/ ` on the generate step
45- and use that origin in ` SITE_URL ` .
61+ and use that origin in ` SITE_URL ` and the route pages .
4662
4763In the repository: ** Settings → Pages → Build and deployment → Source: GitHub
4864Actions** , then push to ` main ` .
0 commit comments