Skip to content

About

A complete revamp of the Edenbridge Grammar School website, developed by the team at Crater Code Pvt. Ltd. under the leadership of Muhammad Abdullah Wasim, delivering a modern and improved web experience.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Edenbridge Grammar School β€” Web Platform ("Beyond Schooling")

React Version React Router Three.js Tailwind CSS PHP Backend License

Official web platform for Edenbridge Grammar School, an institution in Islamabad and Rawalpindi, Pakistan offering a values-anchored, academically rigorous curriculum with the Exel Integrated Learning Framework, blending Islamic values with AI-enhanced personalized learning.


πŸ“‘ Table of Contents


πŸ“Έ Visual Showcase & Screenshots

Homepage & Interactive 3D Hero Experience

Edenbridge Grammar School Hero & Core Values

Exel Learning Framework & AI Model Curriculum Phase Overview
Exel Learning Framework Curriculum Phase Overview
AI Cognitive Models & Architecture
Interactive neuro-pedagogical framework visualization
Exel Integrated Curriculum Phases
Foundation, Formation, Orientation & Direction stages

Footer, Contact Hub & Campus Location

Footer & Location Map


🌟 Overview & Architecture

The application is structured as a modern decoupled web platform:

  1. Frontend: A high-performance Single-Page Application (SPA) built with React 18, leveraging Framer Motion for micro-interactions, Three.js / React Three Fiber for 3D orbital visualizations of school values and neural models, and TailwindCSS with custom responsive styling for displays ranging from mobile devices up to 4K LED screens.
  2. Backend: Lightweight, secure PHP REST API endpoints with MySQL database persistence, handling student admissions, contact requests, client IP rate-limiting, and automated email notifications.
  3. Institutional Documents: 8 official school policy documents in PDF format, accessible via interactive flip cards and modal readers.

πŸš€ Key Features

  • 3D Interactive Core Values: Dynamic planetary orbit rendering with Three.js (CoreValues3D.jsx), featuring interactive hover states, metallic shaders, and real-time animation.
  • Exel Integrated Curriculum Explorer: Detailed phase-by-phase curriculum breakdowns:
    • Foundation Phase (Early Years)
    • Formation Phase (Primary Years)
    • Orientation Phase (Middle School)
    • Direction Phase (High School & O-Levels)
  • AI & Neuro-Educational Models: Dynamic visual representations of AI learning frameworks (AIModelsVisualization.jsx and NeuralDiagram.js).
  • Online Admission Application: Validated form with asynchronous submission to the backend API (/api/submit-application.php), client-side feedback, and rate-limit safeguards.
  • Dynamic Policy Library: Instant access to 8 school policy PDFs (Safeguarding, Data Protection, Code of Conduct, Assessment, Teaching & Learning, AI/Digital Safety guides for parents and students).
  • Responsive Display Optimization: Custom CSS media queries supporting ultra-wide landscape viewports (21:9, 32:9) and high-density 4K LED conference displays (led-display-fix.css).
  • SEO & Social Optimization: Dynamic page metadata using react-helmet-async, canonical URLs, JSON-LD structured data, and Google Analytics integration.

πŸ› οΈ Technology Stack

Frontend

Component Technology Version Purpose
Core Framework React ^18.2.0 UI component tree and state management
Routing React Router DOM ^7.13.0 Client-side declarative routing
3D Graphics Three.js ^0.159.0 WebGL 3D scene rendering
R3F Integration @react-three/fiber ^8.15.0 React renderer for Three.js
3D Helpers @react-three/drei ^9.92.0 OrbitControls, Torus, Spheres, and HTML overlays
Animations Framer Motion ^10.16.0 Scroll-triggered transitions and modals
Styling Engine TailwindCSS ^3.4.19 Utility-first CSS classes
PostCSS / Build @craco/craco ^5.9.0 Custom webpack and PostCSS configuration
SEO / Meta react-helmet-async ^2.0.5 Document <head> tags per route

Backend & Storage

Component Technology Purpose
Language PHP 8.x Lightweight REST endpoints
Database MySQL / MariaDB (InnoDB) Relational storage for applications, contacts, and logs
Server Environment Apache with mod_rewrite & .htaccess CORS headers, rewrite rules, and security headers
Security Parameterized SQL (mysqli), HTML sanitization, IP rate limiter Injection and spam prevention

πŸ“ Project Directory Structure

EdenBridge_Grammar/
β”œβ”€β”€ api/                                # Backend PHP endpoints
β”‚   β”œβ”€β”€ .htaccess                       # Apache routing & CORS headers
β”‚   β”œβ”€β”€ config.php                      # Database credentials & email settings
β”‚   β”œβ”€β”€ submit-application.php          # Admission application form handler
β”‚   └── submit-contact.php              # General inquiries handler
β”œβ”€β”€ database-setup.sql                  # MySQL schema definition & admin seed
β”œβ”€β”€ public/                             # Static public assets
β”‚   β”œβ”€β”€ policies/                       # Official school policy PDFs (8 files)
β”‚   β”œβ”€β”€ hero-video.mp4                  # Main homepage looping video
β”‚   β”œβ”€β”€ logo.png                        # School crest & identity
β”‚   β”œβ”€β”€ favicon.ico                     # Browser icon
β”‚   β”œβ”€β”€ index.html                      # HTML entrypoint & GA tag
β”‚   β”œβ”€β”€ robots.txt                      # Search engine crawler rules
β”‚   └── sitemap.xml                     # XML site indexing
β”œβ”€β”€ src/                                # Application source code
β”‚   β”œβ”€β”€ assets/                         # Static icons and imagery
β”‚   β”œβ”€β”€ components/                     # Reusable React components
β”‚   β”‚   β”œβ”€β”€ AIModelsVisualization.jsx   # Interactive AI models chart
β”‚   β”‚   β”œβ”€β”€ CoreValues3D.jsx            # 3D planet orbit visualization (R3F)
β”‚   β”‚   β”œβ”€β”€ CoreValues3D.css            # 3D canvas styling
β”‚   β”‚   β”œβ”€β”€ DiscoverModal.js            # Video/curriculum discover modal
β”‚   β”‚   β”œβ”€β”€ Footer.js / Footer.css      # Site footer with map & social links
β”‚   β”‚   β”œβ”€β”€ Navbar.js / Navbar.css      # Sticky navigation & mobile hamburger
β”‚   β”‚   β”œβ”€β”€ NeuralDiagram.js            # Visual cognitive network
β”‚   β”‚   β”œβ”€β”€ PageTitle.js                # Dynamic document title hook
β”‚   β”‚   β”œβ”€β”€ ParticleBackground.js       # Subtle particle canvas
β”‚   β”‚   β”œβ”€β”€ Scene3D.js                  # Hero WebGL scene
β”‚   β”‚   β”œβ”€β”€ ScrollToTop.js              # Route change window scroll reset
β”‚   β”‚   └── SEO.js                      # Reusable SEO meta tags component
β”‚   β”œβ”€β”€ pages/                          # Routed view components
β”‚   β”‚   β”œβ”€β”€ ApplyNow.js                 # Admissions application form
β”‚   β”‚   β”œβ”€β”€ BoardOfDirectors.js         # Leadership and governance
β”‚   β”‚   β”œβ”€β”€ Careers.js                  # Job vacancies and submissions
β”‚   β”‚   β”œβ”€β”€ Direction.js                # Direction Phase (High School / O-Levels)
β”‚   β”‚   β”œβ”€β”€ FAQ.js                      # Flip-card FAQ interactive accordion
β”‚   β”‚   β”œβ”€β”€ Formation.js                # Formation Phase (Primary School)
β”‚   β”‚   β”œβ”€β”€ Foundation.js               # Foundation Phase (Early Years)
β”‚   β”‚   β”œβ”€β”€ FoundersMessage.js          # Founder's vision message
β”‚   β”‚   β”œβ”€β”€ IdeologyPageCSS.js          # School philosophy & values
β”‚   β”‚   β”œβ”€β”€ LearningFramework.js        # Exel Integrated Curriculum framework
β”‚   β”‚   β”œβ”€β”€ Orientation.js              # Orientation Phase (Middle School)
β”‚   β”‚   β”œβ”€β”€ Policies.js                 # Interactive policy PDF library
β”‚   β”‚   └── Study.js                    # Academic programs overview
β”‚   β”œβ”€β”€ App.js / App.css                # Homepage master layout
β”‚   β”œβ”€β”€ index.js / index.css            # React root mount & global styles
β”‚   └── led-display-fix.css             # Large display (4K/LED) responsive overrides
β”œβ”€β”€ craco.config.js                     # CRACO PostCSS / Tailwind bridge
β”œβ”€β”€ tailwind.config.js                  # Tailwind design tokens & breakpoints
β”œβ”€β”€ vercel.json                         # Vercel SPA routing redirects
└── package.json                        # NPM project dependencies & scripts

πŸ—ΊοΈ Routing & Page Map

Route Page Component Description
/ App.js Main landing page, hero video, 3D Core Values, admissions overview
/our-ideology IdeologyPageCSS.js School ideology, educational philosophy, Islamic values integration
/study Study.js Comprehensive overview of the Exel Integrated Curriculum
/study/foundation-phase Foundation.js Foundation Stage: early childhood development and sensory learning
/study/formation-phase Formation.js Formation Stage: fundamental literacy, numeracy, and character building
/study/orientation-phase Orientation.js Orientation Stage: exploratory thinking and academic readiness
/study/direction-phase Direction.js Direction Stage: specialization, Cambridge O-Levels, and leadership
/study/learning-framework LearningFramework.js Neuro-pedagogy, AI integration, and personalized education models
/team/board-of-directors BoardOfDirectors.js Profiles of school governors, trustees, and academic advisors
/team/founders-message FoundersMessage.js Letter from the school leadership and visionary statement
/team/careers Careers.js Academic and administrative career openings
/apply-now ApplyNow.js Admissions application form with backend integration
/faq FAQ.js Interactive flip card FAQ accordion with categorized guidance
/policies Policies.js Official school policies library with direct PDF viewing

πŸ’Ύ Backend & Database Setup

The backend handles admission applications and form submissions using a MySQL database.

1. Database Schema

Execute the queries in database-setup.sql via phpMyAdmin or the MySQL CLI. It creates:

  • applications: Stores parent name, email, phone, child age bracket, message, submission IP, user agent, and status flags (pending, reviewed, contacted, enrolled, rejected).
  • contact_messages: Handles general questions and contact form data.
  • rate_limiting: Enforces a maximum of 5 submissions per IP within a 24-hour window.
  • admin_users: Manages administrative credentials (includes default admin seed).
  • activity_log: Tracks administrative changes and audit events.

2. API Configuration

Edit api/config.php to update production database credentials:

define('DB_HOST', 'localhost');
define('DB_USER', 'your_database_user');
define('DB_PASS', 'your_database_password');
define('DB_NAME', 'your_database_name');

define('ADMIN_EMAIL', 'info@edenbridgegrammar.com');
define('SITE_URL', 'https://edenbridgegrammar.edu');

πŸ’» Local Development Setup

Prerequisites

  • Node.js: v18.x or v20.x
  • NPM: v9.x or v10.x
  • (Optional for Backend): Local Apache/PHP 8.x stack (e.g., XAMPP, Laragon, or Docker)

Installation Steps

  1. Clone the repository:

    git clone https://github.com/crater-code/EdenBridge_Grammar.git
    cd EdenBridge_Grammar
  2. Install frontend dependencies:

    npm install
  3. Start the local development server:

    npm start

    If port 3000 is occupied by another process, specify an alternate port:

    # PowerShell (Windows)
    $env:PORT="3001"; npm start
    
    # Bash (macOS / Linux)
    PORT=3001 npm start
  4. Access the application:

    • Open your browser to http://localhost:3000 (or http://localhost:3001).
  5. Build for Production:

    npm run build

πŸ‘₯ Contributors


πŸ“ž Contact & Support


πŸ“„ License

Proprietary β€” All rights reserved by Edenbridge Grammar School.

About

A complete revamp of the Edenbridge Grammar School website, developed by the team at Crater Code Pvt. Ltd. under the leadership of Muhammad Abdullah Wasim, delivering a modern and improved web experience.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages