Browse Source

update

master
Doriane 8 months ago
parent
commit
92a3a8fad2
  1. 13
      app.py
  2. 12
      static/css/interface.css
  3. 4
      templates/catalogue.html

13
app.py

@ -6,7 +6,7 @@ import sys
import tempfile import tempfile
import io import io
import requests import requests
from svg_to_hpgl import svgToHPGL # from svg_to_hpgl import svgToHPGL
app = Flask(__name__) app = Flask(__name__)
@ -221,10 +221,15 @@ def catalogue():
params = params) params = params)
# ---------------------------------------------------------- # _ _
# ___ __ _| |_ __ _| | ___ __ _ _ _ ___
# / __/ _` | __/ _` | |/ _ \ / _` | | | |/ _ \
# | (_| (_| | || (_| | | (_) | (_| | |_| | __/
# \___\__,_|\__\__,_|_|\___/ \__, |\__,_|\___|
# |___/
#
# FIGLET 2 SVGBOB INTERACTIVE CATALOGUE
def make_svg ():
return ''
@app.route('/hpgl/<id>') @app.route('/hpgl/<id>')
def hpgl (id): def hpgl (id):

12
static/css/interface.css

@ -76,6 +76,9 @@ nav ul{
background: black; background: black;
color: white; color: white;
} }
nav ul li:last-of-type{
display: none;
}
.controls{ .controls{
top: var(--bar-h); top: var(--bar-h);
background-color: var(--c-back); background-color: var(--c-back);
@ -323,4 +326,13 @@ body.check-fix .fix{
} }
.draw .f-ascii{ .draw .f-ascii{
padding: 0; padding: 0;
}
.draw .f-svg{
padding: 0;
}
.f-svg iframe{
border: none !important;
width: 100%;
height: 100%;
display: block;
} }

4
templates/catalogue.html

@ -100,5 +100,9 @@
</details> </details>
{% endfor %} {% endfor %}
<script>
</script>
{% endblock %} {% endblock %}

Loading…
Cancel
Save