PHP Classes

File: src/layouts/MainLayout.vue

Recommend this page to a friend!
  Packages of Robert Devenyi   Sibo Meal Planner   src/layouts/MainLayout.vue   Download  
File: src/layouts/MainLayout.vue
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Sibo Meal Planner
App to help treat the SIBO health condition
Author: By
Last change:
Date: 8 months ago
Size: 1,334 bytes
 

Contents

Class file image Download
<template> <q-layout view="lHh Lpr lFf"> <!-- Header --> <q-header elevated class="bg-white border-b border-gray-200"> <q-toolbar class="justify-between items-center"> <!-- Left Spacer --> <div style="width: 120px"></div> <!-- Logo (always centered) --> <img src="/logo.png" alt="Sibo Mealplan Logo" style="height: 100px; width: auto; object-fit: contain" /> <!-- Dropdown (only shows after a selection is made) --> <div style="width: 120px; text-align: right"> <q-select v-if="selectedType" v-model="selectedType" :options="mealTypes" dense outlined options-dense style="min-width: 120px" /> </div> </q-toolbar> </q-header> <!-- Main Content --> <q-page-container> <router-view /> </q-page-container> </q-layout> </template> <script setup> import { ref, provide } from 'vue' /** * Provide selectedType so child pages can update it */ const selectedType = ref(null) provide('selectedType', selectedType) // Meal type options for dropdown const mealTypes = [ 'Hydrogen-Dominant SIBO', 'Methane-Dominant SIBO', 'Hydrogen Sulfide-Dominant SIBO', 'Mixed-Type SIBO', ] </script>