Merge pull request #1 from c0d1ng-ma5ter/codespace-fuzzy-broccoli-4jwv46xw7pj5fj7p7
Finishing
This commit is contained in:
commit
5b2af48ae8
3 changed files with 6516 additions and 2 deletions
6477
package-lock.json
generated
Normal file
6477
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
30
src/App.tsx
30
src/App.tsx
|
@ -266,6 +266,22 @@ function App() {
|
||||||
setIsAttacking(false);
|
setIsAttacking(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const descriptions = {
|
||||||
|
'http flood': 'Sends random HTTP requests to the target',
|
||||||
|
'http bypass': 'Sends HTTP requests to the target, mimicking real requests',
|
||||||
|
'http slowloris': 'Sends random HTTP requests to the target, while keeping the connection open',
|
||||||
|
'tcp flood': 'Sends random TCP requests to the target',
|
||||||
|
'minecraft ping': 'Sends Minecraft ping requests to the target'
|
||||||
|
};
|
||||||
|
|
||||||
|
const emojis = {
|
||||||
|
'http flood': '🌊',
|
||||||
|
'http bypass': '🚀',
|
||||||
|
'http slowloris': '🦥',
|
||||||
|
'tcp flood': '📶',
|
||||||
|
'minecraft ping': '⛏'
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`w-screen h-screen bg-gradient-to-br ${
|
className={`w-screen h-screen bg-gradient-to-br ${
|
||||||
|
@ -462,7 +478,19 @@ function App() {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/*Attack method description*/}
|
{/*Attack method description*/}
|
||||||
<div className = "w-full px-4 py-2 border border-pink-200 rounded-lg outline-none focus:border-pink-500 focus:ring-2 focus:ring-pink-200" id="description">{attackMethod}</div>
|
<label
|
||||||
|
className={`block mb-1 text-sm font-medium ${
|
||||||
|
animState === 0 || animState === 3
|
||||||
|
? "text-gray-700"
|
||||||
|
: "text-white"
|
||||||
|
}`}
|
||||||
|
>
|
||||||
|
Attack description
|
||||||
|
</label>
|
||||||
|
<div className = "w-full px-4 py-2 border border-pink-200 rounded-lg outline-none focus:border-pink-500 focus:ring-2 focus:ring-pink-200" id="description">{attackMethod.replaceAll(/_/ig, ' ') + ' ' + emojis[attackMethod.replaceAll(/_/ig, ' ')]}: <div className={animState === 0 || animState === 3
|
||||||
|
? "text-gray-700"
|
||||||
|
: "text-white" + "regularText"}>{descriptions[attackMethod.replaceAll(/_/ig, ' ')]}</div></div>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
{/* Stats Widgets */}
|
{/* Stats Widgets */}
|
||||||
<div className="grid grid-cols-3 gap-4 mb-6">
|
<div className="grid grid-cols-3 gap-4 mb-6">
|
||||||
|
|
|
@ -167,5 +167,14 @@ how to remove the vertical space around the range input in IE*/
|
||||||
|
|
||||||
#description {
|
#description {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
/*border:1px solid rgba(236, 72, 153, 1);*/
|
color: rgba(236, 72, 153, 1);
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
.regularText {
|
||||||
|
display: inline;
|
||||||
|
color: black;
|
||||||
|
font-weight: normal;
|
||||||
|
/*border:1px solid rgba(236, 72, 153, 1);*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue