10 Commits

Author SHA1 Message Date
218e637f74 Merge pull request 'Switch web server configuration from Nginx to Angie' (#4) from features/bugfixes into main
Reviewed-on: #4
2026-03-30 12:16:28 +02:00
a5abcc841d Update angie.conf 2026-03-30 12:02:22 +02:00
a7897b91ba Switch web server configuration from Nginx to Angie 2026-03-30 11:30:04 +02:00
534bd2e701 Update README.md 2026-03-13 16:25:52 +02:00
2deac0f6e6 Update README with project details and features
* Added Project Overview: Introduced the interactive web app's purpose.
* Detailed Features: Listed key features like interactive UI, dynamic responses, and webhook integration.
* Defined Tech Stack: Documented use of Vanilla JS, Nginx, and RTL support.
* Added Deployment Guide: Included basic instructions for hosting via Nginx.
2026-03-13 16:22:22 +02:00
0234683ee2 Merge pull request 'Refactor: Convert to Single Page Application (SPA) and optimize assets' (#2) from features/bugfixes into main
Reviewed-on: https://gitea.mohandl3g.ddnsgeek.com/MohandL3G/My-Fun-Website/pulls/2
2026-03-13 04:23:19 +02:00
204a25c79f Refactor: Convert to Single Page Application (SPA) and optimize assets
- Transformed the website into a Single Page Application (SPA) to provide instant, reload-free transitions.
- Implemented dynamic UI updates in JavaScript, including title and favicon changes based on user interaction.
- Enabled Gzip compression and browser caching in nginx.conf for significantly faster load times.
- Optimized images by converting heavy GIFs to animated WebP format, reducing asset sizes by ~30%.
- Streamlined project structure by removing redundant HTML files and implementing event delegation in script.js.
2026-03-13 04:22:16 +02:00
22f80cf1c4 Add nginx proxy, CSP, and client-side cleanup
Add config/nginx.conf to proxy /api/webhook to the n8n webhook and inject server-side auth/header (moves secret out of the client). Add CSP and X-Content-Type-Options meta tags to index.html, yes.html, and no.html. Replace inline centering with a .centered_text CSS class and update main.css. Update script.js to use the local /api/webhook, remove client-side secret header, add safe redirect mapping, and guard event listener attachment to avoid errors when elements are missing.
2026-03-13 04:00:17 +02:00
ad4c090d29 Add proposal pages, styles, images, and webhook
Add an Arabic (RTL) proposal flow: index.html with a yes/no prompt and buttons, plus yes.html and no.html result pages. Include main.css for layout and styling, various image assets (icons and gifs), and script.js which posts the user's choice to a configured webhook then redirects to the corresponding page.
2026-02-15 00:45:38 +02:00
9dae1cdea5 Initial commit 2026-02-15 00:08:54 +02:00