diff --git a/dashboards/dashboards.yaml b/dashboards/dashboards.yaml index 2d175c9..3446c55 100644 --- a/dashboards/dashboards.yaml +++ b/dashboards/dashboards.yaml @@ -1,6 +1,7 @@ voice-alarms: !include voice-alarms.yaml family-hub: !include family-hub.yaml at-a-glance: !include at-a-glance.yaml +lunch-menus: !include lunch-menus.yaml # Each key is the dashboard's url_path, and HA requires it to contain a hyphen # (see homeassistant/components/lovelace: url_path validation). A hyphen-less # key fails validation for the whole `lovelace:` block, not just its own entry, diff --git a/dashboards/lunch-menus.yaml b/dashboards/lunch-menus.yaml new file mode 100644 index 0000000..ef30e74 --- /dev/null +++ b/dashboards/lunch-menus.yaml @@ -0,0 +1,5 @@ +mode: yaml +title: Lunch Menus +icon: mdi:food-apple +show_in_sidebar: true +filename: dashboards/views/lunch-menus-dashboard.yaml diff --git a/dashboards/views/lunch-menus-dashboard.yaml b/dashboards/views/lunch-menus-dashboard.yaml new file mode 100644 index 0000000..71073ca --- /dev/null +++ b/dashboards/views/lunch-menus-dashboard.yaml @@ -0,0 +1,72 @@ +# Lunch Menus — school cafeteria calendars (one week each) +# +# Three Google Calendar entities, each shown in listWeek so the wall/panel +# view stays focused on the current week instead of a full month grid. +title: Lunch Menus +theme: cubecraft +views: + - title: Lunch Menus + path: lunch-menus + icon: mdi:food-apple + theme: cubecraft + type: masonry + cards: + - type: markdown + content: | + # School Lunch Menus + ## Week of {{ now().strftime("%B %d, %Y") }} + card_mod: + style: | + ha-card { + background: var(--cc-gradient); + color: #fff; + border: none; + border-radius: var(--cc-radius-brand); + box-shadow: var(--cc-shadow-brand); + padding: 6px 12px; + text-align: center; + } + ha-card h1 { + margin: 0; + font-size: 1rem; + font-weight: 600; + letter-spacing: 0.02em; + opacity: 0.85; + color: #fff; + } + ha-card h2 { + margin: 2px 0 0 0; + font-size: 1.5rem; + font-weight: 800; + letter-spacing: -0.01em; + color: #fff; + } + + - type: calendar + title: BHS Lunch Menu + initial_view: listWeek + entities: + - calendar.bhs_lunch_menu + card_mod: &cc_calendar + style: | + ha-card { + --calendar-day-color: var(--cc-text, var(--primary-text-color)); + --calendar-day-weekday-color: var(--cc-text-muted, var(--secondary-text-color)); + --fc-today-bg-color: var(--cc-accent-soft); + --fc-event-bg-color: var(--cc-accent); + --fc-event-border-color: var(--cc-accent); + } + + - type: calendar + title: BIS School Lunches + initial_view: listWeek + entities: + - calendar.bis_school_lunches + card_mod: *cc_calendar + + - type: calendar + title: HMS Lunch Menu + initial_view: listWeek + entities: + - calendar.hms_lunch_menu + card_mod: *cc_calendar