{{ clockTime() }}

{{ familyName() }}

{{ dateLabel() }}

@switch (currentPage()) { @case ('home') {

{{ greeting() }} familia

@if (todayHoliday(); as hol) {

} @else { @if (pendingTasks().length > 0) {

{{ pendingTasksLabel() }}

} @else {

Hoy parece tranquilo.

} } @if (upcomingBirthdays().length > 0 && upcomingBirthdays()[0].daysAhead <= 7) {

🎂

}
@if (weather(); as w) { {{ w.weatherIcon }}

{{ w.currentTemperature | number: '1.0-0' }}°

{{ w.weatherLabel }}

@if (w.locationLabel) { {{ w.locationLabel }} · } Mín {{ w.minTemperature | number: '1.0-0' }}° · Máx {{ w.maxTemperature | number: '1.0-0' }}° @if (w.precipitationProbability !== null) { · 💧 {{ w.precipitationProbability }}% }

@if (w.sunrise && w.sunset) {

🌅 {{ w.sunrise }} · 🌇 {{ w.sunset }}

} } @else {

Configura la ubicación para ver el tiempo.

}
} @case ('cole') {

Hoy en el cole

@if (todayHoliday(); as hol) {

} @else if (todaySchoolDays().length === 0 && todayExtras().length === 0) {

Sin actividad de cole programada para hoy.

} @else {
    @for (b of todaySchoolDays(); track b.memberId) {
  • {{ schoolModeIcon(b.transportMode) }}
    @if (b.isCancelled) {

    {{ memberName(b.memberId) }} · sin cole

    } @else {

    } @if (b.notes) {

    {{ b.notes }}

    }
  • } @for (e of todayExtras(); track e.extracurricularId) {
  • 🎒

    {{ e.name }} · {{ memberName(e.memberId) }} · {{ formatTime(e.startTime) }}–{{ formatTime(e.endTime) }} @if (e.location) { · {{ e.location }} }

    @if (!e.isCancelled) {

    {{ extraTransportLine(e) }}

    }
  • }
}
} @case ('tasks') {

Tareas de hoy

@if (pendingTasks().length === 0) {

Hoy no queda nada por hacer ✨

} @else {
    @for (row of pendingTasks(); track row.task.id) {
  • {{ row.task.title }}

    @if (row.task.isFloating) { Sin fecha } @else if (row.task.timeOfDay) { {{ row.task.timeOfDay.slice(0, 5) }} } @else { {{ row.task.category }} }

    @if (row.task.responsibleMemberId) { }
  • }
}
} @case ('calendar') {

Próxima agenda

@if (upcomingEvents().length === 0) {

Sin eventos en los próximos 7 días.

} @else {
    @for (event of upcomingEvents(); track event.id) {
  • {{ eventDayLabel(event) }}

    {{ eventTimeLabel(event) }}

    {{ event.title }}

    @if (event.location) {

    📍 {{ event.location }}

    }
  • }
}
} @case ('meals') {

Hoy se come en la mesa

@if (!hasMeals()) {

Sin planificación para hoy. Hora de inventar algo.

} @else {

☀️ Comida

@if (todayLunch()?.firstCourse || todayLunch()?.secondCourse) { @if (todayLunch()?.firstCourse) {

{{ todayLunch()?.firstCourse }}

} @if (todayLunch()?.secondCourse) {

{{ todayLunch()?.secondCourse }}

} } @else {

sin planificar

}

🌙 Cena

@if (todayDinner()?.firstCourse || todayDinner()?.secondCourse) { @if (todayDinner()?.firstCourse) {

{{ todayDinner()?.firstCourse }}

} @if (todayDinner()?.secondCourse) {

{{ todayDinner()?.secondCourse }}

} } @else {

sin planificar

}
}
} @case ('wall') {

Lo último en el muro

@if (pinned().length === 0 && recentMessages().length === 0) {

El muro está en silencio.

} @else {
    @for (msg of pinned(); track msg.id) {
  • 📌

    {{ memberName(msg.authorMemberId) }} · {{ msg.createdAt | date: 'd MMM' }}

  • } @for (msg of recentMessages(); track msg.id) {
  • {{ memberName(msg.authorMemberId) }} · {{ msg.createdAt | date: 'd MMM HH:mm' }}

  • }
}
} }