Update terminology from "growing" to "colonizing", expand greeting variety, and add decorative background patterns

Change colonization stage label from "Growing" to "Colonizing" for accuracy. Add varied time-of-day, weekend/weekday, and mushroom-themed greetings with consistent daily selection. Remove redundant font-weight declarations from font-face rules. Replace inline SVG with image file in onboarding. Improve mobile TopBar layout to show greeting. Add subtle oyster mushroom background patterns
This commit is contained in:
grove5_admin committed 2026-04-27 18:39:38 -07:00
1 parent b4278523f2
commit 70faef0b74
7 files changed
+154 -24

No files matched your search

+1 -1
View File
@@ -785,7 +785,7 @@
<div class="lc-meta">
<span class="lc-count">{occupiedCol}<span class="lc-total">/{totalCol}</span></span>
<span class="lc-sep">·</span>
<span class="lc-desc">{occupiedCol === 1 ? 'bag' : 'bags'} growing</span>
<span class="lc-desc">{occupiedCol === 1 ? 'bag' : 'bags'} colonizing</span>
</div>
<div class="lc-poem font-serif italic">Like a forest floor, underground.</div>
</div>
+1 -1
View File
@@ -152,7 +152,7 @@ export type WsDiff = {
// Friendly stage names for display
export const STAGE_LABELS: Record<BagVision['stage'], string> = {
inoculation: 'Inoculated',
colonization: 'Growing',
colonization: 'Colonizing',
pinning: 'Pinning',
fruiting: 'Fruiting',
harvest: 'Ready',
+100 -9
View File
@@ -1,13 +1,86 @@
<script lang="ts">
import { cultivar } from '../store.svelte';
// Format a friendly greeting based on local time of day
const hour = new Date().getHours();
const greeting =
hour < 5 ? 'Good evening'
: hour < 12 ? 'Good morning'
: hour < 18 ? 'Good afternoon'
: 'Good evening';
// Format a friendly greeting based on local time of day and weekday
const now = new Date();
const hour = now.getHours();
const day = now.getDay();
const isWeekend = day === 0 || day === 6;
const isWeekday = !isWeekend;
const morningGreetings = [
'Good morning',
'Rise and shine',
'Morning',
];
const afternoonGreetings = [
'Good afternoon',
'Afternoon',
];
const eveningGreetings = [
'Good evening',
'Evening',
];
const nightGreetings = [
'Good evening',
'Late night',
'Still up?', ];
// Weekend-specific greetings
const weekendGreetings = [
'Happy weekend',
'Weekend vibes',
'Enjoy your weekend',
];
// Weekday-specific greetings
const weekdayGreetings = [
'Have a great day',
'Keep growing',
'Another day',
];
// Mushroom-themed greetings
const mushroomGreetings = [
'What a fungi',
'Morel to the story',
'Spore-tacular day',
'Fun-guy',
'Shroom-tacular',
'In spore-tacular shape',
'Cap-tivating',
'Truffle shuffle',
'Hyphae happenin',
'Portobello vibes',
];
let greetings: string[];
if (hour < 5) {
greetings = nightGreetings;
} else if (hour < 12) {
greetings = morningGreetings;
} else if (hour < 18) {
greetings = afternoonGreetings;
} else {
greetings = eveningGreetings;
}
// Add day-specific greetings
if (isWeekend) {
greetings = [...greetings, ...weekendGreetings];
} else {
greetings = [...greetings, ...weekdayGreetings];
}
// Mix in mushroom-themed greetings
greetings = [...greetings, ...mushroomGreetings];
// Pick a greeting based on the day to keep it consistent throughout the day
const greetingIndex = (hour + day) % greetings.length;
const greeting = greetings[greetingIndex];
// Display cultivar owner name if we had one — for now, friendly generic
const date = new Date().toLocaleDateString([], { weekday: 'long', month: 'long', day: 'numeric' });
@@ -137,9 +210,27 @@
}
@media (max-width: 640px) {
.meta { display: none; }
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 14px 10px;
}
.meta {
display: flex;
align-items: center;
flex: 1;
justify-content: center;
min-width: 0;
}
.meta-greet {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.meta-date { display: none; }
.meta-sep { display: none; }
.live-label { display: none; }
.live { padding: 4px 8px; }
.topbar { padding: 12px 14px 10px; grid-template-columns: auto 1fr; }
}
</style>