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

[Update]: add tasks and leaderboard #212

Merged
merged 9 commits into from
Jun 9, 2024
Merged
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
8 changes: 8 additions & 0 deletions _news/announcement_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: post
date: 2024 June 10
inline: true
related_posts: false
---

[Tasks](tasks/) are now live. Good luck to all participating teams!
7 changes: 2 additions & 5 deletions _pages/leaderboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ nav_order: 2
horizontal: false
---

<!-- <div id="leaderboard">
<div id="leaderboard">
<table class="table" id="leaderboardTable">
<thead>
<tr>
Expand All @@ -21,10 +21,7 @@ horizontal: false

</tbody>
</table>
</div> -->

<div class="alert alert-secondary text-center" role="alert">
Competing team's scores will be revealed here. Stay tuned!
</div>


<script src="{{ '/assets/js/leaderboard.js' | relative_url }}"></script>
62 changes: 62 additions & 0 deletions _pages/tasks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
layout: page
title: Tasks
permalink: /tasks/
description:
nav: true
nav_order: 2
horizontal: false
---
<!-- pages/projects.md -->

<div class="projects">
{%- if site.enable_project_categories and page.display_categories %}
<!-- Display categorized projects -->
{%- for category in page.display_categories %}
<h2 class="category">{{ category }}</h2>
{%- assign categorized_projects = site.tasks | where: "category", category -%}
{%- assign sorted_projects = categorized_projects | sort: "importance" %}
<!-- Generate cards for each project -->
{% if page.horizontal -%}
<div class="container">
<div class="row row-cols-2">
{%- for project in sorted_projects -%}
{% include projects_horizontal.html %}
{%- endfor %}
</div>
</div>
{%- else -%}
<div class="grid">
{%- for project in sorted_projects -%}
{% include projects.html %}
{%- endfor %}
</div>
{%- endif -%}
{% endfor %}

{%- else -%}

<!-- Display projects without categories -->

{%- assign sorted_projects = site.tasks | sort: "importance" -%}

<!-- Generate cards for each project -->

{% if page.horizontal -%}

<div class="container">
<div class="row row-cols-2">
{%- for project in sorted_projects -%}
{% include projects_horizontal.html %}
{%- endfor %}
</div>
</div>
{%- else -%}
<div class="grid">
{%- for project in sorted_projects -%}
{% include projects.html %}
{%- endfor %}
</div>
{%- endif -%}
{%- endif -%}
</div>
Binary file added _site/assets/img/maze.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _site/assets/img/stars.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _site/assets/img/task_2_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions _site/assets/js/leaderboard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let SHEET_ID = "1K9QtML3lSrBIk0UNDydKRtBL3TNEnZO5VyU08mqwE1Q";
let SHEET_TITLE = "Eklavya Leaderboard";
let SHEET_ID = "1SicFCrILTarw2dsadPwuciuanI6aIcLU1i8DWhv62k0";
let SHEET_TITLE = "Eklavya Leaderboard 24";
let SHEET_RANGE = "A2:B42";

let full_URI = `https://docs.google.com/spreadsheets/d/${SHEET_ID}/gviz/tq?sheet=${SHEET_TITLE}/&range=${SHEET_RANGE}`;
Expand Down
10 changes: 10 additions & 0 deletions _site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
<li class="nav-item ">
<a class="nav-link" href="/projects/">Eklavya Projects</a>
</li>
<li class="nav-item ">
<a class="nav-link" href="/tasks/">Tasks</a>
</li>

<!-- Toogle theme mode -->
<!-- <li class="toggle-container">
Expand Down Expand Up @@ -176,6 +179,13 @@ <h2><a href="/news/" style="color: inherit;">news</a></h2> <div class="
<div class="table-responsive">
<table class="table table-sm table-borderless">

<tr>
<th scope="row">Jun 10, 2024</th>
<td>
<a href="tasks/">Tasks</a> are now live. Good luck to all participating teams!

</td>
</tr>
<tr>
<th scope="row">May 14, 2024</th>
<td>
Expand Down
9 changes: 4 additions & 5 deletions _site/leaderboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@
<li class="nav-item ">
<a class="nav-link" href="/projects/">Eklavya Projects</a>
</li>
<li class="nav-item ">
<a class="nav-link" href="/tasks/">Tasks</a>
</li>

<!-- Toogle theme mode -->
<!-- <li class="toggle-container">
Expand Down Expand Up @@ -120,7 +123,7 @@ <h1 class="post-title">Leaderboard</h1>
</header>

<article>
<!-- <div id="leaderboard">
<div id="leaderboard">
<table class="table" id="leaderboardTable">
<thead>
<tr>
Expand All @@ -133,10 +136,6 @@ <h1 class="post-title">Leaderboard</h1>

</tbody>
</table>
</div> -->

<div class="alert alert-secondary text-center" role="alert">
Competing team's scores will be revealed here. Stay tuned!
</div>

<script src="/assets/js/leaderboard.js"></script>
Expand Down
Loading
Loading