@capytale/meta-player 0.8.2 → 0.8.3

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.
Files changed (105) hide show
  1. package/.prettierrc.json +4 -4
  2. package/LICENSE +674 -674
  3. package/README.md +12 -12
  4. package/eslint.config.js +28 -28
  5. package/index.html +15 -15
  6. package/package.json +60 -60
  7. package/public/themes/lara-dark-blue/theme.css +7015 -7015
  8. package/public/themes/lara-light-blue/theme.css +7005 -7005
  9. package/src/App.tsx +139 -139
  10. package/src/AppRedux.css +39 -39
  11. package/src/MetaPlayer.tsx +170 -170
  12. package/src/activityJs.ts +7 -7
  13. package/src/app/createAppSlice.ts +6 -6
  14. package/src/app/hooks.ts +12 -12
  15. package/src/app/store.ts +52 -52
  16. package/src/app.module.scss +80 -80
  17. package/src/demo.tsx +87 -87
  18. package/src/external/prime.ts +5 -5
  19. package/src/features/activityData/ExitWarning.ts +28 -28
  20. package/src/features/activityData/IsAntiCheatExitDetectionDisabledSetter.tsx +19 -19
  21. package/src/features/activityData/IsDirtySetter.tsx +17 -17
  22. package/src/features/activityData/MetaPlayerOptionsSetter.tsx +41 -41
  23. package/src/features/activityData/activityDataSlice.ts +256 -256
  24. package/src/features/activityData/activityJsData.ts +82 -82
  25. package/src/features/activityData/hooks.ts +34 -34
  26. package/src/features/activityData/metaPlayerOptions.ts +23 -23
  27. package/src/features/activityData/uiState.ts +20 -20
  28. package/src/features/activityJS/ActivityJSProvider.tsx +339 -339
  29. package/src/features/activityJS/AfterResetAction.tsx +23 -23
  30. package/src/features/activityJS/AfterSaveAction.tsx +23 -23
  31. package/src/features/activityJS/BeforeResetAction.tsx +23 -23
  32. package/src/features/activityJS/BeforeSaveAction.tsx +23 -23
  33. package/src/features/activityJS/Saver.tsx +167 -167
  34. package/src/features/activityJS/hooks.ts +85 -85
  35. package/src/features/activityJS/internal-hooks.ts +96 -96
  36. package/src/features/activityJS/saverSlice.ts +96 -96
  37. package/src/features/activitySettings/ActivitySettingsSetter.tsx +21 -21
  38. package/src/features/activitySettings/hooks.ts +12 -12
  39. package/src/features/activitySettings/index.tsx +43 -43
  40. package/src/features/activitySettings/store.ts +108 -108
  41. package/src/features/activitySettings/style.module.scss +8 -8
  42. package/src/features/activitySettings/types.ts +140 -140
  43. package/src/features/activitySettings/ui.tsx +299 -299
  44. package/src/features/functionalities/AttachedFilesFunctionality.ts +23 -23
  45. package/src/features/functionalities/PreviewDialog.tsx +83 -83
  46. package/src/features/functionalities/functionalitiesSlice.ts +98 -98
  47. package/src/features/functionalities/hooks.ts +70 -70
  48. package/src/features/layout/hooks.ts +7 -7
  49. package/src/features/layout/layoutSlice.ts +90 -90
  50. package/src/features/navbar/activity-info/index.tsx +54 -54
  51. package/src/features/navbar/activity-info/style.module.scss +38 -38
  52. package/src/features/navbar/activity-menu/ActivityQuickActions.tsx +57 -57
  53. package/src/features/navbar/activity-menu/index.tsx +154 -153
  54. package/src/features/navbar/activity-menu/style.module.scss +7 -7
  55. package/src/features/navbar/capytale-menu/CloneDialog.tsx +75 -75
  56. package/src/features/navbar/capytale-menu/Countdown.tsx +312 -312
  57. package/src/features/navbar/capytale-menu/CountdownAndSaveButton.tsx +115 -115
  58. package/src/features/navbar/capytale-menu/index.tsx +260 -260
  59. package/src/features/navbar/capytale-menu/style.module.scss +8 -8
  60. package/src/features/navbar/index.tsx +39 -39
  61. package/src/features/navbar/navbarSlice.ts +79 -79
  62. package/src/features/navbar/review-navbar/GradingNav.tsx +128 -128
  63. package/src/features/navbar/review-navbar/index.tsx +18 -18
  64. package/src/features/navbar/review-navbar/style.module.scss +22 -22
  65. package/src/features/navbar/sidebars/ActivitySidebarActions.tsx +57 -57
  66. package/src/features/navbar/sidebars/AttachedFilesSidebarContent.module.scss +43 -43
  67. package/src/features/navbar/sidebars/AttachedFilesSidebarContent.tsx +181 -181
  68. package/src/features/navbar/sidebars/SettingsSidebarContent.tsx +192 -192
  69. package/src/features/navbar/sidebars/style.module.scss +15 -15
  70. package/src/features/navbar/student-utils.ts +11 -11
  71. package/src/features/navbar/style.module.scss +65 -65
  72. package/src/features/pedago/InstructionsEditor.tsx +102 -102
  73. package/src/features/pedago/PdfEditor.tsx +91 -91
  74. package/src/features/pedago/PedagoCommands.tsx +353 -353
  75. package/src/features/pedago/SharedNotesEditor.tsx +144 -144
  76. package/src/features/pedago/index.tsx +207 -204
  77. package/src/features/pedago/style.module.scss +233 -233
  78. package/src/features/theming/ThemeSwitcher.tsx +51 -51
  79. package/src/features/theming/hooks.ts +6 -6
  80. package/src/features/theming/themingSlice.ts +93 -93
  81. package/src/features/toast.tsx +38 -38
  82. package/src/hooks/index.ts +16 -16
  83. package/src/index.css +132 -132
  84. package/src/index.ts +90 -90
  85. package/src/logo.svg +1 -1
  86. package/src/my_json_data.js +4146 -4146
  87. package/src/settings.ts +6 -6
  88. package/src/types.ts +9 -9
  89. package/src/utils/ButtonDoubleIcon.tsx +35 -35
  90. package/src/utils/CardSelector.tsx +41 -41
  91. package/src/utils/ErrorBoundary.tsx +41 -41
  92. package/src/utils/PopupButton.tsx +134 -134
  93. package/src/utils/activity.ts +8 -8
  94. package/src/utils/breakpoints.ts +4 -4
  95. package/src/utils/capytale.ts +10 -10
  96. package/src/utils/clipboard.ts +11 -11
  97. package/src/utils/download.ts +7 -7
  98. package/src/utils/equality.ts +32 -32
  99. package/src/utils/server-clock.ts +42 -42
  100. package/src/utils/style.module.scss +45 -45
  101. package/src/utils/useFullscreen.ts +65 -65
  102. package/src/vite-env.d.ts +1 -1
  103. package/tsconfig.json +28 -28
  104. package/tsconfig.node.json +9 -9
  105. package/vite.config.ts +11 -11
@@ -1,192 +1,192 @@
1
- import { FC } from "react";
2
-
3
- import { Fieldset } from "primereact/fieldset";
4
-
5
- import { selectOrientation, setLayout } from "../../layout/layoutSlice";
6
- import { useAppDispatch, useAppSelector } from "../../../app/hooks";
7
- import { RadioButton } from "primereact/radiobutton";
8
-
9
- import styles from "./style.module.scss";
10
- import {
11
- selectThemeNameOrAuto,
12
- setAutoSwitch,
13
- switchToTheme,
14
- } from "../../theming/themingSlice";
15
- import { selectSidebarActions } from "../navbarSlice";
16
- import ActivitySidebarActions from "./ActivitySidebarActions";
17
- import { classNames } from "primereact/utils";
18
- import {
19
- selectCanChoosePedagoLayout,
20
- selectCanChooseTheme,
21
- } from "../../activityData/activityDataSlice";
22
- import { ActivitySettingsDisplay } from "../../activitySettings";
23
- import { Button } from "primereact/button";
24
- import { ConfirmPopup, confirmPopup } from "primereact/confirmpopup";
25
- import settings from "../../../settings";
26
- import { useReset } from "../../activityJS/hooks";
27
-
28
- type SettingsSidebarContentProps = {
29
- showHelp?: () => void;
30
- };
31
-
32
- const SettingsSidebarContent: FC<SettingsSidebarContentProps> = (props) => {
33
- const canChooseOrientation = useAppSelector(selectCanChoosePedagoLayout);
34
- const canChooseTheme = useAppSelector(selectCanChooseTheme);
35
- const orientation = useAppSelector(selectOrientation);
36
- const themeName = useAppSelector(selectThemeNameOrAuto);
37
- const sidebarActions = useAppSelector(selectSidebarActions);
38
- const reset = useReset({ onError: console.error });
39
- const dispatch = useAppDispatch();
40
- return (
41
- <>
42
- <div className={styles.sidebarCapytaleActions}>
43
- {props.showHelp && (
44
- <Button
45
- aria-label="Voir la documentation"
46
- severity="secondary"
47
- size="small"
48
- icon={"pi pi-question-circle"}
49
- onClick={() => {
50
- props.showHelp!();
51
- }}
52
- outlined
53
- label="Documentation"
54
- tooltip="Voir la documentation"
55
- tooltipOptions={{
56
- position: "left",
57
- showDelay: settings.TOOLTIP_SHOW_DELAY,
58
- }}
59
- />
60
- )}
61
- {reset && (
62
- <>
63
- <ConfirmPopup />
64
- <Button
65
- aria-label="Réinitialiser l'activité"
66
- severity="secondary"
67
- size="small"
68
- icon={"pi pi-undo"}
69
- onClick={(event) => {
70
- confirmPopup({
71
- target: event.currentTarget,
72
- message:
73
- "Toutes vos modifications seront perdues. Continuer ?",
74
- icon: "pi pi-exclamation-triangle",
75
- defaultFocus: "reject",
76
- acceptClassName: "p-button-danger",
77
- accept: reset,
78
- acceptLabel: "Oui",
79
- rejectLabel: "Non",
80
- });
81
- }}
82
- outlined
83
- label="Réinitialiser l'activité"
84
- tooltip="Revenir à la version de l'enseignant"
85
- tooltipOptions={{
86
- position: "left",
87
- showDelay: settings.TOOLTIP_SHOW_DELAY,
88
- }}
89
- />
90
- </>
91
- )}
92
- </div>
93
- {sidebarActions.length > 0 && (
94
- <Fieldset
95
- legend="Actions"
96
- className={classNames(
97
- "sidebarFieldset",
98
- styles.sidebarFieldsetButtons,
99
- )}
100
- >
101
- <ActivitySidebarActions />
102
- </Fieldset>
103
- )}
104
- {canChooseOrientation && (
105
- <Fieldset legend="Disposition" className="sidebarFieldset">
106
- <div className="sidebarRadioButtons">
107
- <div className="sidebarRadioGroup">
108
- <RadioButton
109
- aria-label="Option de disposition horizontale"
110
- inputId="rb-horizontal"
111
- name="horizontal"
112
- value="horizontal"
113
- onChange={(e) => dispatch(setLayout(e.value))}
114
- checked={orientation === "horizontal"}
115
- />
116
- <label htmlFor="rb-horizontal" className="ml-2">
117
- Horizontale
118
- </label>
119
- </div>
120
- <div className="sidebarRadioGroup">
121
- <RadioButton
122
- aria-label="Option de disposition verticale"
123
- inputId="rb-vertical"
124
- name="vertical"
125
- value="vertical"
126
- onChange={(e) => dispatch(setLayout(e.value))}
127
- checked={orientation === "vertical"}
128
- />
129
- <label htmlFor="rb-vertical" className="ml-2">
130
- Verticale
131
- </label>
132
- </div>
133
- </div>
134
- </Fieldset>
135
- )}
136
- {canChooseTheme && (
137
- <Fieldset legend="Thème" className="sidebarFieldset">
138
- <div className="sidebarRadioButtons">
139
- <div className="sidebarRadioGroup">
140
- <RadioButton
141
- aria-label="Option de thème clair"
142
- inputId="rb-light"
143
- name="light"
144
- value="light"
145
- onChange={(_e) => {
146
- dispatch(setAutoSwitch(false));
147
- dispatch(switchToTheme("light"));
148
- }}
149
- checked={themeName === "Clair"}
150
- />
151
- <label htmlFor="rb-light" className="ml-2">
152
- Clair
153
- </label>
154
- </div>
155
- <div className="sidebarRadioGroup">
156
- <RadioButton
157
- aria-label="Option de thème sombre"
158
- inputId="rb-dark"
159
- name="dark"
160
- value="dark"
161
- onChange={(_e) => {
162
- dispatch(setAutoSwitch(false));
163
- dispatch(switchToTheme("dark"));
164
- }}
165
- checked={themeName === "Sombre"}
166
- />
167
- <label htmlFor="rb-dark" className="ml-2">
168
- Sombre
169
- </label>
170
- </div>
171
- <div className="sidebarRadioGroup">
172
- <RadioButton
173
- aria-label="Option de thème système"
174
- inputId="rb-auto"
175
- name="auto"
176
- value="auto"
177
- onChange={(_e) => dispatch(setAutoSwitch(true))}
178
- checked={themeName === "Système (auto)"}
179
- />
180
- <label htmlFor="rb-auto" className="ml-2">
181
- Système (auto)
182
- </label>
183
- </div>
184
- </div>
185
- </Fieldset>
186
- )}
187
- <ActivitySettingsDisplay />
188
- </>
189
- );
190
- };
191
-
192
- export default SettingsSidebarContent;
1
+ import { FC } from "react";
2
+
3
+ import { Fieldset } from "primereact/fieldset";
4
+
5
+ import { selectOrientation, setLayout } from "../../layout/layoutSlice";
6
+ import { useAppDispatch, useAppSelector } from "../../../app/hooks";
7
+ import { RadioButton } from "primereact/radiobutton";
8
+
9
+ import styles from "./style.module.scss";
10
+ import {
11
+ selectThemeNameOrAuto,
12
+ setAutoSwitch,
13
+ switchToTheme,
14
+ } from "../../theming/themingSlice";
15
+ import { selectSidebarActions } from "../navbarSlice";
16
+ import ActivitySidebarActions from "./ActivitySidebarActions";
17
+ import { classNames } from "primereact/utils";
18
+ import {
19
+ selectCanChoosePedagoLayout,
20
+ selectCanChooseTheme,
21
+ } from "../../activityData/activityDataSlice";
22
+ import { ActivitySettingsDisplay } from "../../activitySettings";
23
+ import { Button } from "primereact/button";
24
+ import { ConfirmPopup, confirmPopup } from "primereact/confirmpopup";
25
+ import settings from "../../../settings";
26
+ import { useReset } from "../../activityJS/hooks";
27
+
28
+ type SettingsSidebarContentProps = {
29
+ showHelp?: () => void;
30
+ };
31
+
32
+ const SettingsSidebarContent: FC<SettingsSidebarContentProps> = (props) => {
33
+ const canChooseOrientation = useAppSelector(selectCanChoosePedagoLayout);
34
+ const canChooseTheme = useAppSelector(selectCanChooseTheme);
35
+ const orientation = useAppSelector(selectOrientation);
36
+ const themeName = useAppSelector(selectThemeNameOrAuto);
37
+ const sidebarActions = useAppSelector(selectSidebarActions);
38
+ const reset = useReset({ onError: console.error });
39
+ const dispatch = useAppDispatch();
40
+ return (
41
+ <>
42
+ <div className={styles.sidebarCapytaleActions}>
43
+ {props.showHelp && (
44
+ <Button
45
+ aria-label="Voir la documentation"
46
+ severity="secondary"
47
+ size="small"
48
+ icon={"pi pi-question-circle"}
49
+ onClick={() => {
50
+ props.showHelp!();
51
+ }}
52
+ outlined
53
+ label="Documentation"
54
+ tooltip="Voir la documentation"
55
+ tooltipOptions={{
56
+ position: "left",
57
+ showDelay: settings.TOOLTIP_SHOW_DELAY,
58
+ }}
59
+ />
60
+ )}
61
+ {reset && (
62
+ <>
63
+ <ConfirmPopup />
64
+ <Button
65
+ aria-label="Réinitialiser l'activité"
66
+ severity="secondary"
67
+ size="small"
68
+ icon={"pi pi-undo"}
69
+ onClick={(event) => {
70
+ confirmPopup({
71
+ target: event.currentTarget,
72
+ message:
73
+ "Toutes vos modifications seront perdues. Continuer ?",
74
+ icon: "pi pi-exclamation-triangle",
75
+ defaultFocus: "reject",
76
+ acceptClassName: "p-button-danger",
77
+ accept: reset,
78
+ acceptLabel: "Oui",
79
+ rejectLabel: "Non",
80
+ });
81
+ }}
82
+ outlined
83
+ label="Réinitialiser l'activité"
84
+ tooltip="Revenir à la version de l'enseignant"
85
+ tooltipOptions={{
86
+ position: "left",
87
+ showDelay: settings.TOOLTIP_SHOW_DELAY,
88
+ }}
89
+ />
90
+ </>
91
+ )}
92
+ </div>
93
+ {sidebarActions.length > 0 && (
94
+ <Fieldset
95
+ legend="Actions"
96
+ className={classNames(
97
+ "sidebarFieldset",
98
+ styles.sidebarFieldsetButtons,
99
+ )}
100
+ >
101
+ <ActivitySidebarActions />
102
+ </Fieldset>
103
+ )}
104
+ {canChooseOrientation && (
105
+ <Fieldset legend="Disposition" className="sidebarFieldset">
106
+ <div className="sidebarRadioButtons">
107
+ <div className="sidebarRadioGroup">
108
+ <RadioButton
109
+ aria-label="Option de disposition horizontale"
110
+ inputId="rb-horizontal"
111
+ name="horizontal"
112
+ value="horizontal"
113
+ onChange={(e) => dispatch(setLayout(e.value))}
114
+ checked={orientation === "horizontal"}
115
+ />
116
+ <label htmlFor="rb-horizontal" className="ml-2">
117
+ Horizontale
118
+ </label>
119
+ </div>
120
+ <div className="sidebarRadioGroup">
121
+ <RadioButton
122
+ aria-label="Option de disposition verticale"
123
+ inputId="rb-vertical"
124
+ name="vertical"
125
+ value="vertical"
126
+ onChange={(e) => dispatch(setLayout(e.value))}
127
+ checked={orientation === "vertical"}
128
+ />
129
+ <label htmlFor="rb-vertical" className="ml-2">
130
+ Verticale
131
+ </label>
132
+ </div>
133
+ </div>
134
+ </Fieldset>
135
+ )}
136
+ {canChooseTheme && (
137
+ <Fieldset legend="Thème" className="sidebarFieldset">
138
+ <div className="sidebarRadioButtons">
139
+ <div className="sidebarRadioGroup">
140
+ <RadioButton
141
+ aria-label="Option de thème clair"
142
+ inputId="rb-light"
143
+ name="light"
144
+ value="light"
145
+ onChange={(_e) => {
146
+ dispatch(setAutoSwitch(false));
147
+ dispatch(switchToTheme("light"));
148
+ }}
149
+ checked={themeName === "Clair"}
150
+ />
151
+ <label htmlFor="rb-light" className="ml-2">
152
+ Clair
153
+ </label>
154
+ </div>
155
+ <div className="sidebarRadioGroup">
156
+ <RadioButton
157
+ aria-label="Option de thème sombre"
158
+ inputId="rb-dark"
159
+ name="dark"
160
+ value="dark"
161
+ onChange={(_e) => {
162
+ dispatch(setAutoSwitch(false));
163
+ dispatch(switchToTheme("dark"));
164
+ }}
165
+ checked={themeName === "Sombre"}
166
+ />
167
+ <label htmlFor="rb-dark" className="ml-2">
168
+ Sombre
169
+ </label>
170
+ </div>
171
+ <div className="sidebarRadioGroup">
172
+ <RadioButton
173
+ aria-label="Option de thème système"
174
+ inputId="rb-auto"
175
+ name="auto"
176
+ value="auto"
177
+ onChange={(_e) => dispatch(setAutoSwitch(true))}
178
+ checked={themeName === "Système (auto)"}
179
+ />
180
+ <label htmlFor="rb-auto" className="ml-2">
181
+ Système (auto)
182
+ </label>
183
+ </div>
184
+ </div>
185
+ </Fieldset>
186
+ )}
187
+ <ActivitySettingsDisplay />
188
+ </>
189
+ );
190
+ };
191
+
192
+ export default SettingsSidebarContent;
@@ -1,15 +1,15 @@
1
- .sidebarCapytaleActions {
2
- margin-bottom: 8px;
3
- display: flex;
4
- flex-direction: column;
5
- gap: 8px;
6
- & > button {
7
- width: 100%;
8
- }
9
- }
10
-
11
- .sidebarFieldsetButtons :global(.p-fieldset-content) {
12
- display: flex;
13
- flex-direction: column;
14
- gap: 6px;
15
- }
1
+ .sidebarCapytaleActions {
2
+ margin-bottom: 8px;
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: 8px;
6
+ & > button {
7
+ width: 100%;
8
+ }
9
+ }
10
+
11
+ .sidebarFieldsetButtons :global(.p-fieldset-content) {
12
+ display: flex;
13
+ flex-direction: column;
14
+ gap: 6px;
15
+ }
@@ -1,11 +1,11 @@
1
- import { StudentInfo } from "../activityData/activityJsData";
2
-
3
- export function studentNameFromInfo(studentInfo: StudentInfo | null) {
4
- if (!studentInfo || (!studentInfo.firstName && !studentInfo.lastName)) {
5
- return null;
6
- }
7
- if (studentInfo.class && studentInfo.class !== "enseignants") {
8
- return `${studentInfo.firstName} ${studentInfo.lastName} — ${studentInfo.class}`;
9
- }
10
- return `${studentInfo.firstName} ${studentInfo.lastName}`;
11
- }
1
+ import { StudentInfo } from "../activityData/activityJsData";
2
+
3
+ export function studentNameFromInfo(studentInfo: StudentInfo | null) {
4
+ if (!studentInfo || (!studentInfo.firstName && !studentInfo.lastName)) {
5
+ return null;
6
+ }
7
+ if (studentInfo.class && studentInfo.class !== "enseignants") {
8
+ return `${studentInfo.firstName} ${studentInfo.lastName} — ${studentInfo.class}`;
9
+ }
10
+ return `${studentInfo.firstName} ${studentInfo.lastName}`;
11
+ }
@@ -1,65 +1,65 @@
1
- .navbar {
2
- --navbar-text-color: rgba(255, 255, 255, 0.95);
3
- background-color: var(--surface-800);
4
- display: flex;
5
- align-items: center;
6
- color: var(--navbar-text-color);
7
- overflow: hidden;
8
- color-scheme: dark;
9
- :global(.dark-theme) & {
10
- --navbar-text-color: var(--text-color);
11
- background-color: var(--surface-50);
12
- }
13
- & :global(.p-button-outlined),
14
- & :global(.p-button-text) {
15
- color: var(--navbar-text-color);
16
- }
17
- & :global(.p-button-outlined) {
18
- border-color: var(--navbar-text-color);
19
- }
20
- :global(.light-theme) & :global(.p-button.p-button-secondary:enabled:focus) {
21
- box-shadow:
22
- 0 0 0 2px #1c2127,
23
- 0 0 0 4px rgba(255, 255, 255, 0.7),
24
- 0 1px 2px 0 rgba(0, 0, 0, 0);
25
- }
26
- :global(.light-theme) & :global(.p-button.p-button-warning:enabled:focus) {
27
- box-shadow:
28
- 0 0 0 2px #1c2127,
29
- 0 0 0 4px rgba(249, 115, 22, 0.7),
30
- 0 1px 2px 0 rgba(0, 0, 0, 0);
31
- }
32
- }
33
-
34
- .navbarContainer {
35
- height: 60px;
36
- flex-grow: 1;
37
- display: flex;
38
- justify-content: space-between;
39
- align-items: center;
40
- gap: 16px;
41
- overflow: hidden;
42
- & > * {
43
- flex-shrink: 0;
44
- }
45
- }
46
-
47
- .navbarLogo {
48
- font-family: Ubuntu, Tahoma, "Helvetica Neue", Helvetica, Arial, sans-serif;
49
- font-weight: 700;
50
- font-size: 24px;
51
- letter-spacing: 2px;
52
- height: 100%;
53
- & > * {
54
- height: 100%;
55
- display: flex;
56
- align-items: center;
57
- justify-content: center;
58
- padding: 0 16px;
59
- color: var(--navbar-text-color);
60
- text-decoration: none;
61
- &:hover {
62
- background-color: rgba(255, 255, 255, 0.1);
63
- }
64
- }
65
- }
1
+ .navbar {
2
+ --navbar-text-color: rgba(255, 255, 255, 0.95);
3
+ background-color: var(--surface-800);
4
+ display: flex;
5
+ align-items: center;
6
+ color: var(--navbar-text-color);
7
+ overflow: hidden;
8
+ color-scheme: dark;
9
+ :global(.dark-theme) & {
10
+ --navbar-text-color: var(--text-color);
11
+ background-color: var(--surface-50);
12
+ }
13
+ & :global(.p-button-outlined),
14
+ & :global(.p-button-text) {
15
+ color: var(--navbar-text-color);
16
+ }
17
+ & :global(.p-button-outlined) {
18
+ border-color: var(--navbar-text-color);
19
+ }
20
+ :global(.light-theme) & :global(.p-button.p-button-secondary:enabled:focus) {
21
+ box-shadow:
22
+ 0 0 0 2px #1c2127,
23
+ 0 0 0 4px rgba(255, 255, 255, 0.7),
24
+ 0 1px 2px 0 rgba(0, 0, 0, 0);
25
+ }
26
+ :global(.light-theme) & :global(.p-button.p-button-warning:enabled:focus) {
27
+ box-shadow:
28
+ 0 0 0 2px #1c2127,
29
+ 0 0 0 4px rgba(249, 115, 22, 0.7),
30
+ 0 1px 2px 0 rgba(0, 0, 0, 0);
31
+ }
32
+ }
33
+
34
+ .navbarContainer {
35
+ height: 60px;
36
+ flex-grow: 1;
37
+ display: flex;
38
+ justify-content: space-between;
39
+ align-items: center;
40
+ gap: 16px;
41
+ overflow: hidden;
42
+ & > * {
43
+ flex-shrink: 0;
44
+ }
45
+ }
46
+
47
+ .navbarLogo {
48
+ font-family: Ubuntu, Tahoma, "Helvetica Neue", Helvetica, Arial, sans-serif;
49
+ font-weight: 700;
50
+ font-size: 24px;
51
+ letter-spacing: 2px;
52
+ height: 100%;
53
+ & > * {
54
+ height: 100%;
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+ padding: 0 16px;
59
+ color: var(--navbar-text-color);
60
+ text-decoration: none;
61
+ &:hover {
62
+ background-color: rgba(255, 255, 255, 0.1);
63
+ }
64
+ }
65
+ }