-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add sponsors.html linked with partners.js. - added photos - changed the nav link to sponsors.html - removed obsolete code from members.html
- Loading branch information
1 parent
e2d7c58
commit fd4e64e
Showing
17 changed files
with
230 additions
and
59 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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,128 @@ | ||
const sponsorsData = [ | ||
{ | ||
title: "Event Sponsor", | ||
name: "Leapfrog", | ||
image: "/assets/sponsors/Leapfrog.svg", | ||
link: "https://www.lftechnology.com/", | ||
}, | ||
{ | ||
title: "Primary Organizer", | ||
name: "NOSK", | ||
image: "/assets/shared/nosk_logo.svg", | ||
link: "https://nosk.org.np/", | ||
}, | ||
{ | ||
title: "Primary Supporter", | ||
name: "Nepal College of Information Technology", | ||
image: "/assets/sponsors/NCIT.jpg", | ||
link: "https://ncit.edu.np/", | ||
}, | ||
|
||
{ | ||
title: "Event Sponsor", | ||
name: "rEngine", | ||
image: "/assets/sponsors/rengine.png", | ||
link: "https://rengine.wiki/", | ||
}, | ||
{ | ||
title: "Career Partner", | ||
name: "Mero Job", | ||
image: "/assets/sponsors/Mero Job.jpg", | ||
link: "https://merojob.com/", | ||
}, | ||
{ | ||
title: "Community Partner", | ||
name: "Rotaract Club of Balaju", | ||
image: "/assets/sponsors/Rotaract Club Of Balaju.png", | ||
link: "https://www.instagram.com/rotaractbalajuofficial/", | ||
}, | ||
{ | ||
title: "Community Partner", | ||
name: "Rotaract Club of Dillibazar-Kathmandu", | ||
image: "/assets/sponsors/Logo_Club_And_Serving_Mankind.png", | ||
link: "https://www.instagram.com/rotaractdillibazar_ktm/", | ||
}, | ||
{ | ||
title: "Community Partner", | ||
name: "Rotaract Club of Gyaneshwor, CiST", | ||
image: "/assets/sponsors/RAC_Gyaneswor_CiST, Logo.png", | ||
link: "https://www.instagram.com/racgyanesworcist/", | ||
}, | ||
{ | ||
title: "Community Partner", | ||
name: "Rotaract Club of Patan West", | ||
image: "/assets/sponsors/patan_west-1.png", | ||
link: "https://www.instagram.com/rotaractclubofpatanwest/", | ||
}, | ||
|
||
{ | ||
title: "Co-Organizing Partner", | ||
name: "Birendra Open Source Club", | ||
image: "/assets/sponsors/Birendra Open Source Club.jpg", | ||
link: "https://www.facebook.com/birendraopensourceclub/", | ||
}, | ||
{ | ||
title: "Co-Organizing Partner", | ||
name: "Innovative Computer Engineering Club", | ||
image: "/assets/sponsors/ICEC.jpg", | ||
link: "https://ices.edu.np/", | ||
}, | ||
{ | ||
title: "Co-Organizing Partner", | ||
name: "Trichandra Research Group", | ||
image: "/assets/sponsors/TriChandra Research Group.jpg", | ||
link: "https://www.facebook.com/TriChandraResearchGroup/", | ||
}, | ||
|
||
{ | ||
title: "Volunteering Partner", | ||
name: "Nepal Tek Community", | ||
image: "/assets/sponsors/NTC logo.png", | ||
link: "https://tekcommunity.ncit.edu.np/", | ||
}, | ||
]; | ||
|
||
const sponsorContainer = document.getElementById("sponsor-container"); | ||
|
||
// Create a map to track unique titles | ||
const titlesMap = {}; | ||
|
||
sponsorsData.forEach((sponsor) => { | ||
const { title, name, image, link } = sponsor; | ||
|
||
// create a new section if the title doesn't exist in the titlesMap | ||
if (!titlesMap[title]) { | ||
titlesMap[title] = document.createElement("div"); | ||
titlesMap[title].classList.add("sponsor-section", "my-8"); | ||
titlesMap[title].innerHTML = ` | ||
<div class="sponsor-title text-center"> | ||
<h1 class="text-4xl font-bold">${title}</h1> | ||
</div> | ||
<div class="flex flex-col items-center py-6 justify-center flex-wrap sm:flex-row sm:items-stretch sm:justify-center gap-6"></div> | ||
`; | ||
sponsorContainer.appendChild(titlesMap[title]); | ||
} | ||
|
||
// Get the card container for this title | ||
const cardContainer = titlesMap[title].querySelector(".flex"); | ||
|
||
// Create sponsor card HTML | ||
const card = document.createElement("div"); | ||
card.className = | ||
"sponsor-card flex max-w-64 flex-col justify-between gap-3 rounded-3xl bg-white p-4 rounded-xl hover:shadow-xl"; | ||
card.innerHTML = ` | ||
<div class="sponsor-image max-w-full max-h-full my-auto flex items-start justify-center"> | ||
<a href="${link}"> | ||
<img | ||
src="${image}" | ||
alt="${name}" | ||
class="max-w-full max-h-full min-w-48 object-cover" | ||
/> | ||
</a> | ||
</div> | ||
<div class="sponsor-detail"> | ||
<p class="text-center">${name}</p> | ||
</div>`; | ||
// Append the card to the section | ||
cardContainer.appendChild(card); | ||
}); |
Oops, something went wrong.