Attacks
+Attacks
{getHeaderText(currentLevel)}
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 972ad1b04..39fdabf32 100644
--- a/frontend/src/components/HandbookOverlay/HandbookOverlay.css
+++ b/frontend/src/components/HandbookOverlay/HandbookOverlay.css
@@ -1,55 +1,36 @@
.handbook-overlay {
display: flex;
- flex-direction: row;
+ flex-direction: column;
height: 85vh;
- background-color: var(--handbook-background-colour);
- color: var(--handbook-text-colour);
aspect-ratio: 7/8;
}
-.handbook-overlay .close-button {
- position: absolute;
- top: 0.25rem;
- right: 0.25rem;
-}
-
-.handbook-overlay .close-button:hover svg rect {
- fill: black;
- stroke: white;
+.handbook-overlay .overlay-header {
+ border-bottom: 0.0625rem solid var(--handbook-spine-separator-colour);
+ border-radius: 0;
}
-.handbook-overlay .close-button:hover svg path {
- fill: white;
+.handbook-overlay .handbook {
+ display: flex;
+ flex-direction: row;
+ overflow: hidden;
+ background-color: var(--handbook-background-colour);
+ color: var(--handbook-text-colour);
}
-.handbook-overlay .content {
+.handbook-overlay .handbook-page {
overflow-y: auto;
- margin-top: 3rem;
- margin-right: 0.5rem;
- margin-bottom: 0.25rem;
- padding: 0 1.75rem 0.5rem;
+ padding: 1.75rem;
/* firefox scrollbar styling */
scrollbar-color: var(--handbook-scrollbar-colour) transparent;
}
/* webkit scrollbar styling */
-.handbook-overlay .content::-webkit-scrollbar-thumb {
+.handbook-overlay .handbook-page::-webkit-scrollbar-thumb {
background-color: var(--handbook-scrollbar-colour);
}
-.handbook-overlay .content::-webkit-scrollbar-thumb:hover {
+.handbook-overlay .handbook-page::-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 c2203f846..ca99d13ef 100644
--- a/frontend/src/components/HandbookOverlay/HandbookOverlay.tsx
+++ b/frontend/src/components/HandbookOverlay/HandbookOverlay.tsx
@@ -1,11 +1,11 @@
import { useRef, useState } from 'react';
+import OverlayHeader from '@src/components/Overlay/OverlayHeader';
import useIsOverflow from '@src/hooks/useIsOverflow';
import { HANDBOOK_PAGES } from '@src/models/handbook';
import { LEVEL_NAMES, LevelSystemRole } from '@src/models/level';
import HandbookAttacks from './HandbookAttacks';
-import HandbookCloseIcon from './HandbookCloseIcon';
import HandbookGlossary from './HandbookGlossary';
import HandbookSpine from './HandbookSpine';
import HandbookSystemRole from './HandbookSystemRole';
@@ -44,27 +44,23 @@ function HandbookOverlay({
return (
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/LevelsComplete.css b/frontend/src/components/Overlay/LevelsComplete.css
deleted file mode 100644
index ac34bca27..000000000
--- a/frontend/src/components/Overlay/LevelsComplete.css
+++ /dev/null
@@ -1,8 +0,0 @@
-.levels-complete-overlay {
- display: flex;
- flex-direction: column;
-}
-
-.levels-complete-overlay .content {
- overflow-y: auto;
-}
diff --git a/frontend/src/components/Overlay/LevelsComplete.tsx b/frontend/src/components/Overlay/LevelsComplete.tsx
index 4d460a6ca..f955c78e7 100644
--- a/frontend/src/components/Overlay/LevelsComplete.tsx
+++ b/frontend/src/components/Overlay/LevelsComplete.tsx
@@ -3,8 +3,6 @@ import LevelsCompleteButtons from '@src/components/ThemedButtons/LevelsCompleteB
import MissionDialogue from './MissionDialogue';
import Overlay from './Overlay';
-import './LevelsComplete.css';
-
function LevelsComplete({
goToSandbox,
closeOverlay,
@@ -22,27 +20,24 @@ function LevelsComplete({
];
return (
-
Congratulations!
--
- You've completed the story mode! You can stay here and continue - to play with the levels, or you can move onto Sandbox mode where you - can configure your own defence set up and try to break it. -
-- You can always switch modes by clicking on the button in the left - panel. -
-+
+ You've completed the story mode! You can stay here and continue + to play with the levels, or you can move onto Sandbox mode where you + can configure your own defence set up and try to break it. +
++ You can always switch modes by clicking on the button in the left + panel. +
+Mission Information
{heading}
+ +Welcome to Spy Logic!
+Welcome to Spy Logic!
This is an app we developed to teach you about AI chat system security
in a playful way. In this game you are playing the role of an
diff --git a/frontend/src/components/Overlay/ResetLevel.tsx b/frontend/src/components/Overlay/ResetLevel.tsx
index ddd5ca543..7ac19b038 100644
--- a/frontend/src/components/Overlay/ResetLevel.tsx
+++ b/frontend/src/components/Overlay/ResetLevel.tsx
@@ -14,21 +14,21 @@ function ResetLevelOverlay({
return (
{
- 'Warning! This will reset all your chat history and sent emails for this level.'
+ 'Resetting will erase all your chat history and sent emails for this level.'
}
{currentLevel >= LEVEL_NAMES.LEVEL_3 &&
' However, any configurations you have made to defences will not be lost.'}
@@ -37,6 +37,7 @@ function ResetLevelOverlay({
>
}
closeOverlay={closeOverlay}
+ heading="Reset Level"
/>
);
}
diff --git a/frontend/src/components/Overlay/ResetProgress.tsx b/frontend/src/components/Overlay/ResetProgress.tsx
index 715a9b1f9..1ee6b006a 100644
--- a/frontend/src/components/Overlay/ResetProgress.tsx
+++ b/frontend/src/components/Overlay/ResetProgress.tsx
@@ -10,26 +10,28 @@ function ResetProgressOverlay({
return (
- {`Warning! This will reset all your progress in the levels and sandbox mode.
- This includes all your conversation history and sent emails. Any configurations you have made to defences in sandbox mode will also be lost.
+ {`Resetting will erase all your progress in the levels and sandbox mode.
+ This includes all your conversation history and sent emails.
+ Any configurations you have made to defences in sandbox mode will also be lost.
Are you sure you want to do this?`}
Reset level
+ Do you want to reset your level progress?
Reset all progress
+ Do you want to reset all progress?
+
{modeButtons.map((modeButton) => (