Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nihalawasthi authored Mar 19, 2024
0 parents commit e16fde3
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 0 deletions.
Binary file added Rules.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cwc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions index.html
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>
60 changes: 60 additions & 0 deletions style.css
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;
}

0 comments on commit e16fde3

Please sign in to comment.