+ small Changes
This commit is contained in:
@@ -7,5 +7,4 @@ In the final version, you will just have to execute the nassi.exe and choose you
|
|||||||
|
|
||||||
Using:
|
Using:
|
||||||
Python 3.9.1 with
|
Python 3.9.1 with
|
||||||
PySimpleGUI &
|
PySimpleGUI, Pillow, Flask & wtforms
|
||||||
Pillow
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
from flask.helpers import send_file
|
from flask.helpers import send_file
|
||||||
import Web
|
|
||||||
from flask import render_template, abort, flash, Blueprint
|
from flask import render_template, abort, flash, Blueprint
|
||||||
from Web.main.forms import UploadJavaForm
|
from Web.main.forms import UploadJavaForm
|
||||||
from random import randint
|
from random import randint
|
||||||
@@ -71,5 +70,5 @@ def generator():
|
|||||||
|
|
||||||
return send_file(zip_path + '.zip', as_attachment=True)
|
return send_file(zip_path + '.zip', as_attachment=True)
|
||||||
|
|
||||||
return render_template('upload.html', title='', legend='', form=form )
|
return render_template('upload.html', title='Upload', legend='Upload', form=form )
|
||||||
|
|
||||||
|
|||||||
90
Web/static/main.css
Normal file
90
Web/static/main.css
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
|
||||||
|
body {
|
||||||
|
color: #ffffff;
|
||||||
|
margin-top: 5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.black-text {
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-steel {
|
||||||
|
background-color: #49484d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-header .navbar-nav .nav-link {
|
||||||
|
color: #cbd5db;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-header .navbar-nav .nav-link:hover {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-header .navbar-nav .nav-link.active {
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content-section {
|
||||||
|
background: #444444;
|
||||||
|
padding: 10px 20px;
|
||||||
|
border: 10px solid #444455;
|
||||||
|
border-style: groove;
|
||||||
|
border-radius: 30px 1px 30px 1px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.article-title {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.article-title:hover {
|
||||||
|
color: #428bca;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.article-content {
|
||||||
|
white-space: pre-line;
|
||||||
|
color: aliceblue;
|
||||||
|
}
|
||||||
|
|
||||||
|
.article-img {
|
||||||
|
height: 65px;
|
||||||
|
width: 65px;
|
||||||
|
margin-right: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.article-metadata {
|
||||||
|
padding-bottom: 1px;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
border-bottom: 1px solid #ffffff
|
||||||
|
}
|
||||||
|
|
||||||
|
.article-metadata a:hover {
|
||||||
|
color: #ffffff;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.article-svg {
|
||||||
|
width: 25px;
|
||||||
|
height: 25px;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.account-img {
|
||||||
|
height: 125px;
|
||||||
|
width: 125px;
|
||||||
|
margin-right: 20px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.account-heading {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.label-filter {
|
||||||
|
color: #291852;
|
||||||
|
}
|
||||||
7
Web/templates/datenschutz.html
Normal file
7
Web/templates/datenschutz.html
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{% extends 'layout.html' %}
|
||||||
|
{% block content %}
|
||||||
|
<head><meta http-equiv="refresh" content="2; URL=https://ole-siepmann.de/startseite/datenschutzerklaerung/"></head>
|
||||||
|
<h1 class="black-text">Datenschutz</h1>
|
||||||
|
<h5 class="black-text">Sie werden jeden Moment weitergeleitet!</h5>
|
||||||
|
<p class="black-text">Falls dies nicht der Fall ist, hier die Zieladresse https://ole-siepmann.de/startseite/datenschutzerklaerung/ an die Sie weitergeleitet werden.</p>
|
||||||
|
{% endblock content %}
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
<!-- Bootstrap CSS -->
|
<!-- Bootstrap CSS -->
|
||||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="">
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css') }}">
|
||||||
|
|
||||||
{% if title %}
|
{% if title %}
|
||||||
<title>NassiShneiderman Generator - {{ title }}</title>
|
<title>NassiShneiderman Generator - {{ title }}</title>
|
||||||
@@ -27,8 +27,8 @@
|
|||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarToggle">
|
<div class="collapse navbar-collapse" id="navbarToggle">
|
||||||
<div class="navbar-nav mr-auto">
|
<div class="navbar-nav mr-auto">
|
||||||
<a class="nav-item nav-link" href="">Home</a>
|
<a class="nav-item nav-link" href="nassi.ole-siepmann.de">Home</a>
|
||||||
<a class="nav-item nav-link" href="">Datenschutz</a>
|
<a class="nav-item nav-link" href="https://ole-siepmann.de/startseite/datenschutzerklaerung/">Datenschutz</a>
|
||||||
</div>
|
</div>
|
||||||
<!-- Navbar Right Side -->
|
<!-- Navbar Right Side -->
|
||||||
<div class="navbar-nav">
|
<div class="navbar-nav">
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
{{ form.hidden_tag() }}
|
{{ form.hidden_tag() }}
|
||||||
<div class="media">
|
<div class="media">
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
<p>Test Page</p>
|
<p></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form method='Post' action='' enctype="multipart/form-data">
|
<form method='Post' action='' enctype="multipart/form-data">
|
||||||
{{ form.hidden_tag() }}
|
{{ form.hidden_tag() }}
|
||||||
<fieldset class="form-group">
|
<fieldset class="form-group">
|
||||||
<legend class="border-bottom mb-4">.java hochladen:</legend>
|
<legend class="border-bottom mb-4">.java Datei hochladen:</legend>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{{ form.java.label() }}
|
{{ form.java.label() }}
|
||||||
{{ form.java(class="form-control-file") }}
|
{{ form.java(class="form-control-file") }}
|
||||||
|
|||||||
Reference in New Issue
Block a user