Skip to content

Commit

Permalink
let's see how this goes pt. 2
Browse files Browse the repository at this point in the history
ok
  • Loading branch information
anmol-dash committed Mar 25, 2024
1 parent 800a6c5 commit 8bbc2fa
Show file tree
Hide file tree
Showing 14 changed files with 2,990 additions and 263 deletions.
240 changes: 217 additions & 23 deletions about/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta
Expand Down Expand Up @@ -10883,7 +10884,7 @@
content: "hjNuAF,";
} /*!sc*/
.dVvwf {
font-family: roboto;
font-family: Lato;
color: black;
font-weight: 600;
margin: 10px 10px;
Expand Down Expand Up @@ -10934,7 +10935,7 @@
cursor: pointer;
z-index: -1;
font-size: 1rem;
font-family: roboto;
font-family: Lato;
font-weight: bold;
-webkit-transition: 0.2s;
transition: 0.2s;
Expand Down Expand Up @@ -11026,8 +11027,138 @@
data-styled.g63[id="Footer-h5u8nr-4"] {
content: "cRIwJs,";
} /*!sc*/

.custom-select {
position: relative;
width: 200px;
max-width: 100%;
font-size: 1em;
color: #000;
margin-top: 0rem;
}

.select-button {
width: 100%;
font-size: 1em;
background-color: #fff;
padding: 0.675em 1em;
border: 1px solid #caced1;
border-radius: 0.25rem;
cursor: pointer;

display: flex;
justify-content: space-between;
align-items: center;
}

.selected-value {
text-align: left;
}

.arrow {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 6px solid #000;
transition: transform ease-in-out 0.3s;
}

.select-dropdown {
position: absolute;
list-style: none;
width: 100%;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
background-color: #fff;
border: 1px solid #caced1;
border-radius: 4px;
padding: 10px;
margin-top: 10px;
max-height: 200px;
overflow-y: auto;
transition: 0.5s ease;

transform: scaleY(0);
opacity: 0;
visibility: hidden;
}

.select-dropdown:focus-within {
box-shadow: 0 10px 25px rgba(94, 108, 233, 0.6);
}

.select-dropdown li {
position: relative;
cursor: pointer;
display: flex;
gap: 1rem;
align-items: center;
}

.select-dropdown li label {
width: 100%;
padding: 8px 10px;
cursor: pointer;
display: flex;
gap: 1rem;
align-items: center;
}

.select-dropdown::-webkit-scrollbar {
width: 7px;
}
.select-dropdown::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 25px;
}

.select-dropdown::-webkit-scrollbar-thumb {
background: #ccc;
border-radius: 25px;
}

.select-dropdown li:hover,
.select-dropdown input:checked ~ label {
background-color: #f2f2f2;
}

.select-dropdown input:focus ~ label {
background-color: #dfdfdf;
}

.select-dropdown input[type="radio"] {
position: absolute;
left: 0;
opacity: 0;
}

/* interactivity */

.custom-select.active .arrow {
transform: rotate(180deg);
}

.custom-select.active .select-dropdown {
opacity: 1;
visibility: visible;
transform: scaleY(1);
}

/*=============
Aesthetics
=========================*/

* {
box-sizing: border-box;
}


body {
font-family: "Lato", serif;
min-height: 100vh;
display: flex;
justify-content: center;
}
</style>
<title data-react-helmet="true">About | PCV Prize Competition</title>
<title data-react-helmet="true">About | Ecoventure Challenge</title>
<meta
data-react-helmet="true"
name="description"
Expand Down Expand Up @@ -11169,40 +11300,68 @@
<div class="Navbar__NavLinks-sc-1qxh3vi-7 hjNuAF">
<a
rel="noreferrer noopener"
href="/"
href="../index.html"
class="Navbar__NavButton-sc-1qxh3vi-8 dVvwf"
>Home</a
><a
>Home</a>
<div class="custom-select" style = "z-index: 10000;">
<button
class="select-button"
role="combobox"
aria-labelledby="select button"
aria-haspopup="listbox"
aria-expanded="false"
aria-controls="select-dropdown"
>
<span class="selected-value"><b>2024 Competition</b></span>
<span class="arrow"></span>
</button>
<ul class="select-dropdown" role="listbox" id="select-dropdown">
<li role="option" onclick="location.href='../eligibility/index.html';">
<input type="radio" id="github" name="social-account" />
<label for="github">Eligibility</label>
</li>
<li role="option" onclick="location.href='../judgingtracks/index.html';">
<input type="radio" id="instagram" name="social-account" />
<label for="instagram"
>Judging</label
>
</li>
<li role="option" onclick="location.href='../competitiontracks/index.html';">
<input type="radio" id="facebook" name="social-account" />
<label for="facebook"
>Competition Tracks</label
>
</li>

</ul>
</div>
<link href="https://unpkg.com/[email protected]/css/boxicons.min.css" rel="stylesheet"
/><a
rel="noreferrer noopener"
href="/rules"
class="Navbar__NavButton-sc-1qxh3vi-8 dVvwf"
>2024 Competition</a
><a
rel="noreferrer noopener"
href="/people"
href="../people/index.html"
class="Navbar__NavButton-sc-1qxh3vi-8 dVvwf"
>People</a
><a
rel="noreferrer noopener"
href="/sponsors"
href="../sponsors/index.html"
class="Navbar__NavButton-sc-1qxh3vi-8 dVvwf"
>Sponsors</a
><a
rel="noreferrer noopener"
href="/faq"
class="Navbar__NavButton-sc-1qxh3vi-8 dVvwf"
>FAQ</a
><a
rel="noreferrer noopener"
href="/winners"
href="../winners/index.html"
class="Navbar__NavButton-sc-1qxh3vi-8 dVvwf"
>Past Competitions</a
><a
rel="noreferrer noopener"
href="/about"
href="../about/index.html"
class="Navbar__NavButton-sc-1qxh3vi-8 dVvwf"
>About PCV</a
>
><a
rel="noreferrer noopener"
href="../faq/index.html"
class="Navbar__NavButton-sc-1qxh3vi-8 dVvwf"
>FAQ</a
>
</div>
<div class="Navbar__NavLinks-sc-1qxh3vi-7 hjNuAF">
<a
Expand Down Expand Up @@ -11282,10 +11441,10 @@ <h2>Let's push Penn into Climate.</h2>
<div class="Footer__FooterLevel-h5u8nr-1 iWleoG">
<a
rel="noreferrer noopener"
href="/rules"
href="../index.html"
font-size=".2rem"
class="MenuButton-aep6cf-0 Footer__FooterButton-h5u8nr-0 irEvaX fSfBoX"
>2024 Competition</a
>Home</a
><a
rel="noreferrer noopener"
href="/people"
Expand Down Expand Up @@ -11413,5 +11572,40 @@ <h2>Let's push Penn into Climate.</h2>
<script src="/app-b40bd9569d8d54b9e8a3.js" async=""></script>
<script src="/framework-31413af41550353e296a.js" async=""></script>
<script src="/webpack-runtime-112e99e25373045070fd.js" async=""></script>
<script>
const customSelect = document.querySelector(".custom-select");
const selectBtn = document.querySelector(".select-button");

const selectedValue = document.querySelector(".selected-value");
const optionsList = document.querySelectorAll(".select-dropdown li");

// add click event to select button
selectBtn.addEventListener("click", () => {
// add/remove active class on the container element
customSelect.classList.toggle("active");
// update the aria-expanded attribute based on the current state
selectBtn.setAttribute(
"aria-expanded",
selectBtn.getAttribute("aria-expanded") === "true" ? "false" : "true"
);
});

optionsList.forEach((option) => {
function handler(e) {
// Click Events
if (e.type === "click" && e.clientX !== 0 && e.clientY !== 0) {
selectedValue.textContent = this.children[1].textContent;
customSelect.classList.remove("active");
}
// Key Events
if (e.key === "Enter") {
selectedValue.textContent = this.textContent;
customSelect.classList.remove("active");
}
}

option.addEventListener("keyup", handler);
option.addEventListener("click", handler);
});</script>
</body>
</html>
384 changes: 384 additions & 0 deletions competitiontracks/index.html

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions competitiontracks/prize-website.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"folders": [
{
"path": ".."
},
{
"path": ".."
}
]
}
283 changes: 283 additions & 0 deletions eligibility/index.html

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions eligibility/prize-website.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"folders": [
{
"path": ".."
},
{
"path": ".."
}
]
}
Loading

0 comments on commit 8bbc2fa

Please sign in to comment.