diff --git a/server.js b/server.js index 2f56956..322fbda 100644 --- a/server.js +++ b/server.js @@ -248,6 +248,176 @@ export const DEMO_SETTINGS = { handoutText: 'Curated by your specialist. Scan the QR code or visit the link to review and order your personalized routine.', }; +export const DEMO_CATALOG = [ + { + id: 101, + title: 'Hydrating Daily Cleanser', + handle: 'hydrating-daily-cleanser', + variants: [ + { + id: 101, + title: '200ml Bottle', + displayTitle: 'Hydrating Daily Cleanser - 200ml Bottle', + price: '34.00', + priceFormatted: '$34.00', + available: true, + }, + ], + }, + { + id: 102, + title: 'Antioxidant Facial Serum', + handle: 'antioxidant-facial-serum', + variants: [ + { + id: 102, + title: '30ml Dropper', + displayTitle: 'Antioxidant Facial Serum - 30ml Dropper', + price: '48.50', + priceFormatted: '$48.50', + available: true, + }, + ], + }, + { + id: 103, + title: 'Barrier Recovery Lip Balm', + handle: 'barrier-recovery-lip-balm', + variants: [ + { + id: 103, + title: '15ml Tube', + displayTitle: 'Barrier Recovery Lip Balm - 15ml Tube', + price: '28.00', + priceFormatted: '$28.00', + available: true, + }, + ], + }, + { + id: 104, + title: 'Omega-3 EPA/DHA Pure', + handle: 'omega-3-epa-dha-pure', + variants: [ + { + id: 104, + title: '60 Softgels', + displayTitle: 'Omega-3 EPA/DHA Pure - 60 Softgels', + price: '32.00', + priceFormatted: '$32.00', + available: true, + }, + ], + }, + { + id: 105, + title: 'Magnesium Glycinate Complex', + handle: 'magnesium-glycinate-complex', + variants: [ + { + id: 105, + title: '120 Capsules', + displayTitle: 'Magnesium Glycinate Complex - 120 Capsules', + price: '26.50', + priceFormatted: '$26.50', + available: true, + }, + ], + }, +]; + +/** + * Renders the interactive showcase navigation bar for public /demo and /try routes. + * + * @param {'portal' | 'client' | 'handout' | 'admin'} [currentView='portal'] + * @param {string} [basePath='/demo'] + * @returns {string} HTML markup + */ +export function renderDemoShowcaseBar(currentView = 'portal', basePath = '/demo') { + return ` + +
+`; +} + /** * Validates server configuration before startup. * Refuses to start in production mode (DATABASE_URL set) while admin session-token @@ -493,7 +663,7 @@ export function renderFriendlyRootHtml() {Practitioner Protocols runs inside your Shopify admin. Open it from your Shopify admin's Apps list.
- +