This repository contains the BinToBetter website built with pure HTML, CSS, and JavaScript - no build process required!
BinToBetter is a youth-led nonprofit organization dedicated to reducing community waste and promoting environmental sustainability.
Mission: BinToBetter transforms used tennis balls, e-waste, and hard-to-recycle plastics into valuable tools for schools, seniors, and students. Through hands-on recycling initiatives and educational workshops, we demonstrate that waste reduction isnβt just possibleβitβs powerful.
Primary Contact: info@bintobetter.org
html-site/ # Production website (deployed to GitHub Pages)
βββ index.html # Main homepage
βββ css/ # Stylesheets
β βββ styles.css # All site styles
βββ js/ # JavaScript files
β βββ main.js # Site functionality
βββ images/ # Image assets (WebP optimized)
βββ svgs/ # SVG icons
βββ videos/ # Video files
βββ privacy-policy.html # Privacy policy page
βββ cookie-policy.html # Cookie policy page
βββ terms-of-service.html # Terms of service page
βββ CNAME # Custom domain configuration (bintobetter.org)
βββ *.png, *.ico, *.webmanifest # Icons and manifest files
tests/ # Playwright E2E tests for HTML site
βββ *.spec.ts # Test files
βββ README.md # Testing documentation
docs-backup/ # Archived documentation
βββ *.md # Historical reference files
All legal and policy information is available on separate pages:
The site is automatically deployed to the custom apex domain when changes are pushed to the main branch.
.github/workflows/deploy.yml) to GitHub Pages with custom domainCNAME file in html-site/ directoryhtml-site/ directoryImportant: This site has a critical dependency on the custom domain (bintobetter.org). All asset paths are root-relative (e.g., /css/styles.css, /images/), which requires the site to be served from a domain root.
Implications:
CNAME file in html-site/ is critical for proper deploymentOperational Requirements:
html-site/CNAME file without updating asset pathsContingency Plan: If the custom domain becomes unavailable and the site needs to work on the GitHub Pages URL, you must:
/css/ β /bintobetter.org/css//images/ β /bintobetter.org/images//#section β /bintobetter.org/#sectionNo build process or dependencies required! Simply open the HTML files in your browser:
# Clone the repository
git clone https://github.com/FreeForCharity/bintobetter.org.git
cd bintobetter.org
# Open in browser
cd html-site
open index.html # macOS
# or
xdg-open index.html # Linux
# or just double-click index.html in Windows
For testing features that require a web server (like cookies or CORS):
# Using Python (usually pre-installed)
cd html-site
python3 -m http.server 8000
# Visit http://localhost:8000
# Or using PHP (if installed)
cd html-site
php -S localhost:8000
# Or using Node.js http-server (if you have Node installed)
npx http-server html-site -p 8000
The repository includes Playwright E2E tests to validate HTML site functionality:
# Install dependencies (first time only)
npm install
# Run all tests
npm test
# Run tests with UI
npm run test:ui
# Run tests in headed mode (see browser)
npm run test:headed
Tests validate:
See tests/README.md for detailed testing documentation.
html-site/ directorymain branch*.html fileshtml-site/css/styles.csshtml-site/js/main.jsimages/, SVGs in svgs/, videos in videos/This repository follows Cloud Native Computing Foundation (CNCF) standards for governance, security, and community practices. We are committed to transparency, inclusive participation, and professional project management.
Why CNCF Alignment? Following CNCF standards strengthens project credibility, simplifies onboarding of contributors, and prepares us for cloud-native ecosystem integrations.
We welcome contributions! Please see our Contributing Guide for details on:
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
This repository was created using the Free For Charity website template and converted to serve the BinToBetter nonprofit organization. The template provides a professional, accessible, and performant static HTML website structure that was adapted for BinToBetterβs mission of waste reduction and environmental sustainability.