@vitas_84/app_dochazka 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitas_84/app_dochazka",
3
3
  "private": false,
4
- "version": "0.6.0",
4
+ "version": "0.6.2",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -14,7 +14,6 @@
14
14
  "preview": "vite preview",
15
15
  "build:production": "NODE_ENV=production vite build",
16
16
  "prepublishOnly": "npm run build"
17
-
18
17
  },
19
18
 
20
19
  "dependencies": {
package/src/AppRouter.jsx CHANGED
@@ -17,6 +17,7 @@ import { AppNavbar } from "./AppNavbar";
17
17
  import { EventGQLModelRouterSegments } from "../../../packages/dochazkaa/src/EventGQLModel/Pages/RouterSegment";
18
18
  import { StudyPlanRouterSegments } from "../../../packages/dochazkaa/src/StudyPlanGQLModel/Pages/RouterSegment";
19
19
  import {StudyPlanLessonRouterSegments} from "../../../packages/dochazkaa/src/StudyPlanLessonGQLModel/Pages/RouterSegment";
20
+ import { EventInvitationRouterSegments } from "../../../packages/dochazkaa/src/EventInvitationGQLModel/Pages/RouterSegment";
20
21
 
21
22
  const AppLayout = () => (
22
23
  <NavigationHistoryProvider>
@@ -39,7 +40,8 @@ const Routes = [
39
40
  // ...GroupTypeRouterSegments,
40
41
  // ...RoleRouterSegments,
41
42
  ...StudyPlanRouterSegments,
42
- ...StudyPlanLessonRouterSegments
43
+ ...StudyPlanLessonRouterSegments,
44
+ ...EventInvitationRouterSegments
43
45
  ],
44
46
  },
45
47
  ];
package/src/index.css CHANGED
@@ -44,4 +44,257 @@
44
44
  .no-page-break {
45
45
  page-break-inside: avoid;
46
46
  }
47
- }
47
+ }
48
+
49
+ .study-plan-overview {
50
+ display: flex;
51
+ flex-direction: column;
52
+ gap: 1rem;
53
+ }
54
+
55
+ .study-plan-hero {
56
+ align-items: center;
57
+ background: linear-gradient(135deg, #f8fafc 0%, #eef7f4 100%);
58
+ border: 1px solid #d7e3df;
59
+ border-radius: 8px;
60
+ display: flex;
61
+ gap: 1rem;
62
+ justify-content: space-between;
63
+ padding: 1rem;
64
+ }
65
+
66
+ .study-plan-eyebrow {
67
+ color: #4b635d;
68
+ font-size: 0.78rem;
69
+ font-weight: 700;
70
+ text-transform: uppercase;
71
+ }
72
+
73
+ .study-plan-title {
74
+ color: #17211f;
75
+ font-size: 1.45rem;
76
+ line-height: 1.2;
77
+ margin: 0.15rem 0 0.4rem;
78
+ }
79
+
80
+ .study-plan-hero-meta {
81
+ color: #42524f;
82
+ display: flex;
83
+ flex-wrap: wrap;
84
+ gap: 0.5rem 1rem;
85
+ }
86
+
87
+ .study-plan-hero-count {
88
+ align-items: center;
89
+ background: #ffffff;
90
+ border: 1px solid #d7e3df;
91
+ border-radius: 8px;
92
+ color: #284640;
93
+ display: flex;
94
+ flex-direction: column;
95
+ min-width: 8.5rem;
96
+ padding: 0.75rem;
97
+ text-align: center;
98
+ }
99
+
100
+ .study-plan-hero-count strong {
101
+ font-size: 1.65rem;
102
+ line-height: 1;
103
+ }
104
+
105
+ .study-plan-hero-count span {
106
+ font-size: 0.82rem;
107
+ }
108
+
109
+ .study-plan-summary {
110
+ display: grid;
111
+ gap: 0.75rem;
112
+ grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
113
+ }
114
+
115
+ .study-plan-summary-item {
116
+ background: #ffffff;
117
+ border: 1px solid #dde5ea;
118
+ border-left: 4px solid #2f7d69;
119
+ border-radius: 8px;
120
+ min-width: 0;
121
+ padding: 0.75rem;
122
+ }
123
+
124
+ .study-plan-summary-label {
125
+ color: #66737f;
126
+ font-size: 0.76rem;
127
+ font-weight: 700;
128
+ text-transform: uppercase;
129
+ }
130
+
131
+ .study-plan-summary-value {
132
+ color: #1e2b33;
133
+ font-weight: 650;
134
+ margin-top: 0.2rem;
135
+ overflow-wrap: anywhere;
136
+ }
137
+
138
+ .study-plan-section-head {
139
+ align-items: baseline;
140
+ border-bottom: 1px solid #e1e7eb;
141
+ display: flex;
142
+ gap: 1rem;
143
+ justify-content: space-between;
144
+ padding-bottom: 0.45rem;
145
+ }
146
+
147
+ .study-plan-section-head h3 {
148
+ font-size: 1.05rem;
149
+ margin: 0;
150
+ }
151
+
152
+ .study-plan-section-head span {
153
+ color: #687782;
154
+ font-size: 0.85rem;
155
+ }
156
+
157
+ .study-plan-lessons {
158
+ display: grid;
159
+ gap: 0.65rem;
160
+ }
161
+
162
+ .study-plan-lesson {
163
+ align-items: center;
164
+ background: #ffffff;
165
+ border: 1px solid #dde5ea;
166
+ border-left: 4px solid #3d74b8;
167
+ border-radius: 8px;
168
+ display: grid;
169
+ gap: 0.75rem;
170
+ grid-template-columns: 2.5rem minmax(0, 1fr) 6.25rem;
171
+ padding: 0.75rem;
172
+ }
173
+
174
+ .study-plan-lesson-index {
175
+ align-items: center;
176
+ background: #eef3f8;
177
+ border-radius: 8px;
178
+ color: #27496f;
179
+ display: flex;
180
+ font-weight: 700;
181
+ height: 2.25rem;
182
+ justify-content: center;
183
+ width: 2.25rem;
184
+ }
185
+
186
+ .study-plan-lesson-title {
187
+ color: #17211f;
188
+ font-weight: 700;
189
+ overflow-wrap: anywhere;
190
+ }
191
+
192
+ .study-plan-lesson-subtitle,
193
+ .study-plan-lesson-meta {
194
+ color: #5e6a72;
195
+ font-size: 0.86rem;
196
+ }
197
+
198
+ .study-plan-lesson-meta {
199
+ display: flex;
200
+ flex-wrap: wrap;
201
+ gap: 0.35rem 0.8rem;
202
+ margin-top: 0.2rem;
203
+ }
204
+
205
+ .study-plan-lesson-actions {
206
+ align-items: center;
207
+ display: flex;
208
+ flex-wrap: wrap;
209
+ gap: 0.45rem 0.75rem;
210
+ margin-top: 0.65rem;
211
+ }
212
+
213
+ .study-plan-invitation-control {
214
+ align-items: center;
215
+ display: flex;
216
+ flex-wrap: wrap;
217
+ gap: 0.45rem 0.75rem;
218
+ }
219
+
220
+ .study-plan-invitation-user {
221
+ color: #26343b;
222
+ font-size: 0.88rem;
223
+ font-weight: 700;
224
+ min-width: 10rem;
225
+ }
226
+
227
+ .study-plan-invitations-panel {
228
+ width: 100%;
229
+ }
230
+
231
+ .study-plan-invitations-panel summary {
232
+ color: #2f695b;
233
+ cursor: pointer;
234
+ font-size: 0.86rem;
235
+ font-weight: 700;
236
+ }
237
+
238
+ .study-plan-invitations-list {
239
+ display: grid;
240
+ gap: 0.55rem;
241
+ margin-top: 0.65rem;
242
+ }
243
+
244
+ .study-plan-current-state {
245
+ color: #4f5e66;
246
+ font-size: 0.82rem;
247
+ }
248
+
249
+ .study-plan-no-invitation {
250
+ color: #687782;
251
+ font-size: 0.82rem;
252
+ }
253
+
254
+ .study-plan-lesson-invitations {
255
+ color: #324047;
256
+ display: flex;
257
+ flex-direction: column;
258
+ text-align: right;
259
+ }
260
+
261
+ .study-plan-lesson-invitations strong {
262
+ font-size: 1.2rem;
263
+ line-height: 1;
264
+ }
265
+
266
+ .study-plan-lesson-invitations span {
267
+ color: #687782;
268
+ font-size: 0.78rem;
269
+ }
270
+
271
+ .study-plan-empty {
272
+ background: #f8fafc;
273
+ border: 1px dashed #bdc9d2;
274
+ border-radius: 8px;
275
+ color: #61707b;
276
+ padding: 1rem;
277
+ }
278
+
279
+ @media (max-width: 720px) {
280
+ .study-plan-hero,
281
+ .study-plan-section-head {
282
+ align-items: stretch;
283
+ flex-direction: column;
284
+ }
285
+
286
+ .study-plan-hero-count {
287
+ align-items: flex-start;
288
+ min-width: 0;
289
+ text-align: left;
290
+ }
291
+
292
+ .study-plan-lesson {
293
+ grid-template-columns: 2.5rem minmax(0, 1fr);
294
+ }
295
+
296
+ .study-plan-lesson-invitations {
297
+ grid-column: 2;
298
+ text-align: left;
299
+ }
300
+ }