GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Squidly1408/Photolio: A light-table style builder for photography portfolios

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
public
public
 
 
src
src
 
 
.env.example
.env.example
 
 
.firebaserc
.firebaserc
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
firebase.json
firebase.json
 
 
firestore.indexes.json
firestore.indexes.json
 
 
firestore.rules
firestore.rules
 
 
index.html
index.html
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
vite.config.js
vite.config.js
 
 

Repository files navigation

Photolio — a light table for photographers

Photolio

Live: photolio-portfolio.web.app

A light-table style builder for photography portfolios. Pick a design system, customize its colors, stack reorderable "frames" (cover, galleries, about, pricing, contact, and more), drop in your own photos and logo, choose exactly which photo fills which spot, and preview the finished one-page site at desktop, tablet, or mobile width. Sign in to save your work to the cloud and publish it at a public URL — /portfolio/your-username.

Getting started (local, no Firebase)

npm install
npm run dev

Open the printed local URL (usually http://localhost:5173). The builder (/app) works fully without any setup — you just can't sign in or save until Firebase is configured (see below).

Pages

  • / — landing page
  • /app — the builder
  • /signin — sign in / create an account (Google or email+password)
  • /account — profile (name, avatar), email, password, portfolio publish status, switch account, delete account
  • /portfolio/:username — a published portfolio's public, read-only page
  • /privacy, /terms — legal pages (edit these — see the note below)

Account management

  • Auto sign-in — sessions persist across browser restarts (Firebase's browserLocalPersistence, set explicitly in src/firebase.js), so returning visitors land back in the builder already signed in.
  • Switch account — from /account, signs out and sends you to /signin; Google sign-in always shows the account chooser (prompt: "select_account") rather than silently reusing whichever Google account was used last, so you can actually pick a different one.
  • Change name/email/password, all from /account. Email changes send a verification link to the new address (it only takes effect once clicked — the current Firebase-recommended flow); password/email changes on an older sign-in automatically prompt to re-confirm your password first (or re-auth with Google, for Google-only accounts) — Firebase requires a "recent" sign-in for these.
  • Delete account — type-to-confirm, then removes the Firestore portfolio doc, every photo doc, and the username reservation before deleting the Firebase Auth account itself, so nothing is left orphaned.

Setting up Firebase (sign-in, saving, publishing)

Runs entirely on Firebase's free Spark plan — no billing account needed (Firebase Storage is deliberately not used, since it requires the paid plan; see "How images are stored" below).

  1. Create a project at console.firebase.google.com.
  2. Add a web app (Project settings → General → Your apps → </>) and copy the config values it gives you.
  3. Copy .env.example to .env and fill in those values:
    cp .env.example .env
  4. Set up Authentication: Build → Authentication → click "Get started" if you see it (this initializes the product — a separate step from picking providers), then Sign-in method → enable Email/Password, and Google too if you want the "Continue with Google" button to work.
  5. Set up Firestore: Build → Firestore Database → Create database (production mode is fine — this repo ships its own security rules).
  6. Restart npm run dev. The "Firebase isn't configured" notice on /signin should be gone.

Without steps 3–5 done, the app still runs — sign-in/save/publish just show a clear "not configured" message instead of a crash.

Deploying (Firebase Hosting)

npm install -g firebase-tools   # if you don't have it
firebase login
firebase use --add              # pick the project you created above
npm run deploy                  # builds, then `firebase deploy`

firebase.json ships an SPA rewrite, so deep links like /portfolio/someone and /app work correctly on a full page load or refresh, not just client-side navigation — no extra routing workaround needed.

How saving & publishing work

  • Save (top bar, signed in) writes your content, layout, and design choice to Firestore under your account.
  • How images are stored: Firebase Storage isn't used (it needs the paid Blaze plan) — uploaded photos and your logo are compressed and downscaled client-side (src/lib/image.js) and saved directly as Firestore fields instead, one photo per document, so nothing risks Firestore's 1 MiB document-size limit. This comfortably fits typical portfolio-sized photo sets; if you outgrow it, swapping in real object storage (Firebase Storage on the Blaze plan, or S3/R2/Cloudinary) is a contained change — replace the upload calls in src/lib/portfolioStore.js.
  • Publish (top bar, signed in) lets you claim a username and makes your saved portfolio viewable, read-only, at /portfolio/that-username — by anyone, signed in or not. It's off by default and can be unpublished at any time; unpublishing keeps your username reserved.
  • Signing in again later automatically loads your last save.

Before you actually launch this

  • src/pages/Privacy.jsx and src/pages/Terms.jsx are real, tailored drafts — accurate to what the app does — but they still have placeholders ([email protected], the "last updated" date, and a governing-law line in the Terms) that need your actual details, and you should have them reviewed before relying on them.
  • The contact-form segment in the portfolio itself is a visual placeholder — it doesn't send anywhere yet.

Scripts

  • npm run dev — start the dev server with hot reload
  • npm run build — build a production bundle into dist/
  • npm run preview — preview the production build locally
  • npm run deploy — build, then deploy to Firebase Hosting

Stack

  • Vite + React 18, react-router-dom for routing
  • Firebase: Authentication, Firestore, Hosting (Spark/free plan — no Storage)
  • lucide-react for icons
  • Plain CSS (injected via <style> tags) — no CSS framework. The portfolio's own responsive layout uses CSS container queries scoped to the light table (src/components/Portfolio.jsx), so it reflows correctly on a real narrow window, under the Builder's Tablet/Mobile preview toggle, and standalone on the public portfolio page.

Project structure

src/
  Builder.jsx              the editor (design panel, light table, save/publish)
  App.jsx                  route definitions
  main.jsx                 app entry (Router + AuthProvider)
  firebase.js               Firebase SDK init (reads .env)
  contexts/AuthContext.jsx  sign-in state + actions
  lib/
    portfolioStore.js       Firestore save, load, publish
    image.js                 client-side photo compression (see "How images are stored")
  components/
    Portfolio.jsx           the shared portfolio renderer — every segment
                             type, themes, and styles. Used by both the
                             Builder and the public portfolio page.
    MarketingLayout.jsx      shared header/footer for the marketing/legal pages
  pages/
    Landing.jsx, SignIn.jsx, Privacy.jsx, Terms.jsx, PublicPortfolio.jsx

About

A light-table style builder for photography portfolios

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.