getSeasonalHouston() — astro Function Reference
Architecture documentation for the getSeasonalHouston() function in seasonal.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 3cc41fab_53f1_ba76_f0d8_8f1f61f8190c["getSeasonalHouston()"] aa0e6248_8f82_1b08_b0c0_f000030ed60e["seasonal.ts"] 3cc41fab_53f1_ba76_f0d8_8f1f61f8190c -->|defined in| aa0e6248_8f82_1b08_b0c0_f000030ed60e b60e7408_b73b_241d_6427_fe2bc3e659a6["getSeason()"] 3cc41fab_53f1_ba76_f0d8_8f1f61f8190c -->|calls| b60e7408_b73b_241d_6427_fe2bc3e659a6 d3d56183_54a5_5e7d_e6f0_5d5d26abe08a["rarity()"] 3cc41fab_53f1_ba76_f0d8_8f1f61f8190c -->|calls| d3d56183_54a5_5e7d_e6f0_5d5d26abe08a style 3cc41fab_53f1_ba76_f0d8_8f1f61f8190c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/create-astro/src/data/seasonal.ts lines 7–87
export default function getSeasonalHouston({ fancy }: { fancy?: boolean }): SeasonalHouston {
const season = getSeason();
switch (season) {
case 'new-year': {
const year = new Date().getFullYear();
return {
hats: rarity(0.5, ['🎩']),
ties: rarity(0.25, ['🎊', '🎀', '🎉']),
messages: [
`New year, new Astro site!`,
`Kicking ${year} off with Astro?! What an honor!`,
`Happy ${year}! Let's make something cool.`,
`${year} is your year! Let's build something awesome.`,
`${year} is the year of Astro!`,
`${year} is clearly off to a great start!`,
`Thanks for starting ${year} with Astro!`,
],
};
}
case 'spooky':
return {
hats: rarity(0.5, ['🎃', '👻', '☠️', '💀', '🕷️', '🔮']),
ties: rarity(0.25, ['🦴', '🍬', '🍫']),
messages: [
`I'm afraid I can't help you... Just kidding!`,
`Boo! Just kidding. Let's make a website!`,
`Let's haunt the internet. OooOooOOoo!`,
`No tricks here. Seeing you is always treat!`,
`Spiders aren't the only ones building the web!`,
`Let's conjure up some web magic!`,
`Let's harness the power of Astro to build a frightful new site!`,
`We're conjuring up a spooktacular website!`,
`Prepare for a web of spooky wonders to be woven.`,
`Chills and thrills await you on your new project!`,
],
};
case 'holiday':
return {
hats: rarity(0.75, ['🎁', '🎄', '🌲']),
ties: rarity(0.75, ['🧣']),
messages: [
`'Tis the season to code and create.`,
`Jingle all the way through your web creation journey!`,
`Bells are ringing, and so are your creative ideas!`,
`Let's make the internet our own winter wonderland!`,
`It's time to decorate a brand new website!`,
`Let's unwrap the magic of the web together!`,
`Hope you're enjoying the holiday season!`,
`I'm dreaming of a brand new website!`,
`No better holiday gift than a new site!`,
`Your creativity is the gift that keeps on giving!`,
],
};
case undefined:
default:
return {
hats: fancy ? ['🎩', '🎩', '🎩', '🎩', '🎓', '👑', '🧢', '🍦'] : undefined,
ties: fancy ? rarity(0.33, ['🎀', '🧣']) : undefined,
messages: [
`Let's claim your corner of the internet.`,
`I'll be your assistant today.`,
`Let's build something awesome!`,
`Let's build something great!`,
`Let's build something fast!`,
`Let's build the web we want.`,
`Let's make the web weird!`,
`Let's make the web a better place!`,
`Let's create a new project!`,
`Let's create something unique!`,
`Time to build a new website.`,
`Time to build a faster website.`,
`Time to build a sweet new website.`,
`We're glad to have you on board.`,
`Keeping the internet weird since 2021.`,
`Initiating launch sequence...`,
`Initiating launch sequence... right... now!`,
`Awaiting further instructions.`,
],
};
}
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does getSeasonalHouston() do?
getSeasonalHouston() is a function in the astro codebase, defined in packages/create-astro/src/data/seasonal.ts.
Where is getSeasonalHouston() defined?
getSeasonalHouston() is defined in packages/create-astro/src/data/seasonal.ts at line 7.
What does getSeasonalHouston() call?
getSeasonalHouston() calls 2 function(s): getSeason, rarity.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free