From 252dbf1451b283efdae8f390155a34159023c24c Mon Sep 17 00:00:00 2001 From: Stephen Kerr Date: Tue, 20 Jun 2023 19:04:55 +0200 Subject: [PATCH] thumbs up emoji --- gesture/__pycache__/app.cpython-310.pyc | Bin 1185 -> 1688 bytes gesture/app.py | 17 ++++++++++++----- gesture/static/{media => }/img1.png | Bin gesture/static/{media => }/img2.png | Bin gesture/static/{media => }/img3.png | Bin .../static/media/{pebbels.gif => pebbles.gif} | Bin gesture/static/style.css | 9 +++++++-- gesture/templates/template-index.html | 3 ++- gesture/templates/template-word.html | 2 +- 9 files changed, 22 insertions(+), 9 deletions(-) rename gesture/static/{media => }/img1.png (100%) rename gesture/static/{media => }/img2.png (100%) rename gesture/static/{media => }/img3.png (100%) rename gesture/static/media/{pebbels.gif => pebbles.gif} (100%) diff --git a/gesture/__pycache__/app.cpython-310.pyc b/gesture/__pycache__/app.cpython-310.pyc index f9b6d1e3ff298f2463ad4a2447050ec40ffae64f..ec87fdaa8d2ff6e16a18d4ecd5823af87f0b2481 100644 GIT binary patch literal 1688 zcmZ8hOK%%D5MEN;6}5Ufw%hoTwCXceTRCVBJp@7eh#R1QkpwXe6blu`TBN15cC|8> zvaN*-6iBZ<6#WBsZ~Zg9m)D+p>${EnoZ-esS_&k-`DQpAe#2E-ulo*+ufO?R?0Amz zEgDY`2FANEvolzPBS`EdBp?Y5Xi^GF2@4oOp2lwAN+P{SBq&RFkDpXTNw8BI_>m)A z;q}QEM3noE;9nxD2;VYQU}~1Bi-u_SDfs3@!}>0Xd9h%bMe&Sfo`vYkHhKxrvPCO^ zRxP>$=&D7}0eaq|mUuzDXmh*-+{>1G1<;f5qn>dS zhzWDPBc)pFN4th0LOYJpZkH5?>}SdR4Y3Y9_Ol|eWXnJu6cczfwE8ubH~4#R1{vWb!qFi~n+1Q@2HLuv%!grs*WFM6FB~5NNntY-zwrlw}q-(=pVSX%!7+k->1JLb$H+4pTLh z%D9JV5{|G57?#)01B$X#9q-z}rHO(y#$vYAb;RCE71(4K!ruJ?ew7$rb1%sVi%4Osflv7?=J=i}95 zqMaF8M!a}THJQ;zgg7%ga}J1FnK>tPMo)p+_caj&ef$1C(ypK#sZ}J=l7`dno1b#@pS^4{yBH?Zfv2 zucZr_*Tz%B25BOfAytOS8Reu#IQ(kFXY_H6EA-{%>$jl4;&zXKbv{rxEY|9F7Xau6 zdVyB;W4J#kN0*%gM_rnc6Hw0T#565*(sX9^DzuuxKFvTew@|E#r`hlKW-Fh+&F{`x?v)-%z29Pv|G8&OCG<$ad4XyZFzfC|C*wQTX3ooJZ5l@a^qUn8@vIQv$)& z6>u81mqsIX72}Ftt8}8J6}l)1JNv(448N76ViL>S*n#XJEK3elLK}n57vXk1X_h++h!K|%kuh{5cNS`MGPaL|jAqFvn#9xgj0HUM{H*MdW z!iWKCk&>dwrD4LQQx{EqbZIQO2tl~|g2x_~$;}|1Js79S?5v^>70qpxvVR&d;Nv(w zs3MP4WJB)zSmxRYGF+1O0#9}e0p}-c@=lW)tG(4&{iB+XzIOUmd$EOAgxaq#5prWU zbg+}#NMUj|i6ASf3}SHgWjYL=1{=^hdWeyflS`m3k_IL>4Fd;Oroz4AtG-Q!#ZUc!>=eKCJ4b`7(2eWYIi>j|=4>9pQ?>kT2Vtn0#H`uG Rs2PM3gBX8Ivqem5lfQJLxQ_q; diff --git a/gesture/app.py b/gesture/app.py index 05db0a9..8e905d0 100644 --- a/gesture/app.py +++ b/gesture/app.py @@ -7,10 +7,10 @@ media = { "beer.gif": ["beer"], "bell.gif": ["beer", "cafe de bel", "bell"], "box.gif": ["box"], - "cafe-de-bel": ["coffee", "bell", "beer", "cafe de bel"], + "cafe-de-bel.gif": ["coffee", "bell", "beer", "cafe de bel"], "cloud-storm.gif": ["cloud", "storm"], "cloud.gif": ["cloud"], - "coffee.gif": ["coffee", "cafe fe bel"], + "coffee.gif": ["coffee", "cafe de bel"], "er-beer.gif": ["emergency beer"], "hands.gif": ["joking", "okay", "sure"], "hurry.gif": ["time", "hurry", "pebbles"], @@ -20,13 +20,20 @@ media = { "pdf-impose.gif": ["pdf impose", "makarena"], "pebbles.gif": ["time", "clockwise", "anticlockwise"], "strike.gif": ["strike", "worker", "woman", "operator"] - } -# media = ["operator", "worker", "woman"] @app.route("/") def home(): - text = ["operator", "worker", "operator strike", "strike", "(k)not","pebbles","time","hurry","clockwise","anticlockwise","cloud","teletype","box","emergency beer","beer","cafe de bel","coffee","bell","food","breakfast","I love you"] + text = [] + for x in media: + for y in media[x]: + print(y) + if y not in text: + text.append(y) + # print("added") + # print(text) + else: + print("already there") return render_template("template-index.html", text=text) @app.route("/") diff --git a/gesture/static/media/img1.png b/gesture/static/img1.png similarity index 100% rename from gesture/static/media/img1.png rename to gesture/static/img1.png diff --git a/gesture/static/media/img2.png b/gesture/static/img2.png similarity index 100% rename from gesture/static/media/img2.png rename to gesture/static/img2.png diff --git a/gesture/static/media/img3.png b/gesture/static/img3.png similarity index 100% rename from gesture/static/media/img3.png rename to gesture/static/img3.png diff --git a/gesture/static/media/pebbels.gif b/gesture/static/media/pebbles.gif similarity index 100% rename from gesture/static/media/pebbels.gif rename to gesture/static/media/pebbles.gif diff --git a/gesture/static/style.css b/gesture/static/style.css index 00ffaa5..17c531c 100644 --- a/gesture/static/style.css +++ b/gesture/static/style.css @@ -12,6 +12,7 @@ body{ font-size: 1.5rem; margin: 2rem auto; max-width: 60rem; + padding: 1rem; } .button{ font-family: monospace; @@ -19,15 +20,18 @@ body{ border-radius: 2em; background: var(--color2); color: var(--color1); + border: none; + margin: 0 0.25rem 0.25rem 0; } button:after{ content: " →"; break-before: avoid; } +h1.button{font-size: 1.4rem;} .button:hover{opacity: 0.7; cursor: pointer;} .close{float: right; text-decoration: none;} .close:hover{opacity: 0.7} -img{max-width: 100%; margin-bottom: 1rem;} +img{width: 100%; margin-bottom: 1rem;} input{ margin: 0 0 0.5rem; } @@ -61,6 +65,7 @@ textarea{ max-width: calc(50% - 4rem); float: left; padding-right: 2rem; + margin: 1rem 0; } - +p{font-size: 1rem;} diff --git a/gesture/templates/template-index.html b/gesture/templates/template-index.html index 0bc7735..5552f58 100644 --- a/gesture/templates/template-index.html +++ b/gesture/templates/template-index.html @@ -5,7 +5,8 @@

gesture glossary ✌️

-

This is the home page for the gesture glossary. It has every word in the glossary to the right. Click a word to visit its page. This is the introduction.

+

This is the the gesture glossary. Click a word to the right to see the gestures related to it.

+

The aim is to see if a gesture glossary works and how it will work best. Also to see what kind of different interpretations there will be on gestures of our memory. To test the gesture glossary idea, and see what different meanings appear or already exist in the current vocabulary. Putting next to each other different agreements on linguistic and body units, testing what makes sense. Investigating and playing with communicational channel in between us, how a body language is documented, how it expands, how it is capable of creating or enhancing identities. To be an xpub means to speak/perform the xpub language?

{% for word in text diff --git a/gesture/templates/template-word.html b/gesture/templates/template-word.html index c3ae93e..340b47a 100644 --- a/gesture/templates/template-word.html +++ b/gesture/templates/template-word.html @@ -6,7 +6,7 @@

{{word}} x

{% for file in wordmedia %}
-

Video {{file}}

+ {% for tag in media[file]