Attacks
+Attacks
{getHeaderText(currentLevel)}
- +-
{attacks.map((attack) => (
diff --git a/frontend/src/components/HandbookOverlay/HandbookGlossary.tsx b/frontend/src/components/HandbookOverlay/HandbookGlossary.tsx
index 8b9285b5c..23da7c7cb 100644
--- a/frontend/src/components/HandbookOverlay/HandbookGlossary.tsx
+++ b/frontend/src/components/HandbookOverlay/HandbookGlossary.tsx
@@ -11,10 +11,10 @@ function HandbookGlossary({ currentLevel }: { currentLevel: LEVEL_NAMES }) {
}
return (
Glossary
+Glossary
{getHeaderText(currentLevel)}
- +-
{GLOSSARY.map(({ term, definition }) => (
diff --git a/frontend/src/components/HandbookOverlay/HandbookOverlay.css b/frontend/src/components/HandbookOverlay/HandbookOverlay.css
index 9f3ed3c04..d375123ca 100644
--- a/frontend/src/components/HandbookOverlay/HandbookOverlay.css
+++ b/frontend/src/components/HandbookOverlay/HandbookOverlay.css
@@ -7,24 +7,34 @@
aspect-ratio: 7/8;
}
-.handbook-overlay-header {
- background-color: grey;
+.handbook header {
+ background-color: var(--handbook-header-background-colour);
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
position: fixed;
- height: 4rem;
+ height: 3.125rem;
+ border-radius: 0;
}
-.handbook .close-button {
+.handbook header .close-button {
margin-right: 3rem;
+ background-color: inherit;
+}
+
+.handbook header .close-button:hover {
+ background-color: var(--handbook-tab-hover-colour);
+}
+
+.handbook header .close-button:focus-visible {
+ background-color: var(--handbook-tab-hover-colour);
}
.handbook-overlay .content {
overflow-y: auto;
- margin-top: 5rem;
+ margin-top: 3.125rem;
margin-right: 0.5rem;
margin-bottom: 0.25rem;
padding: 2rem 1.75rem 0.5rem;
@@ -41,15 +51,3 @@
.handbook-overlay .content::-webkit-scrollbar-thumb:hover {
background-color: var(--handbook-scrollbar-hover-colour);
}
-
-.handbook-overlay .content h1 {
- font-size: 1.5rem;
-}
-
-.handbook-overlay .content h2 {
- font-size: 1.125rem;
-}
-
-.handbook-overlay .content p {
- font-size: 1rem;
-}
diff --git a/frontend/src/components/HandbookOverlay/HandbookOverlay.tsx b/frontend/src/components/HandbookOverlay/HandbookOverlay.tsx
index 4ca0c606d..d6c107280 100644
--- a/frontend/src/components/HandbookOverlay/HandbookOverlay.tsx
+++ b/frontend/src/components/HandbookOverlay/HandbookOverlay.tsx
@@ -43,7 +43,7 @@ function HandbookOverlay({
return (
Handbook
-System Roles
+System Roles
Here you can review the parameters the bot is working under for each level. You can only review this for levels you have already completed.
- +-
{systemRoles.length !== 0 ? (
diff --git a/frontend/src/components/Overlay/Overlay.css b/frontend/src/components/Overlay/Overlay.css
index 1d34b33b2..8cc9f6507 100644
--- a/frontend/src/components/Overlay/Overlay.css
+++ b/frontend/src/components/Overlay/Overlay.css
@@ -8,15 +8,29 @@
max-height: 80vh;
padding: 0;
border: none;
- border-radius: 0.625rem;
+ /* border-radius: 0.625rem; */
background-color: var(--overlay-background-colour);
color: var(--overlay-text-colour);
+ border-radius: 0.625rem;
}
.overlay * {
box-sizing: border-box;
}
+.overlay header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 1rem 2rem;
+ position: fixed;
+ width: 100%;
+ height: 5rem;
+ background-color: var(--overlay-header-background-colour);
+ border-top-right-radius: 0.625rem;
+ border-top-left-radius: 0.625rem;
+}
+
.overlay h1 {
text-align: center;
}
@@ -38,9 +52,9 @@
/* .overlay > .close-button:focus-visible {
border-color: var(--main-text-colour);
-}
+} */
-.overlay > .close-button:hover {
+/* .overlay > .close-button:hover {
color: var(--main-text-colour);
text-decoration: none;
} */
@@ -50,12 +64,9 @@
align-items: center;
gap: 0.5rem;
padding: 0.5rem;
- /* border: 0.0625rem solid var(--overlay-tab-colour); */
- /* border: 0.0625rem solid #8AD5DA; */
- border: 0.0625rem solid black;
+ border: 0.0625rem solid var(--main-text-colour-inverted);
border-radius: 0.5rem;
- /* background-color: var(--overlay-background-colour); */
- background-color: #61B5BA;;
+ background-color: inherit;
color: var(--main-text-colour-inverted);
}
@@ -75,25 +86,6 @@
font-weight: bold;
}
-.overlay-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 1rem 2rem;
- /* border-bottom: 2px solid grey; */
- position: fixed;
- width: 100%;
- height: 5rem;
- /* background-color: #49a2a8; */
- /* background-color: #2bb3bb; */
- /* background-color: #73d1d6; */
- /* background-color: #8ad5da; */
- /* background-color: #5BB0B6; */
- background-color: #61B5BA;
- border-top-right-radius: 0.625rem;
- border-top-left-radius: 0.625rem;
-}
-
.overlay-content {
display: flex;
overflow: hidden;
diff --git a/frontend/src/components/Overlay/Overlay.tsx b/frontend/src/components/Overlay/Overlay.tsx
index 2864c670a..9753d6d85 100644
--- a/frontend/src/components/Overlay/Overlay.tsx
+++ b/frontend/src/components/Overlay/Overlay.tsx
@@ -13,16 +13,16 @@ function Overlay({
}) {
return (
{heading}
- -Do you want to start this level from scratch?
+Do you want to reset your level progress?
{ 'Resetting will erase all your chat history and sent emails for this level.' diff --git a/frontend/src/components/Overlay/ResetProgress.tsx b/frontend/src/components/Overlay/ResetProgress.tsx index c252b0805..1ee6b006a 100644 --- a/frontend/src/components/Overlay/ResetProgress.tsx +++ b/frontend/src/components/Overlay/ResetProgress.tsx @@ -21,7 +21,7 @@ function ResetProgressOverlay({ }} content={ <> -
Are you sure you want to start from scratch?
+Do you want to reset all progress?
{`Resetting will erase all your progress in the levels and sandbox mode. This includes all your conversation history and sent emails. From d3e04fcff25332685b9f0d8b1d120f0af93dd108 Mon Sep 17 00:00:00 2001 From: dhinrichs-scottlogic <125262707+dhinrichs-scottlogic@users.noreply.github.com> Date: Thu, 1 Feb 2024 14:42:47 +0000 Subject: [PATCH 05/21] one header styling option --- .../DocumentViewer/DocumentViewBox.css | 48 ++++++++++++++----- .../DocumentViewer/DocumentViewBox.tsx | 20 ++++---- .../DocumentViewer/DocumentViewBoxHeader.tsx | 5 +- .../HandbookOverlay/HandbookOverlay.css | 1 + 4 files changed, 50 insertions(+), 24 deletions(-) diff --git a/frontend/src/components/DocumentViewer/DocumentViewBox.css b/frontend/src/components/DocumentViewer/DocumentViewBox.css index b7597305e..172497b3b 100644 --- a/frontend/src/components/DocumentViewer/DocumentViewBox.css +++ b/frontend/src/components/DocumentViewer/DocumentViewBox.css @@ -1,29 +1,51 @@ .document-popup-inner { + display: flex; + flex-direction: column; + /* border: 0.1875rem solid #444; */ + /* background-color: yellow; */ +} + +.view-documents-main { position: relative; display: flex; flex-direction: column; box-sizing: border-box; - height: 85vh; padding: 2rem; - border: 0.1875rem solid var(--main-border-colour); + margin-top: 5rem; + border: 0.1875rem solid #444; background: var(--main-background); + height: 75vh; aspect-ratio: 7/8; } -.document-popup-inner .close-button { - position: absolute; - top: 1rem; - right: 1rem; - padding: 0.25rem 0.75rem; +.document-popup-inner header { + color: var(--main-text-colour); + display: flex; + align-items: center; + justify-content: space-between; + background-color: #208187; + + position: fixed; + width: 100%; + height: 5rem; + margin: 0; + padding: 0; +} + +.document-popup-inner header h1 { + padding: 0 2rem; +} + +.document-popup-inner header .close-button { + border: 0.0625rem solid var(--main-text-colour); + border-radius: 0.5rem; color: var(--main-text-colour); - font-weight: bold; - font-size: 1.75rem; - text-decoration: none; + margin-right: 1rem; } -.document-popup-inner .close-button:hover { - border-color: var(--accent-border-colour); - color: var(--accent-border-colour); +.document-popup-inner header .overlay-close-icon { + color: var(--main-text-colour); + border-color: var(--main-text-colour); } .document-viewer-container { diff --git a/frontend/src/components/DocumentViewer/DocumentViewBox.tsx b/frontend/src/components/DocumentViewer/DocumentViewBox.tsx index 7f7532ae1..6c5bd16a6 100644 --- a/frontend/src/components/DocumentViewer/DocumentViewBox.tsx +++ b/frontend/src/components/DocumentViewer/DocumentViewBox.tsx @@ -7,6 +7,7 @@ import { getDocumentMetas } from '@src/service/documentService'; import DocumentViewBoxHeader from './DocumentViewBoxHeader'; import './DocumentViewBox.css'; +import ThemedButton from '../ThemedButtons/ThemedButton'; const emptyList: DocumentMeta[] = []; @@ -31,14 +32,16 @@ function DocumentViewBox({ closeOverlay }: { closeOverlay: () => void }) { return (
View Documents
+View documents
{documentName}
View Documents
-Handbook
+Handbook
-{heading}
- -{heading}
+ +{documentName}
+{documentName}
-