Skip to content

Commit

Permalink
added vitbmess
Browse files Browse the repository at this point in the history
  • Loading branch information
hgjajoo committed Feb 23, 2024
1 parent f0aae09 commit 9994864
Show file tree
Hide file tree
Showing 6 changed files with 159 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ <h2>Welcome to the Utility Hub!</h2>
<p>Discover a collection of innovative tools and captivating games.</p>
</div>
</section>
<section id="tools">
<h2>VIT Essentials</h2>
<div class="project-grid">
<div class="project-card">
<h3>Mess Menu</h3>
<p>Showcase of timetable for hostels mess menu.</p>
<a href="vitbmess/index.html" class="explore-btn">Explore</a>
<p class="made-by">Made by: <a href="https://github.com/hgjajoo" target="_blank">hgjajoo</a></p>
</div>
</div>
</section>
<section id="tools">
<h2>Utility Tools</h2>
<div class="project-grid">
Expand All @@ -45,6 +56,7 @@ <h3>Random Color Generator</h3>
<a href="randColorGen/index.html" class="explore-btn">Explore</a>
<p class="made-by">Made by: <a href="https://github.com/hgjajoo" target="_blank">hgjajoo</a></p>
</div>

</div>
</section>
<section id="games">
Expand Down
22 changes: 22 additions & 0 deletions memeGen/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<title>Make A Meme</title>
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
iframe {
width: 100%;
height: 100%;
border: none;
}
</style>
</head>
<body>
<iframe src="https://makeameme.vercel.app/"></iframe>
</body>
</html>
23 changes: 23 additions & 0 deletions randNumGen/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Random Number Generator</title>
</head>
<body>
<div class="container">
<p id="randomNumber">0</p>

<div class="controls">
<button id="generateNumberButton">Generate Number</button>
<label for="limitSlider">Limit:</label>
<input type="range" id="limitSlider" min="1" max="1000" value="1000">
<span id="limitValue">Drag to set the limit</span>
</div>
</div>

<script src="script.js"></script>
</body>
</html>
19 changes: 19 additions & 0 deletions randNumGen/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
document.addEventListener('DOMContentLoaded', function () {
const randomNumberDisplay = document.getElementById('randomNumber');
const generateNumberButton = document.getElementById('generateNumberButton');
const limitSlider = document.getElementById('limitSlider');
const limitValue = document.getElementById('limitValue');

generateNumberButton.addEventListener('click', generateRandomNumber);
limitSlider.addEventListener('input', updateLimitValue);

function generateRandomNumber() {
const limit = parseInt(limitSlider.value);
const randomNumber = Math.floor(Math.random() * limit) + 1;
randomNumberDisplay.textContent = randomNumber;
}

function updateLimitValue() {
limitValue.textContent = limitSlider.value;
}
});
61 changes: 61 additions & 0 deletions randNumGen/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
body {
background-color: #1a1a1a;
color: white;
font-family: 'Arial', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

.container {
text-align: center;
}

#randomNumber {
margin: 20px 0;
font-size: 200px;
}

.controls {
display: flex;
flex-direction: column;
align-items: center;
}

button {
margin-top: 10px;
padding: 12px 24px;
font-size: 16px;
background-color: #555;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s ease;
}

button:hover {
background-color: #777;
}

label {
margin-top: 10px;
font-size: 16px;
}

input {
width: 100%;
margin-top: 5px;
}

#limitValue {
margin-top: 5px;
font-size: 10px;
color: #fff;
}
#limitSlider {
width: 80vw;
margin-top: 5px;
}
22 changes: 22 additions & 0 deletions vitbmess/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<title>VITB Mess</title>
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
iframe {
width: 100%;
height: 100%;
border: none;
}
</style>
</head>
<body>
<iframe src="https://vitbmess-menu.vercel.app/"></iframe>
</body>
</html>

0 comments on commit 9994864

Please sign in to comment.