Repository navigation
Gallery Management
Bosaj edited this page Sep 25, 2026
·
5 revisions
The photo gallery system delivers both a dedicated visual explorer (/gallery) and an interactive home page preview marquee (GalleryPreview.jsx).
-
Upload Process:
- Admin navigates to Admin Dashboard > Gallery.
- Clicks Add Image.
- Enters an image URL or uploads a photo. Photos are resized in the browser (max 1920px, JPEG) and stored under
gallery/in the public Supabaseimagesbucket, so full-size camera photos can be uploaded directly. - Fills in captions in Arabic, French, and English.
- Selects category:
event,project,program, orgeneral. - Optionally links the photo to an existing Event, Project, or Program.
- Checks Featured if the image should appear in the home page auto-scrolling marquee.
-
Database Schema (
gallery_images):-
id: UUID Primary Key. -
image_url: Direct public HTTPS URL. -
caption: JSONB object{"ar": "...", "fr": "...", "en": "..."}. -
related_type: Category identifier string. -
related_item_id: Optional UUID foreign key to associated event/program. -
is_featured: Boolean flag for homepage marquee visibility. -
created_at: Timestamp with timezone.
-
-
Infinite Marquee Engine:
- Powered by CSS keyframes (
translateX(0)totranslateX(-50%)). - The outer container enforces
dir="ltr"so the animation scroll direction is stable regardless of whether the site language is Arabic (RTL) or French/English (LTR). - Hovering over any photo pauses the marquee for accessibility.
- Powered by CSS keyframes (
Production Web App: https://a-a-b-v.netlify.app/
Official Email: asosoufaraelkhir48@gmail.com | GitHub Repo: Bosaj/les-ambassadeurs-web
Facebook β’ Instagram β’ X (Twitter) β’ LinkedIn β’ WhatsApp
Platform developed & maintained by Oussama ELHADJI β All Rights Reserved Β© 2026