How zyacub/dietnerd-website works
Project type and purpose
• This is a static‐frontend web application (“DietNerd”) whose sole purpose is to deliver an evidence‐based diet/nutrition Q&A interface in the browser.
• The project handles query input, result display, reference exploration, PDF exports, and a contact form—but all dynamic data comes from an external backend API (https://github.com/zyacub/dietnerd-backend).
File structure
• Top‐level files:
• index.html / index.js / index.css – main Q&A UI
• reference.html / reference.js / reference.css – deep‐dive references viewer
• about.html / about.css – static “About” page
• contact.html / contact.css – contact‐form page
• assets/ – static images (e.g., logo)
• env.js – holds API endpoint and email‐service configuration
• No backend code here; all API calls are performed from the frontend via JavaScript fetch/XHR.
README for additional insights
• Confirms the frontend tech stack (HTML/CSS/JS) and points to the backend repo.
• Lists core features: diet Q&A, suggestions, references with PDF generation, contact form.