Tudor Bulf commited on
Commit
e4f45fc
·
1 Parent(s): 6baa70f

Fixed the 3 screens on the new background that FINTAN DID.

Browse files
Files changed (3) hide show
  1. .gitignore +146 -146
  2. app/static/styles.css +70 -40
  3. app/templates/dashboard.html +12 -12
.gitignore CHANGED
@@ -1,147 +1,147 @@
1
- # Byte-compiled / optimized / DLL files
2
- __pycache__/
3
- *.py[cod]
4
- *$py.class
5
-
6
- # C extensions
7
- *.so
8
-
9
- # Distribution / packaging
10
- .Python
11
- build/
12
- develop-eggs/
13
- dist/
14
- downloads/
15
- eggs/
16
- .eggs/
17
- lib/
18
- lib64/
19
- parts/
20
- sdist/
21
- var/
22
- wheels/
23
- pip-wheel-metadata/
24
- share/python-wheels/
25
- *.egg-info/
26
- .installed.cfg
27
- *.egg
28
- MANIFEST
29
-
30
- # PyInstaller
31
- # Usually these files are written by a python script from a template
32
- # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
- *.manifest
34
- *.spec
35
-
36
- # Installer logs
37
- pip-log.txt
38
- pip-delete-this-directory.txt
39
-
40
- # Unit test / coverage reports
41
- htmlcov/
42
- .tox/
43
- .nox/
44
- .coverage
45
- .coverage.*
46
- .cache
47
- nosetests.xml
48
- coverage.xml
49
- *.cover
50
- *.py,cover
51
- .hypothesis/
52
- .pytest_cache/
53
-
54
- # Translations
55
- *.mo
56
- *.pot
57
-
58
- # Django stuff:
59
- *.log
60
-
61
- # Flask stuff:
62
- instance/
63
- .webassets-cache
64
-
65
- # Scrapy stuff:
66
- .scrapy
67
-
68
- # Sphinx documentation
69
- docs/_build/
70
- build/
71
- temp/
72
-
73
- # PyBuilder
74
- target/
75
-
76
- # Jupyter Notebook
77
- .ipynb_checkpoints
78
-
79
- # IPython
80
- profile_default/
81
- ipython_config.py
82
-
83
- # pyenv
84
- .python-version
85
-
86
- # pipenv
87
- Pipfile.lock
88
-
89
- # poetry
90
- poetry.lock
91
-
92
- # PEP 582; used by pythonloc
93
- __pypackages__/
94
-
95
- # Celery stuff
96
- celerybeat-schedule
97
- celerybeat.pid
98
-
99
- # SageMath parsed files
100
- *.sage.py
101
-
102
- # Environments
103
- .env
104
- .venv
105
- env/
106
- venv/
107
- ENV/
108
- env.bak/
109
- venv.bak/
110
-
111
- # Spyder project settings
112
- .spyderproject
113
- .spyproject
114
-
115
- # Rope project settings
116
- .ropeproject
117
-
118
- # mkdocs documentation
119
- /site
120
-
121
- # mypy
122
- .mypy_cache/
123
- .dmypy.json
124
- dmypy.json
125
-
126
- # Pyre type checker
127
- .pyre/
128
-
129
- # pytype static type analyzer
130
- .pytype/
131
-
132
- # Cython debug symbols
133
- cython_debug/
134
-
135
- # VS Code settings
136
- .vscode/
137
-
138
- # Local .env files
139
- *.env
140
- .env.*
141
-
142
- # Flask secret key file
143
- secret_key.txt
144
- secret_key.txt.env
145
-
146
- # Images
147
  *.png
 
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ pip-wheel-metadata/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+
61
+ # Flask stuff:
62
+ instance/
63
+ .webassets-cache
64
+
65
+ # Scrapy stuff:
66
+ .scrapy
67
+
68
+ # Sphinx documentation
69
+ docs/_build/
70
+ build/
71
+ temp/
72
+
73
+ # PyBuilder
74
+ target/
75
+
76
+ # Jupyter Notebook
77
+ .ipynb_checkpoints
78
+
79
+ # IPython
80
+ profile_default/
81
+ ipython_config.py
82
+
83
+ # pyenv
84
+ .python-version
85
+
86
+ # pipenv
87
+ Pipfile.lock
88
+
89
+ # poetry
90
+ poetry.lock
91
+
92
+ # PEP 582; used by pythonloc
93
+ __pypackages__/
94
+
95
+ # Celery stuff
96
+ celerybeat-schedule
97
+ celerybeat.pid
98
+
99
+ # SageMath parsed files
100
+ *.sage.py
101
+
102
+ # Environments
103
+ .env
104
+ .venv
105
+ env/
106
+ venv/
107
+ ENV/
108
+ env.bak/
109
+ venv.bak/
110
+
111
+ # Spyder project settings
112
+ .spyderproject
113
+ .spyproject
114
+
115
+ # Rope project settings
116
+ .ropeproject
117
+
118
+ # mkdocs documentation
119
+ /site
120
+
121
+ # mypy
122
+ .mypy_cache/
123
+ .dmypy.json
124
+ dmypy.json
125
+
126
+ # Pyre type checker
127
+ .pyre/
128
+
129
+ # pytype static type analyzer
130
+ .pytype/
131
+
132
+ # Cython debug symbols
133
+ cython_debug/
134
+
135
+ # VS Code settings
136
+ .vscode/
137
+
138
+ # Local .env files
139
+ *.env
140
+ .env.*
141
+
142
+ # Flask secret key file
143
+ secret_key.txt
144
+ secret_key.txt.env
145
+
146
+ # Images
147
  *.png
app/static/styles.css CHANGED
@@ -14,15 +14,20 @@
14
  --success: #79dd7c;
15
  --scene-height: 248px;
16
  --dock-height: 172px;
17
- --stage-ratio: 2.188;
18
- /* Screen placement knobs */
19
- --screen-top: 49%;
20
- --screen-left: 34.5%;
21
- --screen-right: 65.5%;
22
- --screen-width: 9%;
23
- --screen-height: 26%;
 
 
24
  --screen-half-width: 4.5%;
25
- --screen-controls-top: 33%;
 
 
 
26
  --history-top: 47%;
27
  --history-width: 20%;
28
  }
@@ -185,15 +190,23 @@ form label {
185
  }
186
 
187
  /* Participant dashboard */
 
 
 
 
 
 
188
  .participant-dashboard {
189
  flex: 1;
190
  display: flex;
191
  flex-direction: column;
 
 
192
  }
193
 
194
  .participant-dashboard .dashboard-scroll {
195
  flex: 1;
196
- overflow-y: visible;
197
  padding-bottom: 0;
198
  display: flex;
199
  flex-direction: column;
@@ -247,18 +260,18 @@ form label {
247
  }
248
 
249
  .dashboard-stage {
250
- position: relative;
 
 
 
 
251
  width: 100vw;
252
  height: calc(100vw / var(--stage-ratio));
253
  min-height: 100dvh;
254
  min-width: calc(100dvh * var(--stage-ratio));
255
  margin: 0 auto;
256
- position: absolute;
257
- top: 50%;
258
- left: 50%;
259
- transform: translate(-50%, -50%);
260
- background-image: url("/static/img/robot4.5screens.png");
261
- background-size: 100% 100%;
262
  background-repeat: no-repeat;
263
  background-position: center;
264
  }
@@ -268,7 +281,7 @@ form label {
268
  top: var(--screen-top);
269
  width: var(--screen-width);
270
  height: var(--screen-height);
271
- padding: 14px 16px;
272
  display: flex;
273
  align-items: flex-start;
274
  z-index: 2;
@@ -412,7 +425,7 @@ form label {
412
  width: 100%;
413
  height: 100%;
414
  overflow-y: auto;
415
- font-size: clamp(0.85rem, 1.1vw, 1rem);
416
  line-height: 1.5;
417
  color: var(--text-primary);
418
  }
@@ -467,12 +480,25 @@ form label {
467
  }
468
 
469
  .compose-dock--stage {
470
- position: absolute;
471
- left: 50%;
472
- bottom: 2%;
473
- transform: translateX(-50%);
474
- width: min(760px, 74%);
475
- padding: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
476
  }
477
 
478
  .compose-form {
@@ -516,6 +542,17 @@ form label {
516
  backdrop-filter: blur(8px);
517
  }
518
 
 
 
 
 
 
 
 
 
 
 
 
519
  .compose-send {
520
  min-width: 120px;
521
  align-self: stretch;
@@ -777,9 +814,12 @@ button.regenerate {
777
  }
778
 
779
  .compose-dock--stage {
780
- position: absolute;
781
- transform: translateX(-50%);
782
- width: min(92%, 520px);
 
 
 
783
  }
784
 
785
  .screen-controls {
@@ -804,9 +844,9 @@ button.regenerate {
804
 
805
  /* Third screen — middle, aligned with left/right */
806
  :root {
807
- --screen-middle: 50%;
808
- --screen-middle-top: 49%;
809
- --screen-controls-middle-top: 33%;
810
  }
811
 
812
  .response-card--middle {
@@ -819,16 +859,6 @@ button.regenerate {
819
  top: var(--screen-controls-middle-top);
820
  }
821
 
822
- /* Input box at top */
823
- .compose-dock--top {
824
- position: absolute;
825
- top: 3%;
826
- left: 50%;
827
- transform: translateX(-50%);
828
- width: min(760px, 74%);
829
- z-index: 10;
830
- }
831
-
832
  /* Result colours */
833
  .result-banner--victory { color: #3bf7c8; }
834
  .result-banner--partial { color: #ffbf5f; }
 
14
  --success: #79dd7c;
15
  --scene-height: 248px;
16
  --dock-height: 172px;
17
+ --stage-ratio: 1.7768;
18
+ /* Reserved strip at the bottom of the viewport for the input bar */
19
+ --input-bar-height: 96px;
20
+ /* Screen placement knobs — all values are % of the full background image */
21
+ --screen-top: 45.45%; /* vertical centre of the three screens */
22
+ --screen-left: 33.36%; /* horizontal centre of the left screen */
23
+ --screen-right: 66.56%; /* horizontal centre of the right screen */
24
+ --screen-width: 9.69%; /* box width */
25
+ --screen-height: 24.420%; /* box height */
26
  --screen-half-width: 4.5%;
27
+ --screen-controls-top: 62%; /* AI button row, just below the screens */
28
+ --screen-font-size: 0.85vw; /* text size inside the screens — lower = smaller */
29
+ --screen-text-pad-y: 0px; /* gap above the text in a screen box — lower = text higher */
30
+ --screen-text-pad-x: 16px; /* gap left of the text in a screen box — lower = text more left */
31
  --history-top: 47%;
32
  --history-width: 20%;
33
  }
 
190
  }
191
 
192
  /* Participant dashboard */
193
+ /* Single screen, no scrolling (scoped to the dashboard so other pages still scroll) */
194
+ body:has(.participant-dashboard) {
195
+ overflow: hidden;
196
+ height: 100dvh;
197
+ }
198
+
199
  .participant-dashboard {
200
  flex: 1;
201
  display: flex;
202
  flex-direction: column;
203
+ height: 100dvh;
204
+ overflow: hidden;
205
  }
206
 
207
  .participant-dashboard .dashboard-scroll {
208
  flex: 1;
209
+ overflow: hidden;
210
  padding-bottom: 0;
211
  display: flex;
212
  flex-direction: column;
 
260
  }
261
 
262
  .dashboard-stage {
263
+ position: absolute;
264
+ /* Anchor to the bottom so any extra height is cropped off the top, keeping the floor visible */
265
+ bottom: 0;
266
+ left: 50%;
267
+ transform: translateX(-50%);
268
  width: 100vw;
269
  height: calc(100vw / var(--stage-ratio));
270
  min-height: 100dvh;
271
  min-width: calc(100dvh * var(--stage-ratio));
272
  margin: 0 auto;
273
+ background-image: url("/static/img/robot_3_screens_fintan.png");
274
+ background-size: cover;
 
 
 
 
275
  background-repeat: no-repeat;
276
  background-position: center;
277
  }
 
281
  top: var(--screen-top);
282
  width: var(--screen-width);
283
  height: var(--screen-height);
284
+ padding: var(--screen-text-pad-y) var(--screen-text-pad-x);
285
  display: flex;
286
  align-items: flex-start;
287
  z-index: 2;
 
425
  width: 100%;
426
  height: 100%;
427
  overflow-y: auto;
428
+ font-size: clamp(0.7rem, var(--screen-font-size), 0.82rem);
429
  line-height: 1.5;
430
  color: var(--text-primary);
431
  }
 
480
  }
481
 
482
  .compose-dock--stage {
483
+ position: fixed;
484
+ left: 0;
485
+ right: 0;
486
+ bottom: 0;
487
+ transform: none;
488
+ width: 100%;
489
+ min-height: var(--input-bar-height);
490
+ box-sizing: border-box;
491
+ padding: 12px clamp(12px, 3vw, 28px);
492
+ display: flex;
493
+ align-items: center;
494
+ background: transparent;
495
+ /* Let the empty area around the controls pass clicks through to the stage */
496
+ pointer-events: none;
497
+ }
498
+
499
+ .compose-dock--stage .compose-form {
500
+ width: 100%;
501
+ pointer-events: auto;
502
  }
503
 
504
  .compose-form {
 
542
  backdrop-filter: blur(8px);
543
  }
544
 
545
+ .compose-dock--stage .compose-input {
546
+ min-height: 64px;
547
+ resize: none;
548
+ background: rgba(10, 22, 43, 0.45);
549
+ }
550
+
551
+ .compose-dock--stage .question-counter {
552
+ min-height: 64px;
553
+ min-width: 70px;
554
+ }
555
+
556
  .compose-send {
557
  min-width: 120px;
558
  align-self: stretch;
 
814
  }
815
 
816
  .compose-dock--stage {
817
+ position: fixed;
818
+ left: 0;
819
+ right: 0;
820
+ bottom: 0;
821
+ transform: none;
822
+ width: 100%;
823
  }
824
 
825
  .screen-controls {
 
844
 
845
  /* Third screen — middle, aligned with left/right */
846
  :root {
847
+ --screen-middle: 49.8%; /* horizontal centre of the middle screen */
848
+ --screen-middle-top: 45.45%; /* same vertical centre as the others */
849
+ --screen-controls-middle-top: 62%;
850
  }
851
 
852
  .response-card--middle {
 
859
  top: var(--screen-controls-middle-top);
860
  }
861
 
 
 
 
 
 
 
 
 
 
 
862
  /* Result colours */
863
  .result-banner--victory { color: #3bf7c8; }
864
  .result-banner--partial { color: #ffbf5f; }
app/templates/dashboard.html CHANGED
@@ -149,18 +149,6 @@
149
 
150
  <section class="dashboard-stage" aria-label="Chatter schermen">
151
 
152
- <!-- Input box at the TOP -->
153
- <div class="compose-dock compose-dock--top">
154
- <form action="/dashboard" method="POST" id="user-message-form" class="compose-form">
155
- <div class="question-counter">
156
- <span id="questions-left">0</span>
157
- <span class="question-label">vragen</span>
158
- </div>
159
- <textarea name="message" class="compose-input" placeholder="Typ hier je vraag..." required></textarea>
160
- <button type="submit" class="compose-send button">Stuur</button>
161
- </form>
162
- </div>
163
-
164
  <div id="pending-banner" class="pending-banner hidden">Wacht op de admin...</div>
165
 
166
 
@@ -216,6 +204,18 @@
216
  </div>
217
 
218
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
219
  </div>
220
  </body>
221
  </html>
 
149
 
150
  <section class="dashboard-stage" aria-label="Chatter schermen">
151
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  <div id="pending-banner" class="pending-banner hidden">Wacht op de admin...</div>
153
 
154
 
 
204
  </div>
205
 
206
  </div>
207
+
208
+ <!-- Input bar pinned to the bottom of the screen (outside the transformed stage so it anchors to the viewport) -->
209
+ <div class="compose-dock compose-dock--stage">
210
+ <form action="/dashboard" method="POST" id="user-message-form" class="compose-form">
211
+ <div class="question-counter">
212
+ <span id="questions-left">0</span>
213
+ <span class="question-label">vragen</span>
214
+ </div>
215
+ <textarea name="message" class="compose-input" placeholder="Typ hier je vraag..." required></textarea>
216
+ <button type="submit" class="compose-send button">Stuur</button>
217
+ </form>
218
+ </div>
219
  </div>
220
  </body>
221
  </html>