Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/cipher popup #47

Merged
merged 12 commits into from
Oct 20, 2023
55 changes: 55 additions & 0 deletions src/PuzzleThree/PuzzleThree.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
.popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(255, 255, 255, 0.9);
border: 1px solid #ccc;
border-radius: 5px;
padding: 5% 10%;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
z-index: 1000;
max-width: 90%;
overflow: hidden;
}

.popup h2 {
font-size: 2.5vw;
margin-bottom: 2vw;
}

.popup p {
font-size: 2vw;
margin-bottom: 2vw;
}

.popup input[type="text"] {
width: 100%;
padding: 2vw;
font-size: 2vw;
border: 1px solid #ccc;
border-radius: 5px;
margin-bottom: 2vw;
}

.popup button {
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
padding: 2vw 4vw;
font-size: 2vw;
cursor: pointer;
margin-right: 2vw;
}

.popup button:last-child {
margin-right: 0;
background-color: #ccc;
color: #333;
}

.popup button:hover {
background-color: #0056b3;
}

Binary file added src/assets/room/Cipher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions src/components/Cipher/Cipher.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
.popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(255, 255, 255, 0.9);
border: 1px solid #ccc;
border-radius: 5px;
padding: 20px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
z-index: 1000;
max-width: 400px;
}

.popup h2 {
font-size: 1.5rem;
margin-bottom: 10px;
}

.popup p {
font-size: 1.2rem;
margin-bottom: 10px;
}

.popup input[type="text"] {
width: 100%;
padding: 10px;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 5px;
margin-bottom: 10px;
}

.popup button {
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
padding: 10px 20px;
font-size: 1rem;
cursor: pointer;
margin-right: 10px;
}

.popup button:last-child {
margin-right: 0;
background-color: #ccc;
color: #333;
}

.popup button:hover {
background-color: #0056b3;
}

19 changes: 19 additions & 0 deletions src/components/Cipher/Cipher.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import "./Cipher.css";
import "../../assets/room/Cipher.png";

export default function Cipher({ onClose }) {
return (
<div className="popup">
<h2>
Here are some of Bob's notes. Looks like he got ahead of us on the
cipher.
</h2>
<p>
A ⏃ B ⏚ C ☊ D ⎅ E ⟒ F ⎎ G ☌ H ⊑ I ⟟ J ⟊ K ☍ L ⌰ M ⋔ N ⋏ O ⍜ P ⌿ Q ⍾ R ⍀
S ⌇ T ⏁ U ⎍ V ⎐ W ⍙ X ⌖ Y ⊬ Z ⋉
</p>
<p>Decode the cipher: ⌿⍜⍀⏁⏃⌰</p>
<button onClick={onClose}>Close</button>
</div>
);
}
25 changes: 13 additions & 12 deletions src/components/PuzzleFive/PuzzleFive.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,41 @@
background-color: rgba(255, 255, 255, 0.9);
border: 1px solid #ccc;
border-radius: 5px;
padding: 20px;
padding: 5% 10%;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
z-index: 1000;
max-width: 400px;
max-width: 90%;
overflow: hidden;
}

.popup h2 {
font-size: 1.5rem;
margin-bottom: 10px;
font-size: 2.5vw;
margin-bottom: 2vw;
}

.popup p {
font-size: 1.2rem;
margin-bottom: 10px;
font-size: 2vw;
margin-bottom: 2vw;
}

.popup input[type="text"] {
width: 100%;
padding: 10px;
font-size: 1rem;
padding: 2vw;
font-size: 2vw;
border: 1px solid #ccc;
border-radius: 5px;
margin-bottom: 10px;
margin-bottom: 2vw;
}

.popup button {
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
padding: 10px 20px;
font-size: 1rem;
padding: 2vw 4vw;
font-size: 2vw;
cursor: pointer;
margin-right: 10px;
margin-right: 2vw;
}

.popup button:last-child {
Expand Down
25 changes: 13 additions & 12 deletions src/components/PuzzleFour/PuzzleFour.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,41 @@
background-color: rgba(255, 255, 255, 0.9);
border: 1px solid #ccc;
border-radius: 5px;
padding: 20px;
padding: 5% 10%;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
z-index: 1000;
max-width: 400px;
max-width: 90%;
overflow: hidden;
}

.popup h2 {
font-size: 1.5rem;
margin-bottom: 10px;
font-size: 2.5vw;
margin-bottom: 2vw;
}

.popup p {
font-size: 1.2rem;
margin-bottom: 10px;
font-size: 2vw;
margin-bottom: 2vw;
}

.popup input[type="text"] {
width: 100%;
padding: 10px;
font-size: 1rem;
padding: 2vw;
font-size: 2vw;
border: 1px solid #ccc;
border-radius: 5px;
margin-bottom: 10px;
margin-bottom: 2vw;
}

.popup button {
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
padding: 10px 20px;
font-size: 1rem;
padding: 2vw 4vw;
font-size: 2vw;
cursor: pointer;
margin-right: 10px;
margin-right: 2vw;
}

.popup button:last-child {
Expand Down
107 changes: 52 additions & 55 deletions src/components/PuzzleOne/PuzzleOne.css
Original file line number Diff line number Diff line change
@@ -1,57 +1,54 @@
.popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(255, 255, 255, 0.9);
border: 1px solid #ccc;
border-radius: 5px;
padding: 20px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
z-index: 1000;
max-width: 400px;
}

.popup h2 {
font-size: 1.5rem;
margin-bottom: 10px;
}

.popup p {
font-size: 1.2rem;
margin-bottom: 10px;
}

.popup input[type="text"] {
width: 100%;
padding: 10px;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 5px;
margin-bottom: 10px;
}

.popup button {
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
padding: 10px 20px;
font-size: 1rem;
cursor: pointer;
margin-right: 10px;
}

.popup button:last-child {
margin-right: 0;
background-color: #ccc;
color: #333;
}

.popup button:hover {
background-color: #0056b3;
}

position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(255, 255, 255, 0.9);
border: 1px solid #ccc;
border-radius: 5px;
padding: 5% 10%;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
z-index: 1000;
max-width: 90%;
overflow: hidden;
}



.popup h2 {
font-size: 2.5vw;
margin-bottom: 2vw;
}

.popup p {
font-size: 2vw;
margin-bottom: 2vw;
}

.popup input[type="text"] {
width: 100%;
padding: 2vw;
font-size: 2vw;
border: 1px solid #ccc;
border-radius: 5px;
margin-bottom: 2vw;
}

.popup button {
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
padding: 2vw 4vw;
font-size: 2vw;
cursor: pointer;
margin-right: 2vw;
}

.popup button:last-child {
margin-right: 0;
background-color: #ccc;
color: #333;
}

.popup button:hover {
background-color: #0056b3;
}
4 changes: 2 additions & 2 deletions src/components/PuzzleOne/PuzzleOne.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export default function PuzzleOne({
return (
<div className="popup">
<p>{incorrect}</p>
<h2>What's that displayed on Bob's computer? Looks like a cipher...maybe he kept some notes on his whiteboard? </h2>
<p>Decode the cipher: what does the message on Bob's computer mean?</p>
<h2>Looks like Bob's been decoding a cipher...maybe he kept some notes on his whiteboard? </h2>
<p>What does it mean?</p>
<input
type="text"
value={answer}
Expand Down
Loading