From 59f757c1b247d43e833796ee5a2dc1ac2fe7861d Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Thu, 16 May 2024 08:28:44 +0200 Subject: [PATCH] Funcionando en docker y con burger-menu bien --- Padel/buildImg.sh | 1 + Padel/lanza.sh | 2 +- Padel/padel/static/bulma.css | 24 +++- Padel/padel/templates/_navegacion.html | 149 +++++++++++++------------ Padel/padel/templates/base.html | 4 +- Padel/paraAppDocker.sh | 3 + Padel/runPadel.sh | 1 + 7 files changed, 108 insertions(+), 76 deletions(-) create mode 100644 Padel/buildImg.sh create mode 100644 Padel/paraAppDocker.sh create mode 100644 Padel/runPadel.sh diff --git a/Padel/buildImg.sh b/Padel/buildImg.sh new file mode 100644 index 0000000..b330956 --- /dev/null +++ b/Padel/buildImg.sh @@ -0,0 +1 @@ +docker build --tag padel-docker:latest . diff --git a/Padel/lanza.sh b/Padel/lanza.sh index 02de953..fa32b6d 100644 --- a/Padel/lanza.sh +++ b/Padel/lanza.sh @@ -1 +1 @@ -python3 -m flask --app padel run --port 8000 --debug +python3 -m flask --app padel run --port 5000 --debug diff --git a/Padel/padel/static/bulma.css b/Padel/padel/static/bulma.css index 993640d..91acd1d 100644 --- a/Padel/padel/static/bulma.css +++ b/Padel/padel/static/bulma.css @@ -22434,4 +22434,26 @@ has-background-danger.is-hoverable:active { pointer-events: all !important; } -/*# sourceMappingURL=bulma.css.map */ \ No newline at end of file +/*# sourceMappingURL=bulma.css.map */ + +/* +#menu-switch { + display: none; +} +#menu-switch:checked + .navbar-brand .navbar-burger span:nth-child(1) { + transform: translateY(5px) rotate(45deg); +} +#menu-switch:checked + .navbar-brand .navbar-burger span:nth-child(2) { + opacity: 0; +} +#menu-switch:checked + .navbar-brand .navbar-burger span:nth-child(3) { + transform: translateY(-5px) rotate(-45deg); +} +#menu-switch:checked ~ .navbar-menu{ + display: block; +} +*/ + +nav.navbar { + height: 2rem !important; +} \ No newline at end of file diff --git a/Padel/padel/templates/_navegacion.html b/Padel/padel/templates/_navegacion.html index 85949c4..16c26de 100644 --- a/Padel/padel/templates/_navegacion.html +++ b/Padel/padel/templates/_navegacion.html @@ -1,85 +1,90 @@ - diff --git a/Padel/padel/templates/base.html b/Padel/padel/templates/base.html index a398202..f955fc9 100644 --- a/Padel/padel/templates/base.html +++ b/Padel/padel/templates/base.html @@ -17,8 +17,8 @@ + {% include("_navegacion.html") %}
- {% include("_navegacion.html") %}
{% block header %}{% endblock header %}
@@ -29,4 +29,4 @@
- \ No newline at end of file + diff --git a/Padel/paraAppDocker.sh b/Padel/paraAppDocker.sh new file mode 100644 index 0000000..49e0003 --- /dev/null +++ b/Padel/paraAppDocker.sh @@ -0,0 +1,3 @@ +docker stop `docker ps -a |grep padel-docker|cut -f1 -d' '` +docker rm `docker ps -a |grep padel-docker|cut -f1 -d' '` +docker rmi padel-docker diff --git a/Padel/runPadel.sh b/Padel/runPadel.sh new file mode 100644 index 0000000..747342f --- /dev/null +++ b/Padel/runPadel.sh @@ -0,0 +1 @@ +docker run -d -p 5000:5000 padel-docker