Skip to content

Fixed repo issue #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CodeWithHarry-Repo
Submodule CodeWithHarry-Repo added at ebf360
45 changes: 45 additions & 0 deletions Harshita/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>College Hackathons</title>
<link rel="stylesheet" href="style.css">
</head>

<body>
<header>
<h1>HackEve</h1>
</header>

<!-- <section class="hero">
<h3>Unleash Your Potential – Explore, Innovate, Connect!</h3>
<h2>Stay Updated with All College Events!</h2>
<input type="text" id="search" placeholder="Search events...">
<button id="searchBtn">Explore Events</button>
</section> -->
<div class = "landing">
<div><img id="sc1" src="sc1.png"></div>
<div class="quote"><h3>Unleash Your Potential – Explore, Innovate, Connect!</h3></div>
<div class="forward-icon" onclick="nextSlide()">&#9654;</div>
</div>

<div class="popup-icon" onclick="togglePopup()">&#9776;</div>
<div id="popup" class="popup-menu">
<ul>
<li><a href="#">Clubs</a></li>
<li><a href="#">Hackathons</a></li>
<li><a href="#">Events</a></li>
<li><a href="#">Workshops</a></li>
</ul>
</div>

<footer>
<p>&copy; 2025 College Hackathons. All rights reserved.</p>
</footer>

<script src="script.js"></script>
</body>

</html>
46 changes: 46 additions & 0 deletions Harshita/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
document.getElementById("searchBtn").addEventListener("click", function () {
let query = document.getElementById("search").value;
alert("Searching for: " + query);
});

function togglePopup() {
let popup = document.getElementById("popup");
popup.style.display = (popup.style.display === "block") ? "none" : "block";
}

document.addEventListener("click", function (event) {
let popup = document.getElementById("popup");
let icon = document.querySelector(".popup-icon");

if (!popup.contains(event.target) && !icon.contains(event.target)) {
popup.style.display = "none";
}
});

const images = ["sc1.png", "sc2.png", "sc3.png"];
const quotes = [
"Unleash Your Potential – Explore, Innovate, Connect!",
"Hack, Build, and Create the Future!",
"Join, Collaborate, and Succeed in Every Event!"
];

let index = 0;

function nextSlide() {
index = (index + 1) % images.length;

let landingDiv = document.querySelector(".landing");
landingDiv.style.transform = "translateX(-100%)";

setTimeout(() => {
document.getElementById("sc1").src = images[index];
document.getElementById("quote-text").innerText = quotes[index];
landingDiv.style.transition = "none";
landingDiv.style.transform = "translateX(100%)";

setTimeout(() => {
landingDiv.style.transition = "transform 0.8s ease-in-out";
landingDiv.style.transform = "translateX(0)";
}, 50);
}, 800);
}
179 changes: 179 additions & 0 deletions Harshita/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
text-align: center;
background-color: #f4f4f4;
}

header {
background-color: #333;
color: white;
height: 60px;
/* padding: 10px; */
padding-top: 10px;
font-size: 20px;
}
h1{
margin-top: 10px;
}

.hero {
margin-top: 50px;
}

h2 {
font-size: 28px;
margin-bottom: 20px;
}

input {
padding: 10px;
width: 250px;
margin-right: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}

button {
padding: 10px 20px;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}

button:hover {
background-color: #0056b3;
}

footer {
background-color: #333;
color: white;
padding: 10px;
position: absolute;
width: 100%;
bottom: 0;
}

.popup-icon {
position: fixed;
bottom: 80px;
right: 20px;
font-size: 30px;
cursor: pointer;
background: #007bff;
color: white;
padding: 10px;
border-radius: 50%;
}

.popup-menu {
display: none;
position: fixed;
bottom: 80px;
right: 80px;
background: white;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
border-radius: 5px;
padding: 10px;
width: 150px;
}

.popup-menu ul {
list-style: none;
padding: 0;
margin: 0;
}

.popup-menu ul li {
padding: 10px;
border-bottom: 1px solid #ddd;
}

.popup-menu ul li:last-child {
border-bottom: none;
}

.popup-menu ul li a {
text-decoration: none;
color: black;
display: block;
}

.popup-menu ul li a:hover {
background: #007bff;
color: white;
border-radius: 5px;
}

.landing{
background-color: #eaede6;
height: 350px;
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 15px;
}
#sc1{
margin-right: 700px;
margin-top: 20px;
height: 350px;
width: 60%;
}

.quote {
flex: 1;
text-align: right;
font-family: 'Times New Roman', Times, serif;
color: #4f3939;
animation: slideIn 1.5s ease-in-out forwards;
padding-right: 300px;
font-size: larger;
}


@keyframes slideIn {
from {
opacity: 0;
transform: translateX(-100px);
}

to {
opacity: 1;
transform: translateX(0);
}
}

.forward-icon {
font-size: 24px;
cursor: pointer;
color: #007bff;
padding: 10px;
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
}

.forward-icon:hover {
color: #0056b3;
}

.landing {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px;
position: relative;
overflow: hidden;
width: 100%;
}

.slide-container {
display: flex;
transition: transform 0.8s ease-in-out;
width: 100%;
}