diff --git a/ExampleApp/Extra/__init__.py b/ExampleApp/Extra/__init__.py index e189702f6e3443d37c53a8bf10157c1bb8fa5f4f..e5fbd152815aaafa5ff48712dc5045dba6c4603c 100644 --- a/ExampleApp/Extra/__init__.py +++ b/ExampleApp/Extra/__init__.py @@ -1,4 +1,4 @@ from flask import render_template def home(): - return render_template('home.html') \ No newline at end of file + return render_template('extra_home.html') \ No newline at end of file diff --git a/ExampleApp/Extra/static/.gitkeep b/ExampleApp/Extra/static/.gitkeep new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/ExampleApp/Extra/static/extra-style.css b/ExampleApp/Extra/static/extra-style.css new file mode 100644 index 0000000000000000000000000000000000000000..0ec7df268a146b27b77227b62a3c428fd0b769f8 --- /dev/null +++ b/ExampleApp/Extra/static/extra-style.css @@ -0,0 +1,20 @@ +body { + width:100%; + height:300px; + background:#fff; +} +#global_app_menu { + background:#ccc; +} + +#content { + background:#eee; +} + +#header { + background:#aaa; +} + +#footer { + background:#ccc; +} \ No newline at end of file diff --git a/ExampleApp/Extra/templates/.gitkeep b/ExampleApp/Extra/templates/.gitkeep new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/ExampleApp/Extra/templates/extra_home.html b/ExampleApp/Extra/templates/extra_home.html new file mode 100644 index 0000000000000000000000000000000000000000..867021bb9e46f84bf0cd355895814b53762a1f8e --- /dev/null +++ b/ExampleApp/Extra/templates/extra_home.html @@ -0,0 +1,10 @@ +{% extends "base-struct.html" %} +{% block title %}Index{% endblock %} +{% block head %} {{ super() }} +<link rel="stylesheet" href="/ExampleApp.Extra/static/extra-style.css" /> +{% endblock %} +{% block content %} + <h1>Extra</h1> + <p>samsHub Startseite: {{ app_lang['hello_message'] }}</p> +{% endblock %} +{% block header %}samsHUB -{% endblock %} \ No newline at end of file diff --git a/ExampleApp/static/style.css b/ExampleApp/static/style.css index 9daa3801421083ac5e433436d4d475bb807b1def..25369da025299d6310133dfa489b3186732dd71c 100644 --- a/ExampleApp/static/style.css +++ b/ExampleApp/static/style.css @@ -8,7 +8,7 @@ body { } #content { - background:#cff; + background:#fcf; } #header {