Skip to content
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

Add navbar in contributor page #332

Closed
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
113 changes: 111 additions & 2 deletions pages/contributorsSection.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,84 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contributors</title>
<link rel="stylesheet" href="../resources/contributorsSection.css">
<link rel="icon" href="../image/ml-fusion-lab-logo.png">
<link rel="stylesheet" href="../resources/style.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Sometype+Mono:ital,wght@0,400..700;1,400..700&display=swap"
rel="stylesheet" />
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
<link rel="shortcut icon" href="../images/Nomenclature.png" type="image/x-icon" />
<link rel="shortcut icon" href="../images/Nomenclature.png" type="image/x-icon" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>

<body>

<div class="top-elements">
<a href="../index.html" class="top-link"><img src="../images/Nomenclature.png" alt="logo" class="logo" id="logo" />
<p class="codeit">CodeIt</p>
</a>
<nav class="navbar">
<div class="navbar-container">
<table id="navbar_table">
<tr>
<td class="nav-item">
<a href="../index.html" class="home">Home</a>
</td>
<td class="nav-item">
<a href="refine.html" class="competitive">Code Refiner</a>
</td>
<td class="nav-item">
<a href="obfuscation.html" class="obfuscation">Code Obfuscator</a>
</td>
<td class="nav-item">
<a href="timeComplexity.html" class="time">Time Complexity Analyser</a>
</td>
<td class="nav-item">
<a href="../index.html#contributeSection">Contribute!</a>
</td>
<td class="nav-item" id="current">
<a href="contributorsSection.html">Our Contributors!</a>
</td>
<td class="nav-item">
<a href="../index.html#feedback">Give Feedback!</a>
</td>
<td class="nav-item">
<a href="https://github.com/multiverseweb/CodeIt/blob/main/LICENSE#L3">License</a>
</td>
<div class="highlight"></div>
</tr>
</table>
</div>
</nav>
<!-- Hamburger for smaller screens -->
<div class="hamburger" onclick="toggleSidebar()">
<span class="material-symbols-outlined"> unfold_more </span>
</div>
<!-- Sidebar structure -->
<div id="sidebar" class="sidebar">
<span class="close-btn" onclick="toggleSidebar()">&times;</span>
<a href="../index.html" class="home">Home</a>
<a href="refine.html" class="competitive">Code Refiner</a>
<a href="obfuscation.html" class="obfuscation">Code Obfuscator</a>
<a href="timeComplexity.html" class="time">Time Complexity Analyser</a>
<a href="../index.html#contributeSection">Contribute!</a>
<a href="contributorsSection.html">Our Contributors!</a>
<a href="../index.html#feedback">Give Feedback!</a>
<a href="https://github.com/multiverseweb/CodeIt/blob/main/LICENSE#L3">License</a>
</div>

<div class="gap"></div>
</div>
<a href="../index.html"><button class="goBack">Go To Home</button></a>

<section class="contributor-stats">
Expand All @@ -20,11 +89,51 @@
</section>
<div class="scrollBar" id="progress_bar"></div> <!--PROGRESS BAR-->

<div class="container">
<div id="container">
<p class="title">Our Contributors</p>
</div>
<div id="contributors" class="contributors-grid"></div>

<script src="../resources/contributorsSection.js"></script>
<script src="../resources/common_functions.js" defer></script>
<script>
window.embeddedChatbotConfig = {
chatbotId: "DBi2wppZwMgjgoS8dKAXE",
domain: "www.chatbase.co"
}
</script>
<script src="https://www.chatbase.co/embed.min.js" chatbotId="DBi2wppZwMgjgoS8dKAXE" domain="www.chatbase.co" defer>
</script>
<script>
let sidebarOpen = false;
function toggleSidebar() {
const sidebar = document.getElementById("sidebar");
const navbar = document.querySelector(".navbar");

if (!sidebar) {
console.error("Sidebar element not found.");
return;
}

if (!navbar) {
console.error("Navbar element not found.");
return;
}

sidebarOpen = !sidebarOpen;
if (sidebarOpen) {
sidebar.classList.add("show");
sidebar.style.width = "250px";
navbar.style.display = "none";
document.querySelector(".hamburger").style.display = "none";
} else {
sidebar.style.width = "0";
navbar.style.display = "block";
document.querySelector(".hamburger").style.display = "block";
sidebar.classList.remove("show");
}
}
</script>
</body>

</html>
6 changes: 3 additions & 3 deletions resources/contributorsSection.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
padding: 0;
}

.container {
#container {
text-align: center;
}

Expand Down Expand Up @@ -207,7 +207,7 @@ footer {
position: absolute;
inset: 2px;
border-radius: 8px;
background-color: rgba(23,23,23,0.7);
background-color: rgb(42 41 41 / 70%)
}

.contributor-card p,
Expand Down Expand Up @@ -568,7 +568,7 @@ flex-wrap: wrap;
justify-content: center;
}

a{
.contributor-card a{
text-decoration: none;
color: white;
margin-top: 20px;
Expand Down