Something went wrong. Try again.
Something went wrong. Try again.
Files
- JavaScript 85%
- CSS 14%
- HTML 1%
README.md
Simmarith Neocities Site #
Vite + React source for Simmarith's Neocities page.
The site currently includes:
- A retro-style home page
- A Button Designer tool for creating printable 35mm button sheets
Features #
Home #
- Intro page with navigation to available tools
Button Designer #
- Import one or more images
- Set quantity per design
- Edit image positioning and zoom inside a circular crop
- Set background color per button
- Preview an A4 sheet layout
- Optional 25mm guide circle in preview
- Export a print-ready A4 PDF (300 DPI render)
Tech Stack #
- React 18
- Vite 5
- jsPDF
- Neocities API client (
neocities)
Development #
Requirements:
- Node.js 18+ (recommended)
- npm
Install dependencies:
npm install
Start local dev server:
npm run dev
Build production assets:
npm run build
Preview production build locally:
npm run preview
Deploy to Neocities #
Deployment uses scripts/deploy-neocities.mjs and uploads files from dist/.
Forgejo Actions (automatic deploy on master push) #
This repository includes a workflow at .forgejo/workflows/deploy-neocities.yml.
It runs on every push to master, builds the site, and deploys to Neocities.
In Forgejo, set the following repository secrets:
NEOCITIES_USERNEOCITIES_PASS
Without these secrets, the workflow will fail during deployment.
- Build the project:
npm run build
- Set environment variables:
export NEOCITIES_USER="your_username"
export NEOCITIES_PASS="your_password"
- Deploy:
npm run deploy
Or run everything with one command (build + deploy):
npm run deploy
You can also create a local .env file (loaded via dotenv) with:
NEOCITIES_USER=your_username
NEOCITIES_PASS=your_password
Project Structure #
.
├─ scripts/
│ └─ deploy-neocities.mjs
├─ src/
│ └─ renderer/
│ ├─ App.jsx
│ ├─ Home.jsx
│ ├─ ButtonDesigner.jsx
│ ├─ main.jsx
│ └─ styles.css
├─ index.html
├─ vite.config.js
└─ package.json