MainBrands
Purpose
The MainBrands collection stores information and configuration for the main brands available in the ARShades ecosystem. Each document contains branding details, visual styles, descriptions, and settings that define how a brand is presented and managed within the platform.
Document schema
{
"catalogsPageStyle": {
"catalogue_logo_position": "string",
"come_img_mobile": "string",
"cover_color": "string",
"cover_height_desktop": "string",
"cover_height_mobile": "string",
"cover_img": "string",
"cover_img_mobile": "string",
"cover_template": "string",
"primary_color": "string",
"secondary_color": "string"
},
"codePath": "string",
"coverImage": "string",
"descriptionEn": "string",
"descriptionIt": "string",
"hdrEnvironment": "string",
"isPublic": "boolean",
"nameBrand": "string",
"noBackgroundLogo": "string",
"urlLogo": "string",
"visibleStoreLocator": "boolean"
}
Indexes
This collection does not have external indexes.
Query examples
// Fetch every brand in MainBrands collection
const brandsCollection = collection(db, "MainBrands");
// Get every Document Snapshot from the collection
const brandsSnapshot = await getDocs(query(brandsCollection));