gonzopi

git clone https://git.tarina.org/gonzopi
Log | Files | Refs | README | LICENSE

commit 65c9508f82dc64b533a2b71e8e99b5b1d7cd7d85
parent e43a62e41c8619fe7e40bd25cec1a4d404c30832
Author: rbckman <rob@tarina.org>
Date:   Fri, 24 May 2024 11:29:24 +0100

big buttons on browser camera control app

Diffstat:
Msrv/gonzopiserver.py | 5+++++
Msrv/static/style.css | 36++++++++++++++++++++++++++++++++++++
Msrv/templates/base.html | 2+-
Msrv/templates/index.html | 14++++++++++++++
Asrv/templates/intro.html | 5+++++
5 files changed, 61 insertions(+), 1 deletion(-)

diff --git a/srv/gonzopiserver.py b/srv/gonzopiserver.py @@ -16,6 +16,7 @@ if rundir != '': os.chdir(rundir) urls = ( + '/','intro', '/c/?', 'index', '/f/(.*)?', 'films', '/api','api' @@ -219,6 +220,10 @@ def checkvideo(video,filmfolder,film,scene,shot,take): return p, v return '', v +class intro: + def GET(self): + return render.intro() + class index: def GET(self): global recording diff --git a/srv/static/style.css b/srv/static/style.css @@ -28,3 +28,39 @@ img width: 90%; max-width: 800px; } + +#controller a +{ + margin-bottom: 20px; + color: #FFF; + line-height:60px; + background-color: #555; + font-size: 30px; + text-decoration: none; + padding: 5px; + border-radius: 10px +} + +#controller2 a +{ + margin-bottom: 20px; + color: #FFF; + line-height:60px; + background-color: #777; + font-size: 30px; + text-decoration: none; + padding: 5px; + border-radius: 10px +} + +#controller3 a +{ + margin-bottom: 20px; + color: #FFF; + line-height:50px; + background-color: #888; + font-size: 20px; + text-decoration: none; + padding: 5px; + border-radius: 10px +} diff --git a/srv/templates/base.html b/srv/templates/base.html @@ -3,7 +3,7 @@ $def with (content) <HEAD> <meta charset="utf-8"> <title>Gonzo Pi | a reboot of filmmaking </title> - <link rel="stylesheet" href="/static/style.css?v=115" type="text/css" rel="stylesheet"/> + <link rel="stylesheet" href="/static/style.css?v=135" type="text/css" rel="stylesheet"/> <meta name="viewport" content="width=device-width, initial-scale=1"> <script src="/static/jquery-3.7.1.min.js" type="text/javascript"></script> </HEAD> diff --git a/srv/templates/index.html b/srv/templates/index.html @@ -192,6 +192,20 @@ $for i in cameras: <div id="menu" style="margin:0 auto; width:99%"> </div> <br> +<div id="controller"> +<a id="VIEW" href="?func=view">VIEW</a> <a id="UP" href="?func=up">UP</a> <a id="RECORD" href="?func=record">RECORD</a><br> +<a id="LEFT" href="?func=left">LEFT</a> <a id="MIDDLE" href="?func=middle">MIDDLE</a> <a id="RIGHT" href="?func=right">RIGHT</a><br> +<a id="DELETE" href="?func=delete">DELETE</a> <a id="DOWN" href="?func=down">DOWN</a> <a id="RETAKE" href="?func=retake">RETAKE</a><br> +</div> +<br> +<div id="controller2"> +<a id="CAMERA0" href="?func=camera0">CAM0</a> <a id="CAMERA1" href="?func=camera1">CAM1</a> <a id="CAMERA2" href="?func=camera2">CAM2</a><br> +</div> +<br> +<div id="controller3"> +<a id="MOVE" href="?func=move">MOVE</a> <a id="COPY" href="?func=copy">COPY</a> <a id="PASTE" href="?func=paste">PASTE</a><br> +</div> +<br> <input></input> $if thumb != '': diff --git a/srv/templates/intro.html b/srv/templates/intro.html @@ -0,0 +1,5 @@ +<br> +<br> +<a href="/c">Gonzo Pi control</a> +<br> +<a href="/f/">Your film directory</a>