Skip to content

Commit

Permalink
Revert "Merge pull request #178 from ShouryaMishra2006/main"
Browse files Browse the repository at this point in the history
This reverts commit 883e928, reversing
changes made to 464c12f.
  • Loading branch information
meisabhishekpatel committed Oct 20, 2024
1 parent 081b238 commit 8913145
Showing 1 changed file with 8 additions and 57 deletions.
65 changes: 8 additions & 57 deletions home/templates/home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,36 +66,7 @@
background: #1C2331 !important;
}
}

</style>
<script>
document.addEventListener("DOMContentLoaded", function () {
const pastOrganisersSection = document.getElementById("pastorganizers");
if (pastOrganisersSection) {
const yearLinks = pastOrganisersSection.querySelectorAll('[id="year"]');
const organisersSections = pastOrganisersSection.querySelectorAll(".row");
organisersSections.forEach((section) => {
section.style.display = "none";
});

yearLinks.forEach((yearLink) => {
yearLink.addEventListener("click", function (e) {
e.preventDefault();
const selectedYear = this.getAttribute("data-year");
organisersSections.forEach((section) => {
if (section.getAttribute("data-year") === selectedYear) {
section.style.display = "block";
section.style.display="flex";
} else {
section.style.display = "none";
}
});
});
});
}
});

</script>
</head>

<body>
Expand Down Expand Up @@ -441,13 +412,8 @@ <h5 class="card-title">LDK</h5>
<section id="pastorganizers" class="pt-5 pb-5 shadow-sm">
<h2 class="h2 mb-5 text-center display-5 font-weight-bold">Past organizers</h2>
<div class="container">
<button id="year" type="button" class="btn btn-outline-dark w-100" data-year="2024">
<div class="mx-auto px-6 md:px-12 w-100">
<h2 class="text-3xl text-center text-gray-800 md:text-4xl font-bold">Team 2024</h2>
</div>
</button>
<div class="row mx-1" data-year="2024">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-3 mb-3 d-flex align-items-stretch justify-content-center">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-3 mb-3 d-flex align-items-stretch justify-content-center">
<div class="card justify-content-center align-items-center">
<img src="{% static 'img/profile/shank.jpg' %}" class="card-img-top w-100" alt="Card Image"
style="max-height: 250px; object-fit: cover;">
Expand Down Expand Up @@ -504,14 +470,9 @@ <h5 class="card-title">Amit Kumar</h5>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<button id="year" type="button" class="btn btn-outline-dark w-100" data-year="2023">
<div class="mx-auto px-6 md:px-12 w-100">
<h2 class="text-3xl text-center text-gray-800 md:text-4xl font-bold">Team 2023</h2>
</div>
</button>
<div class="row mx-1" data-year="2023">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4 mb-3 d-flex align-items-stretch justify-content-center">
<div class="card justify-content-center align-items-center">
<img src="{% static 'img/profile/ss.jpg' %}" class="card-img-top w-100" alt="Card Image"
Expand Down Expand Up @@ -555,7 +516,7 @@ <h5 class="card-title">Lovedeep Singh Kamal</h5>
</div>
</div>
</div>
<div class="row justify-content-center" data-year="2023">
<div class="row justify-content-center">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-4 mb-3 d-flex align-items-stretch justify-content-center">
<div class="card justify-content-center align-items-center">
<img src="{% static 'img/profile/sy.jpeg' %}" class="card-img-top w-100" alt="Card Image"
Expand Down Expand Up @@ -585,12 +546,7 @@ <h5 class="card-title">Divyansh Upadhyay</h5>
</div>
</div>
</div>
<button id="year" type="button" class="btn btn-outline-dark w-100" data-year="2022">
<div class="mx-auto px-6 md:px-12 w-100">
<h2 class="text-3xl text-center text-gray-800 md:text-4xl font-bold">Team 2022</h2>
</div>
</button>
<div class="row mx-1" data-year="2022">
<div class="row">

<div class="col-xs-12 col-sm-12 col-md-6 col-lg-3 mb-3 d-flex align-items-stretch justify-content-center">
<div class="card justify-content-center align-items-center">
Expand Down Expand Up @@ -655,12 +611,7 @@ <h5 class="card-title">Ankit Sangwan</h5>
</div>
</div>
<div class="container">
<button id="year" type="button" class="btn btn-outline-dark w-100" data-year="2021">
<div class="mx-auto px-6 md:px-12 w-100">
<h2 class="text-3xl text-center text-gray-800 md:text-4xl font-bold ">Team 2021-Below</h2>
</div>
</button>
<div class="row mx-1" data-year="2021">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-3 mb-3 d-flex align-items-stretch justify-content-center">
<div class="card justify-content-center align-items-center">
<img src="{% static 'img/profile/abhey.png' %}" class="card-img-top" alt="Card Image"
Expand Down Expand Up @@ -890,4 +841,4 @@ <h3 class="dark-grey-text text-center">

</body>

</html>
</html>

0 comments on commit 8913145

Please sign in to comment.