templates_modules_DATA = \
src/templates/modules/christmas-banner.html \
+ src/templates/modules/ipfire-logo.html \
src/templates/modules/map.html \
src/templates/modules/progress-bar.html
$danger: #ac001a
$warning: #f3ff50
+// Pride Colours
+$pride-red: #e40303
+$pride-orange: #ff8c00
+$pride-yellow: #ffed00
+$pride-green: #008026
+$pride-blue: #24408e
+$pride-purple: #732982
+
// Custom Colours
-$lwl: #6534C8
+$lwl: #6534C8
-$custom-colors: ("secondary" : ($secondary, $secondary-invert), "lwl" : ($lwl, $white))
+$custom-colors: ("secondary" : ($secondary, $secondary-invert), "lwl" : ($lwl, $white), "pride-red" : ($pride-red, $white), "pride-orange" : ($pride-orange, $black), "pride-yellow" : ($pride-yellow, $black), "pride-green" : ($pride-green, $white), "pride-blue" : ($pride-blue, $white), "pride-purple" : ($pride-purple, $white))
// Use the primary colour for links
$link: $primary
<a class="navbar-item is-size-4" href="/">
<strong>
{% if request.path.startswith("/projects/location") %}
- IPFire<span class="has-text-primary">_</span>Location
+ {% module IPFireLogo("Location") %}
{% elif hostname.startswith("fireinfo.") %}
- IPFire<span class="has-text-primary">_</span>Fireinfo
+ {% module IPFireLogo("Fireinfo") %}
{% elif hostname.startswith("nopaste.") %}
- IPFire<span class="has-text-primary">_</span>Nopaste
+ {% module IPFireLogo("nopaste") %}
{% else %}
- IPFire<span class="has-text-primary">_</span>
+ {% module IPFireLogo() %}
{% end %}
</strong>
</a>
--- /dev/null
+{% set pride_colors = ("pride-red", "pride-orange", "pride-yellow", "pride-green", "pride-blue", "pride-purple") %}
+
+{# Christmas #}
+{% if now.month == 12 %}
+ IPFire<span class="has-text-primary">_</span>{{ suffix or "" }} 🎄
+
+{# Halloween #}
+{% elif now.month == 10 and now.day >= 28 %}
+ IPFire<span class="has-text-primary">_</span>{{ suffix or "" }} 🎃
+
+{# Pride Month #}
+{% elif now.month == 7 %}
+ {% for color, i in zip(pride_colors, "IPFire") %}<span class="has-text-{{ color }}">{{ i }}</span>{% end %}_{{ suffix or "" }}
+
+{# Other times of the year #}
+{% else %}
+ IPFire<span class="has-text-primary">_</span>{{ suffix or "" }}
+{% end %}
# Misc
"ChristmasBanner" : ui_modules.ChristmasBannerModule,
+ "IPFireLogo" : ui_modules.IPFireLogoModule,
"Markdown" : ui_modules.MarkdownModule,
"Map" : ui_modules.MapModule,
"ProgressBar" : ui_modules.ProgressBarModule,
return self.handler.backend
+class IPFireLogoModule(UIModule):
+ def render(self, suffix=None):
+ return self.render_string("modules/ipfire-logo.html", suffix=suffix)
+
+
class ChristmasBannerModule(UIModule):
def render(self):
return self.render_string("modules/christmas-banner.html")