Spaces:
Running
Running
Download algospaced-ui/src/features/companion/data/chapterWeather.ts from iamfebin/algospaced-dsa: direct link, hf CLI and curl.
- Browser
- Download file 2.6 kB
-
https://huggingface.co/spaces/iamfebin/algospaced-dsa/resolve/main/algospaced-ui/src/features/companion/data/chapterWeather.ts
- Command line
-
hf download hf://spaces/iamfebin/algospaced-dsa/algospaced-ui/src/features/companion/data/chapterWeather.ts
-
curl -L -o chapterWeather.ts https://huggingface.co/spaces/iamfebin/algospaced-dsa/resolve/main/algospaced-ui/src/features/companion/data/chapterWeather.ts
2.6 kB
| export interface ChapterWeatherConfig { | |
| particleType: 'pollen' | 'leaves' | 'spores' | 'snow' | 'runes' | 'stardust'; | |
| particleCount: number; | |
| particleColors: string[]; | |
| gradientBg: string; | |
| glowColor: string; | |
| badgeLabel: string; | |
| } | |
| export const CHAPTER_WEATHER_CONFIGS: Record<number, ChapterWeatherConfig> = { | |
| // Chapter 1: Plains of Arrays (Floors 1-30) | |
| 1: { | |
| particleType: 'pollen', | |
| particleCount: 16, | |
| particleColors: ['#FDE047', '#FEF08A', '#86EFAC'], | |
| gradientBg: 'from-[#FFFDF0] via-[#FFF9E6] to-[#FEF3C7]', | |
| glowColor: 'rgba(251, 191, 36, 0.3)', | |
| badgeLabel: '🌾 Plains Breeze', | |
| }, | |
| // Chapter 2: Whispering Forest (Floors 31-60) | |
| 2: { | |
| particleType: 'leaves', | |
| particleCount: 18, | |
| particleColors: ['#86EFAC', '#4ADE80', '#22C55E', '#A7F3D0'], | |
| gradientBg: 'from-[#F0FDF4] via-[#DCFCE7] to-[#FEF9C3]', | |
| glowColor: 'rgba(34, 197, 94, 0.3)', | |
| badgeLabel: '🍃 Whispering Leaves', | |
| }, | |
| // Chapter 3: Grand Caverns (Floors 61-90) | |
| 3: { | |
| particleType: 'spores', | |
| particleCount: 22, | |
| particleColors: ['#67E8F9', '#38BDF8', '#818CF8', '#C084FC'], | |
| gradientBg: 'from-[#F0F9FF] via-[#E0F2FE] to-[#EDE9FE]', | |
| glowColor: 'rgba(56, 189, 248, 0.35)', | |
| badgeLabel: '✨ Crystal Spores', | |
| }, | |
| // Chapter 4: Mountain Passes (Floors 91-120) | |
| 4: { | |
| particleType: 'snow', | |
| particleCount: 28, | |
| particleColors: ['#FFFFFF', '#E0F2FE', '#BAE6FD'], | |
| gradientBg: 'from-[#F8FAFC] via-[#F1F5F9] to-[#E2E8F0]', | |
| glowColor: 'rgba(186, 230, 253, 0.4)', | |
| badgeLabel: '❄️ Alpine Snowfall', | |
| }, | |
| // Chapter 5: Valley of DP (Floors 121-149) | |
| 5: { | |
| particleType: 'runes', | |
| particleCount: 20, | |
| particleColors: ['#E879F9', '#C084FC', '#A855F7', '#F472B6'], | |
| gradientBg: 'from-[#FAF5FF] via-[#F3E8FF] to-[#FCE7F3]', | |
| glowColor: 'rgba(192, 132, 252, 0.4)', | |
| badgeLabel: '🔮 Arcane Runes', | |
| }, | |
| // Chapter 6: Tower of the Elixir (Floor 150) | |
| 6: { | |
| particleType: 'stardust', | |
| particleCount: 35, | |
| particleColors: ['#FDE047', '#F59E0B', '#E11D48', '#818CF8'], | |
| gradientBg: 'from-[#FFFBEB] via-[#FEF3C7] to-[#FFE4E6]', | |
| glowColor: 'rgba(245, 158, 11, 0.5)', | |
| badgeLabel: '✨ Tower of the Elixir', | |
| }, | |
| }; | |
| export function getChapterWeather(floor: number): ChapterWeatherConfig { | |
| if (floor <= 30) return CHAPTER_WEATHER_CONFIGS[1]; | |
| if (floor <= 60) return CHAPTER_WEATHER_CONFIGS[2]; | |
| if (floor <= 90) return CHAPTER_WEATHER_CONFIGS[3]; | |
| if (floor <= 120) return CHAPTER_WEATHER_CONFIGS[4]; | |
| if (floor < 150) return CHAPTER_WEATHER_CONFIGS[5]; | |
| return CHAPTER_WEATHER_CONFIGS[6]; | |
| } | |