-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
159 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from "react"; | ||
|
||
const Level1 = () => { | ||
return ( | ||
<div style={{ backgroundColor: "#1c1c1c", color: "#fff", textAlign: "center", fontFamily: "Arial, sans-serif", minHeight: "100vh", display: "flex", alignItems: "center", justifyContent: "center" }}> | ||
<html> | ||
<body> | ||
<img src="/assets/captf/img1.png" alt="" srcset="" style={{ maxWidth: "100%", margin: "auto" }} /> | ||
<br/> | ||
<p style={{ fontSize: "24px", fontWeight: "bold", marginTop: "20px" }}>pxohduq.ruj/vslghup + Muhammad Kutty Panaparambil Ismai's Son</p> | ||
<a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ" target="_blank" rel="noopener noreferrer"> | ||
<button style={{ backgroundColor: "#e62429", color: "#fff", border: "none", borderRadius: "5px", padding: "10px 20px", fontSize: "18px", fontWeight: "bold", marginTop: "20px", cursor: "pointer" }}>Click Here</button> | ||
</a> | ||
</body> | ||
</html> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Level1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import React from "react"; | ||
|
||
const Spiderman = () => { | ||
return ( | ||
<div | ||
style={{ | ||
backgroundColor: "black", | ||
width: "100vw", | ||
height: "100vh", | ||
display: "flex", | ||
justifyContent: "center", | ||
flexDirection: "column", | ||
alignItems: "center", | ||
color: "white", | ||
filter: "grayscale(100%)", // added this line to make the image monochrome | ||
textShadow: "0px 0px 10px white", // added this line to add a horror effect to the text | ||
}} | ||
> | ||
<img src="/assets/captf/displaynun.jpg" alt="" /> | ||
<p | ||
style={{ | ||
fontSize: "3rem", // added this line to increase the font size | ||
}} | ||
> | ||
Here is your flag{" "} | ||
<span style={{ display: "none", color: "#000000", textShadow: "none" }}>CTFFlag123</span> | ||
</p> | ||
<button | ||
style={{ | ||
backgroundColor: "white", | ||
color: "black", | ||
padding: "10px 20px", | ||
border: "none", | ||
borderRadius: "5px", | ||
marginTop: "20px", | ||
cursor: "pointer", | ||
boxShadow: "0px 0px 10px white", // added this line to add a horror effect to the button | ||
}} | ||
> | ||
Submit | ||
</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Spiderman; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
import React, { useState, useEffect } from "react"; | ||
|
||
const Submission = () => { | ||
const [name, setName] = useState(""); | ||
const [showParam, setShowParam] = useState(""); | ||
|
||
useEffect(() => { | ||
const urlParams = new URLSearchParams(window.location.search); | ||
const show = urlParams.get("show"); | ||
setShowParam(show); | ||
}, []); | ||
|
||
const handleSubmit = (e) => { | ||
e.preventDefault(); | ||
console.log(name); | ||
}; | ||
|
||
const handleChange = (e) => { | ||
setName(e.target.value); | ||
}; | ||
|
||
return ( | ||
<div | ||
style={{ | ||
backgroundColor: "black", | ||
height: "100vh", | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
}} | ||
> | ||
<form | ||
onSubmit={handleSubmit} | ||
style={{ | ||
display: "flex", | ||
flexDirection: "column", | ||
alignItems: "center", | ||
}} | ||
> | ||
<label | ||
htmlFor="input-field" | ||
style={{ color: "white", marginBottom: "10px" }} | ||
> | ||
Enter Secret Key | ||
</label> | ||
<input | ||
type="text" | ||
id="input-field" | ||
value={name} | ||
onChange={handleChange} | ||
style={{ | ||
padding: "10px", | ||
borderRadius: "5px", | ||
border: "none", | ||
marginBottom: "10px", | ||
}} | ||
/> | ||
<a | ||
href={ | ||
showParam === "true" || name != "Secret Key" | ||
? "https://www.youtube.com/watch?v=dQw4w9WgXcQ" | ||
: "https://airtable.com/apppADe83MpHBM05J/shr3Dn6gSjCbcp45r" | ||
} | ||
> | ||
<button | ||
type="submit" | ||
style={{ | ||
padding: "10px", | ||
borderRadius: "5px", | ||
border: "none", | ||
backgroundColor: "white", | ||
color: "black", | ||
}} | ||
> | ||
Submit | ||
</button> | ||
</a> | ||
|
||
<p style={{ color: "white" }}>{showParam}</p> | ||
</form> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Submission; |