modified: app.py
modified: static/css/style.css new file: static/icons/Bildnachweis.txt new file: static/icons/blitz.png new file: static/icons/mond.png new file: static/icons/regen.png new file: static/icons/schnee.png new file: static/icons/sonne.png new file: static/icons/wolke.png new file: static/icons/wolkig(1).png new file: static/icons/wolkig(2).png new file: static/icons/wolkig.png modified: templates/weather.html
This commit is contained in:
@@ -8,10 +8,10 @@
|
||||
{% block content %}
|
||||
|
||||
{# ── Wetterklasse für den Hero-Gradient ─────────────────────────── #}
|
||||
{% if current.icon == "🌧️" %}{% set wclass = "w-rain" %}
|
||||
{% elif current.icon == "❄️" %}{% set wclass = "w-snow" %}
|
||||
{% elif current.icon == "☁️" %}{% set wclass = "w-cloudy" %}
|
||||
{% elif current.icon == "⛅" %}{% set wclass = "w-partcloud" %}
|
||||
{% if current.icon in ("regen", "wolkig(1)") %}{% set wclass = "w-rain" %}
|
||||
{% elif current.icon == "schnee" %}{% set wclass = "w-snow" %}
|
||||
{% elif current.icon in ("wolkig", "wolke") %}{% set wclass = "w-cloudy" %}
|
||||
{% elif current.icon == "wolkig(2)" %}{% set wclass = "w-partcloud" %}
|
||||
{% else %}{% set wclass = "w-clear" %}{% endif %}
|
||||
|
||||
<!-- HERO -->
|
||||
@@ -28,7 +28,7 @@
|
||||
<div class="hero-temp">{{ current.temp_c if current.temp_c is not none else "–" }}°</div>
|
||||
<div class="hero-desc">
|
||||
<div class="hero-icon-big">
|
||||
<img class="wx-icon wx-icon--hero" src="{{ icon_url(current.icon, current.datetime.hour if current.datetime is not none and current.datetime is not string else 12) }}" alt="{{ current.icon }}">
|
||||
<img class="wx-icon wx-icon--hero" src="{{ url_for('static', filename='icons/' ~ current.icon ~ '.png') }}" alt="{{ current.icon }}">
|
||||
</div>
|
||||
<div class="hero-stats-mini">
|
||||
{% if current.wind_kmh is not none %}
|
||||
@@ -171,7 +171,7 @@
|
||||
{% else %}{{ h.datetime.strftime('%d.%m.') }}{% endif %}
|
||||
</div>
|
||||
<div class="hcard-icon">
|
||||
<img class="wx-icon" src="{{ icon_url(h.icon, h.datetime.hour if h.datetime is not none and h.datetime is not string else 12) }}" alt="{{ h.icon }}">
|
||||
<img class="wx-icon wx-icon--card" src="{{ url_for('static', filename='icons/' ~ h.icon ~ '.png') }}" alt="{{ h.icon }}">
|
||||
</div>
|
||||
<div class="hcard-temp">
|
||||
{% if h.temp_c is not none %}{{ h.temp_c }}°{% else %}–{% endif %}
|
||||
@@ -231,7 +231,7 @@
|
||||
<div class="drow">
|
||||
<div class="drow-left">
|
||||
<span class="drow-icon">
|
||||
<img class="wx-icon wx-icon--sm" src="{{ icon_url(d.icon, 12) }}" alt="{{ d.icon }}">
|
||||
<img class="wx-icon wx-icon--row" src="{{ url_for('static', filename='icons/' ~ d.icon ~ '.png') }}" alt="{{ d.icon }}">
|
||||
</span>
|
||||
<div class="drow-date-wrap">
|
||||
<span class="drow-dow">
|
||||
|
||||
Reference in New Issue
Block a user