modified: app.py
modified: static/css/style.css modified: static/icons/Bildnachweis.txt deleted: static/icons/mond.png new file: static/icons/nacht(1).png new file: static/icons/nacht(2).png new file: static/icons/nacht(3).png new file: static/icons/nacht.png new file: static/icons/nebel.png new file: static/icons/nebel_wolkig.png new file: static/icons/wolkig_nebel_sonne.png modified: templates/weather.html
This commit is contained in:
@@ -8,10 +8,11 @@
|
||||
{% block content %}
|
||||
|
||||
{# ── Wetterklasse für den Hero-Gradient ─────────────────────────── #}
|
||||
{% if current.icon in ("regen", "wolkig(1)") %}{% set wclass = "w-rain" %}
|
||||
{% elif current.icon == "schnee" %}{% set wclass = "w-snow" %}
|
||||
{% if current.icon in ("regen", "wolkig(1)", "nacht(2)") %}{% set wclass = "w-rain" %}
|
||||
{% elif current.icon in ("schnee", "nacht(3)") %}{% set wclass = "w-snow" %}
|
||||
{% elif current.icon in ("wolkig", "wolke") %}{% set wclass = "w-cloudy" %}
|
||||
{% elif current.icon == "wolkig(2)" %}{% set wclass = "w-partcloud" %}
|
||||
{% elif current.icon in ("wolkig(2)", "nacht(1)") %}{% set wclass = "w-partcloud" %}
|
||||
{% elif current.icon == "nacht" %}{% set wclass = "w-night" %}
|
||||
{% else %}{% set wclass = "w-clear" %}{% endif %}
|
||||
|
||||
<!-- HERO -->
|
||||
@@ -28,7 +29,9 @@
|
||||
<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="{{ url_for('static', filename='icons/' ~ current.icon ~ '.png') }}" alt="{{ current.icon }}">
|
||||
<div class="wx-icon-wrap" data-icon="{{ current.icon }}">
|
||||
<img class="wx-icon wx-icon--hero" src="{{ url_for('static', filename='icons/' ~ current.icon ~ '.png') }}" alt="{{ current.icon }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="hero-stats-mini">
|
||||
{% if current.wind_kmh is not none %}
|
||||
@@ -171,7 +174,9 @@
|
||||
{% else %}{{ h.datetime.strftime('%d.%m.') }}{% endif %}
|
||||
</div>
|
||||
<div class="hcard-icon">
|
||||
<img class="wx-icon wx-icon--card" src="{{ url_for('static', filename='icons/' ~ h.icon ~ '.png') }}" alt="{{ h.icon }}">
|
||||
<div class="wx-icon-wrap" data-icon="{{ h.icon }}">
|
||||
<img class="wx-icon wx-icon--card" src="{{ url_for('static', filename='icons/' ~ h.icon ~ '.png') }}" alt="{{ h.icon }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="hcard-temp">
|
||||
{% if h.temp_c is not none %}{{ h.temp_c }}°{% else %}–{% endif %}
|
||||
@@ -231,7 +236,9 @@
|
||||
<div class="drow">
|
||||
<div class="drow-left">
|
||||
<span class="drow-icon">
|
||||
<img class="wx-icon wx-icon--row" src="{{ url_for('static', filename='icons/' ~ d.icon ~ '.png') }}" alt="{{ d.icon }}">
|
||||
<div class="wx-icon-wrap" data-icon="{{ d.icon }}">
|
||||
<img class="wx-icon wx-icon--row" src="{{ url_for('static', filename='icons/' ~ d.icon ~ '.png') }}" alt="{{ d.icon }}">
|
||||
</div>
|
||||
</span>
|
||||
<div class="drow-date-wrap">
|
||||
<span class="drow-dow">
|
||||
|
||||
Reference in New Issue
Block a user