-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit e16fde3
Showing
4 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
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,57 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Hackathon</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<link rel="shortcut icon" href="./cwc.png?" type="image/x-icon"> | ||
</head> | ||
|
||
<body> | ||
</div> | ||
<div class="container"> | ||
<div class="header"> | ||
<a href="#" class="logo"></a> | ||
<nav class="navbar"> | ||
<a href="#Rules">Rules</a> | ||
<a href="./Problem_Statement.pdf" download="Problem_Statement.pdf">Problem_Statements</a> | ||
</nav> | ||
</div> | ||
<div class="container"> | ||
<img src="cwc.png" alt="" height="300px"> | ||
<h1 id="hackerText">CWC Hackathon</h1> | ||
</div> | ||
<div id="Rules" class="container"> | ||
<img src="Rules.png" class="rules"> | ||
</div> | ||
<script> | ||
const textElement = document.getElementById('hackerText'); | ||
const originalText = textElement.innerHTML; | ||
|
||
function scrambleText() { | ||
let scrambledText = ''; | ||
|
||
for (let i = 0; i < originalText.length; i++) { | ||
if (Math.random() < 0.5) { | ||
scrambledText += String.fromCharCode(Math.random() * 94 + 33); | ||
} else { | ||
scrambledText += originalText[i]; | ||
} | ||
} | ||
|
||
scrambledText = scrambledText.substring(0, originalText.length); | ||
|
||
textElement.innerHTML = scrambledText; | ||
|
||
setTimeout(() => { | ||
textElement.innerHTML = originalText; | ||
}, 2000); | ||
} | ||
|
||
setInterval(scrambleText, 50); | ||
</script> | ||
</body> | ||
|
||
</html> |
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,60 @@ | ||
body { | ||
background-color: #000; | ||
color: #9500ff; | ||
height: 100vh; | ||
max-width: 100vw; | ||
margin: 0; | ||
justify-content: center; | ||
align-items: center; | ||
overflow-x: hidden; | ||
} | ||
|
||
.header { | ||
color: inherit; | ||
position: sticky; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
background: transparent; | ||
padding: 10px 5% 3% 5%; | ||
display: flex; | ||
justify-content: space-between; | ||
z-index: 9; | ||
} | ||
|
||
.navbar a { | ||
font-size: 18px; | ||
position: relative; | ||
display: inline-block; | ||
padding: 0px 20px; | ||
text-decoration: none; | ||
font-weight: 500; | ||
margin-left: 35px; | ||
margin: 2% auto; | ||
color: inherit; | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
transition: 0.5s; | ||
letter-spacing: 4px; | ||
cursor: pointer; | ||
overflow: hidden; | ||
transition: .3s; | ||
} | ||
|
||
.navbar a:hover { | ||
background: #000000; | ||
color: #ffffff; | ||
} | ||
|
||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
height: auto; | ||
font-family: "Courier New", monospace; | ||
font-size: 24px; | ||
} | ||
|
||
.rules{ | ||
width: 100vw; | ||
} |