FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

darkmoonight/darkmoonight.github.io: ๐ŸŒ‘ Website ยท GitHub

Latest commit

ย 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

DARK NIGHT

Bilingual team portfolio with an IDE/terminal UI. Astro 6 + Tailwind CSS 4.

Development

Node.js โ‰ฅ 22.12.0

npm install
npm run dev       # http://localhost:4321
npm run build     # dist/
npm run preview
npm run ci        # typecheck, i18n, lint, format

Other scripts: build:pages, validate:i18n, lint:fix, format. Husky runs ci on commit.

Configuration

Copy .env.example โ†’ .env.

Variable Purpose
REPO_API_TOKEN REST API access for builds and live stats (recommended)
PUBLIC_WEB3FORMS_ACCESS_KEY Contact form (Web3Forms); omitted in dev = mock submit
FORCE_GITHUB_SYNC 1 โ€” bypass snapshot cache TTL
ASTRO_SITE / ASTRO_BASE Site URL and path prefix (CI sets these for Pages)

Build-time GitHub data is cached in .cache/github-snapshot.json; the client can refresh stars, languages, and releases in the browser.

Structure

src/
โ”œโ”€โ”€ components/     sections, layout, phone mockups
โ”œโ”€โ”€ constants/      site, GitHub, DOM ids
โ”œโ”€โ”€ data/           projects, translations, mockups, team
โ”œโ”€โ”€ integrations/   build hooks (GitHub cache)
โ”œโ”€โ”€ pages/          routes (/en, /ru, project detail)
โ”œโ”€โ”€ styles/
โ””โ”€โ”€ utils/

Content lives in src/data/ (projects.json, translations.json, project-mockups.json). Branding and org settings: src/constants/site.ts, src/constants/github.ts.

i18n

Routes: /en/ and /ru/ (/ โ†’ /en/). UI strings: src/data/translations.json. Check keys with npm run validate:i18n.

Deploy

.github/workflows/deploy.yml builds on push to main/master (and daily cron) and publishes to GitHub Pages via Actions.

  1. Settings โ†’ Pages โ†’ Source: GitHub Actions
  2. Optional repo secrets: PUBLIC_WEB3FORMS_ACCESS_KEY
  3. CI maps the built-in Actions token into REPO_API_TOKEN automatically

Local Pages smoke: npm run build:pages.

License

Open source โ€” darkmoonight.


Back | FazBrowse Home | New Git URL