Skip to content

Commit 306beee

Browse files
committed
design: more holidays
1 parent 7e36a55 commit 306beee

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed

_includes/sneks.html

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,69 @@
8585
<rect x="-3" y="15" width="6" height="10" fill="#8B4513"/>
8686
</g>
8787
</pattern>
88+
<pattern id="visibility" patternUnits="userSpaceOnUse" width="100" height="100">
89+
<!-- Background -->
90+
<rect width="100" height="100" fill="#ffffff"/>
91+
92+
<!-- Hearts using strokes instead of fills -->
93+
94+
<!-- Top left heart -->
95+
<path d="M25,35 C25,25 15,25 15,35 C15,40 25,45 25,45 C25,45 35,40 35,35 C35,25 25,25 25,35"
96+
stroke="#55CDFC" stroke-width="2" fill="none"/>
97+
98+
<!-- Top right heart -->
99+
<path d="M75,35 C75,25 65,25 65,35 C65,40 75,45 75,45 C75,45 85,40 85,35 C85,25 75,25 75,35"
100+
stroke="#F7A8B8" stroke-width="2" fill="none"/>
101+
102+
<!-- Bottom left heart -->
103+
<path d="M25,85 C25,75 15,75 15,85 C15,90 25,95 25,95 C25,95 35,90 35,85 C35,75 25,75 25,85"
104+
stroke="#F7A8B8" stroke-width="2" fill="none"/>
105+
106+
<!-- Bottom right heart -->
107+
<path d="M75,85 C75,75 65,75 65,85 C65,90 75,95 75,95 C75,95 85,90 85,85 C85,75 75,75 75,85"
108+
stroke="#55CDFC" stroke-width="2" fill="none"/>
109+
110+
<!-- Simple crosses in white -->
111+
<g stroke="#ffffff" stroke-width="2">
112+
<path d="M50,45 L50,55 M45,50 L55,50"/>
113+
<path d="M20,45 L20,55 M15,50 L25,50"/>
114+
<path d="M80,45 L80,55 M75,50 L85,50"/>
115+
</g>
116+
</pattern>
117+
<pattern id="party" patternUnits="userSpaceOnUse" width="100" height="100">
118+
<!-- Background -->
119+
<rect width="100" height="100" fill="white"/>
120+
121+
<!-- Balloon 1 -->
122+
<g transform="translate(25,25)">
123+
<circle cx="0" cy="0" r="10" fill="#FF69B4"/>
124+
<path d="M0,10 C0,15 2,20 0,25" stroke="#333" stroke-width="1" fill="none"/>
125+
</g>
126+
127+
<!-- Party Hat -->
128+
<g transform="translate(75,25)">
129+
<polygon points="0,-15 10,10 -10,10" fill="#FFD700"/>
130+
<circle cx="0" cy="10" r="2" fill="#FF4500"/>
131+
</g>
132+
133+
<!-- Star/Confetti -->
134+
<g transform="translate(25,75)">
135+
<polygon points="0,-8 2,-2 8,0 2,2 0,8 -2,2 -8,0 -2,-2" fill="#00CED1"/>
136+
</g>
137+
138+
<!-- Balloon 2 -->
139+
<g transform="translate(75,75)">
140+
<circle cx="0" cy="0" r="10" fill="#7B68EE"/>
141+
<path d="M0,10 C0,15 -2,20 0,25" stroke="#333" stroke-width="1" fill="none"/>
142+
</g>
143+
144+
<!-- Small Confetti Dots -->
145+
<circle cx="50" cy="50" r="2" fill="#FF4500"/>
146+
<circle cx="15" cy="50" r="2" fill="#FFD700"/>
147+
<circle cx="85" cy="50" r="2" fill="#00CED1"/>
148+
<circle cx="50" cy="15" r="2" fill="#7B68EE"/>
149+
<circle cx="50" cy="85" r="2" fill="#FF69B4"/>
150+
</pattern>
88151
<pattern id="spider-web" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse">
89152
<!-- Background -->
90153
<rect width="100" height="100" fill="#FF8C00"/>

static/js/snek.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,20 @@ function getSeasonStyles() {
3333
};
3434
}
3535

36+
if (month === 6 && day === 21) {
37+
return {
38+
body: 'url(#party)',
39+
tongue: 'purple',
40+
};
41+
}
42+
43+
if (month == 2 && day == 30) {
44+
return {
45+
body: 'url(#visibility)',
46+
tongue: 'purple',
47+
};
48+
}
49+
3650
if (month === 2 && day === 7) {
3751
return {
3852
body: 'pink',

0 commit comments

Comments
 (0)