How sahilagrawal007/nuv-yuva works
Project type and purpose
• From the file tree and README, this is a small university cultural website (“NUV-Yuva”) comprising mostly static content (HTML, CSS, JS, media assets) with a minimal dynamic component (a PHP contact form).
File structure
• Top-level files:
• index.html and several event pages (e.g., ganesh_chaturthi.html, khelaiya2022.html, etc.)
• feature.txt (likely planning notes)
• README.md (project description)
• CNAME (custom domain configuration for static hosting)
• Assets directory: grouped into css (style.css), js (main.js), scss (source styles), img (media), vendor (third-party libs)
• forms directory: contains Readme.txt and contact.php (server-side form handler)
README
• Confirms this is a cultural website for the university. No mention of databases, so dynamic behavior is limited to sending messages via contact.php (probably through mail).
Main components
a. Client (Web browser)
b. Static file server / CDN (serving HTML, CSS, JS, images, video)
c. PHP-enabled web server (e.g., Apache or Nginx+PHP-FPM) for processing forms/contact.php
d. Mail service or SMTP server (for sending contact form submissions)
Relationships & interactions
• The browser requests HTML pages and static assets from the file server or CDN.
• When a user submits the contact form, the browser sends a POST request to forms/contact.php on the PHP server.
• contact.php processes the input and hands off email data to the SMTP server.
• The SMTP server delivers the email to the site administrators.
Architectural patterns and design principles
• Single-page / multi-page static architecture with progressive enhancement via JavaScript
• Clear separation:
• Static assets hosted on a CDN or static-file host
• Dynamic code (contact.php) living on a PHP-capable endpoint
• No complex backend tiers or database layers—keeps the architecture lightweight
Technologies, frameworks, libraries
• HTML5, CSS3 (with SCSS source), JavaScript
• Vendor scripts (in assets/vendor) for any UI or utility libraries
• PHP for server-side form handling
• Mail server (SMTP) for outbound mail
• Possible use of static-site hosting platforms (GitHub Pages, Netlify) with a separate PHP host
Diagramming advice
• Frontend Client (Browser)
• Static Assets Server / CDN
• PHP Web Server
• SMTP / Mail Service
• Browser → Static Server (GET HTML/CSS/JS/Images)
• Browser → PHP Server (POST form data)
• PHP Server → SMTP Server (SEND email)
• Blue for “Static assets”
• Green for “Dynamic services” (PHP runtime)
• Orange for “External services” (Mail)
• Annotations: file paths (e.g., /assets/css/style.css), highlight contact.php logic
Detail without over-componentizing
• Environments if relevant (dev vs prod, CI/CD).