Browse Source

favicon DSGVO

master
corbreedy 4 years ago
parent
commit
0cd623e5f4
  1. 21
      README.md
  2. BIN
      hpst/static/img/favicon.ico
  3. 4
      hpst/templates/index.html
  4. 23
      hpst/templates/st_base.html
  5. 2
      sinnestau/settings.py

21
README.md

@ -40,7 +40,26 @@ On django:
#apt install grub2-common net-tools openssh-server gnupg virtualenv git-core libmysqlclient-dev gcc python-dev python3-dev
/etc/systemd/system/uwsgi.service
~~~~
[Unit]
Description=uWSGI instance to serve sinnes-tau
[Service]
User = www-data
Group = www-data
#WorkingDirectory=/srv/www/sinnes-tau/server/
#Environment="PATH=/srv/www/sinnes-tau/server/var/www/flaskapp/venv/bin"
#ExecStart=/var/www/flaskapp/venv/bin/uwsgi --ini myproject.ini
ExecStartPre=-/usr/bin/bash -c 'mkdir -p /run/uwsgi; chown www-data:www-data /run/uwsgi'
#ExecStart=/usr/bin/bash -c 'cd /srv/www/sinnes-tau; source venv3/bin/activate; cd server;uwsgi --socket 127.0.0.1:8081 --wsgi-file sinnestau/wsgi.py --uid=www-data --gid=www-data'
ExecStart=/usr/bin/bash -c 'cd /srv/www/sinnes-tau; source venv3/bin/activate; cd server;uwsgi --socket 127.0.0.1:8081 --wsgi-file sinnestau/wsgi.py'
[Install]
WantedBy=multi-user.target
~~~~
systemctl daemon-reload
Peter Kuntner 2021

BIN
hpst/static/img/favicon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

4
hpst/templates/index.html

@ -204,7 +204,7 @@ Ziel ist eine Anregung zur Selbstreflektion und die Überwindung von Konflikten.
</a>
{% empty %}
<li class="w3-padding-16">
<img src="img/lama_f.jpg" alt="Image" class="w3-left w3-margin-right" style="width:50px">
<img src="{% static 'img/lama_f.jpg' %}" alt="Image" class="w3-left w3-margin-right" style="width:50px">
<span class="w3-large">Zur Zeit keine Termin</span>
</li>
{% endfor %}
@ -315,7 +315,7 @@ Kronach / Fischbach<br>
<i class="fa fa-phone fa-fw w3-hover-text-black w3-xlarge w3-margin-right"></i> Phone: 0152/21700463<br>
<i class="fa fa-envelope fa-fw w3-hover-text-black w3-xlarge w3-margin-right"></i> Email: info@sinnes-tau.de<br>
</div>
<p>Swing by for a cup of <i class="fa fa-coffee"></i>, or leave me a note:</p>
<p>Komme auf eine Tasse <i class="fa fa-coffee"></i> vorbei, oder hinterlasse mir eine Nachricht:</p>
<form action="/action_page.php" target="_blank">
<div class="w3-row-padding" style="margin:0 -16px 8px -16px">
<div class="w3-half">

23
hpst/templates/st_base.html

@ -6,10 +6,10 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{% static 'css/w3.css' %}">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="{% static 'css/sinnes-tau.css' %}">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="{% static 'css/all.css' %}">
<link rel="shortcut icon" href="{% static 'img/favicon.ico' %}">
<style>
body,h1,h2,h3,h4,h5,h6 {font-family: "Lato", sans-serif;}
body, html {
@ -20,7 +20,7 @@ body, html {
{% block style %}<!-- Style here -->{% endblock %}
</style>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" />
<body>
<!-- Navbar (sit on top) -->
<div class="w3-top">
@ -113,6 +113,25 @@ function openCity(evt, cityName) {
evt.currentTarget.classList.add("w3-light-grey");
}
</script>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
<script>
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#9a8b69"
},
"button": {
"background": "#afed71"
}
},
"content": {
"message": "Wir benutzen ausschließlich notwendige Cookies für diese Website",
"dismiss": "Einverstanden",
"link": "Mehr Info",
"href": "/impressum"
}
});
</script>
</body>

2
sinnestau/settings.py

@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/3.2/ref/settings/
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
@ -133,3 +134,4 @@ STATIC_ROOT = str(BASE_DIR.joinpath('build/static'))
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

Loading…
Cancel
Save