Skip to content

Samfa12-tech/samfa12-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Samfa12 Official Portal

This is a static portfolio website for samfa12.com, showcasing games, books, apps, music, assets, and links for Samfa12.

What this site includes

  • index.html – all sections and layout
  • styles.css – dark, responsive styling and component styles
  • script.js – data-driven project rendering and filtering
  • data/projects.json – editable source of projects/cards
  • assets/favicon.svg – site icon
  • assets/og-image.png – social preview image
  • assets/thumbnails/ – local project card thumbnails
  • CNAMEsamfa12.com domain file
  • .github/workflows/pages.yml – optional GitHub Pages deploy workflow

How to edit projects

Update the file data/projects.json.

Each project entry has:

  • title
  • category
  • type
  • status
  • description
  • tags
  • featured (true/false)
  • links (array of { "label": "...", "url": "..." })

Project categories used by the site:

  • Games
  • Books
  • Apps & Tools
  • Assets
  • Music
  • Social
  • Storefronts

How to preview locally

Option A: Simple Python server

python -m http.server 8000

Then open:

http://localhost:8000

Option B: VS Code Live Server

  • Open the folder in VS Code.
  • Right-click index.html and choose Open with Live Server.

How to enable GitHub Pages

Option 1: Branch settings (recommended)

  1. Go to GitHub repo Settings.
  2. Open Pages.
  3. Choose Deploy from branch.
  4. Branch: main.
  5. Folder: /root.
  6. Save.

Option 2: GitHub Actions workflow

If your workflow file exists (.github/workflows/pages.yml), pushing to main will publish to GitHub Pages automatically.

Domain setup (Porkbun) for GitHub Pages

For samfa12.com, keep the following records in Porkbun:

  • Root/apex A records for @:
    • 185.199.108.153
    • 185.199.109.153
    • 185.199.110.153
    • 185.199.111.153
  • CNAME record:
    • www -> Samfa12-tech.github.io

In GitHub Pages settings, set the custom domain to:

  • samfa12.com

Then enable Enforce HTTPS (when available).

Troubleshooting

  • DNS can take time to propagate.
  • Ensure CNAME contains only:
    • samfa12.com
  • Ensure GitHub Pages has the custom domain field set to samfa12.com.
  • Confirm Porkbun records match the list above.
  • This site is hosted via GitHub Pages only. No paid hosting is required.

Thumbnails

Thumbnails are optional. Cards must render cleanly without them. When a project has artwork, store it locally under assets/thumbnails/ and point the project to thumbnail and thumbnailAlt in data/projects.json.

  • Use local PNG/WebP/SVG files only. Do not hotlink remote thumbnails.
  • Keep thumbnails at a 16:9 ratio for games/apps.
  • Use a 4:5 ratio for books when possible.
  • Leave thumbnail unset when no safe local asset exists yet.
  • Example fields:
    • "thumbnail": "assets/thumbnails/toknight.webp"
    • "thumbnailAlt": "Cover image for ToKnight"

Thumbnail maintenance

This repo includes a local thumbnail crawler to refresh card images from project links.

  • Refresh missing thumbnails only:

    npm run fetch:thumbnails
  • Rebuild every thumbnail image from scratch (including already-existing files):

    npm run fetch:thumbnails -- --force

Notes:

  • The script updates data/projects.json with any new local thumbnail paths it finds.
  • If no valid image can be found, the project is left without a thumbnail so the card renders as text only.
  • Review the generated diff before committing and push only after checking the updated thumbnails.

Accessibility notes

  • Keyboard focus styles are included for all interactive controls.
  • External links open in a new tab with rel="noopener noreferrer".
  • The layout is mobile-first with responsive grids and readable typography.

About

Official Samfa12 portfolio site

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors