Skip to content

Commit d8e2c7f

Browse files
committed
Finished Archive page
- Modified Navbar - Added Register button in Schedule & Archive - Updated logo - Added alert boxes wherever suitable
1 parent 471544d commit d8e2c7f

File tree

14 files changed

+169
-119
lines changed

14 files changed

+169
-119
lines changed

archive.html

Lines changed: 47 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,57 @@
7676
<div id="Schedule" class="container">
7777
<div class="row">
7878
<div class="col-10 offset-1">
79-
<h1>Archive</h1>
80-
<h3>⚠️ This section is still being developed!</h3>
81-
<p>All questions from previous Code Hackathons will be provided here soon. Stay tuned!</p>
82-
<p>Meanwhile, check the <code><a href="schedule">Schedule</a></code> for upcoming events:</p>
79+
<h1>Archive</h1>
80+
<p>Check out our questions from previous Code Hackathons! Remember to try &amp; solve them on your own before you take a peek at the solutions 😉</p>
81+
<div class="event-card">
82+
<h3>️Week #6</h3>
83+
<h4>
84+
<a href="https://bit.ly/w6-ch" class="badge badge-info" target="_blank">Register!</a>
85+
</h4>
86+
</div>
87+
<div class="event-card">
88+
<h3>️Week #5</h3>
89+
<h4>
90+
<a href="https://www.hackerrank.com/week-5-code-hackathon" class="badge badge-success" target="_blank">Questions</a>
91+
<!-- · <a href="#" class="badge badge-info" target="_blank">Solutions</a> -->
92+
</h4>
93+
</div>
94+
<div class="event-card">
95+
<h3>️Week #4</h3>
96+
<h4>
97+
<a href="https://www.hackerrank.com/week-4-codehackathon" class="badge badge-success" target="_blank">Questions</a>
98+
<!-- · <a href="#" class="badge badge-info" target="_blank">Solutions</a> -->
99+
</h4>
100+
</div>
101+
<div class="event-card">
102+
<h3>️Week #3</h3>
103+
<h4>
104+
<a href="assets/archive/week-3/Week-3-Questions.pdf" class="badge badge-success" target="_blank">Questions</a>
105+
<!-- · <a href="assets/archive/week-3/Week-3-Solutions.pdf" class="badge badge-info" target="_blank">Solutions</a> -->
106+
</h4>
107+
</div>
108+
<div class="event-card">
109+
<h3>️Week #2</h3>
110+
<h4>
111+
<a href="assets/archive/week-2/Week-2-Questions.pdf" class="badge badge-success" target="_blank">Questions</a> · <a href="assets/archive/week-2/Week-2-Solutions.pdf" class="badge badge-info" target="_blank">Solutions</a>
112+
</h4>
113+
</div>
114+
<div class="event-card">
115+
<h3>️Week #1</h3>
116+
<h4>
117+
<a href="assets/archive/week-1/Week-1-Questions.pdf" class="badge badge-success" target="_blank">Questions</a> · <a href="assets/archive/week-1/Week-1-Solutions.pdf" class="badge badge-info" target="_blank">Solutions</a>
118+
</h4>
119+
</div>
83120
</div>
84121
</div>
85122
</div>
86123

87124
<div id="suggestion-grid" class="container">
88-
<div class="row">
89-
<div class="col-10 offset-1">
125+
<div class="row">
126+
<div class="col-10 offset-1">
127+
<div class="alert alert-warning mt-4" role="alert">
128+
Issues with any of the questions/solutions? <a href="https://github.com/codehackathon/codehackathon.github.io" class="alert-link">Message us</a> your queries &amp; doubts.
129+
</div>
90130
<a href="schedule">
91131
<div id="suggest-one" class="suggestion-card">
92132
<h3>🗓️ Schedule</h3>
@@ -111,27 +151,6 @@ <h2>Questions? We'd be happy to help! <a href="contact" class="btn">Contact Us</
111151
<!-- Bootstrap core JavaScript -->
112152
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
113153
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
114-
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
115-
116-
<script>
117-
$(function () {
118-
var navbar = $(".navbar")
119-
var topMenu = $("#PrimaryMenu"),
120-
topMenuHeight = topMenu.outerHeight() + 15,
121-
menuItems = topMenu.find("li a"),
122-
scrollItems = menuItems.map(function () {
123-
var item = $($(this).attr("href"));
124-
if (item.length) {
125-
return item;
126-
}
127-
});
128-
129-
// Close navbar on click
130-
$('.nav-link').on('click', function () {
131-
$('.navbar-collapse').collapse('hide');
132-
});
133-
});
134-
</script>
135-
154+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
136155
</body>
137156
</html>
167 KB
Binary file not shown.
131 KB
Binary file not shown.
114 KB
Binary file not shown.
204 KB
Binary file not shown.
434 KB
Binary file not shown.

assets/brand/main-logo-sq.png

25.9 KB
Loading

assets/brand/main-logo.png

100755100644
-20.4 KB
Loading

contact.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ <h1>Contact Us</h1>
136136
<div id="FAQ" class="container">
137137
<div class="row">
138138
<div class="col-sm-10 offset-sm-1 col-md-8 offset-md-2">
139-
<h1>Frequently Asked Questions (FAQs)</h1>
139+
<div class="alert alert-warning mt-4" role="alert">
140+
Issues with this website? Check out the <a href="https://github.com/codehackathon/codehackathon.github.io" class="alert-link">official GitHub repository</a>.
141+
</div>
142+
<h1>Common Queries</h1>
140143
<ul>
141144
<li>For upcoming events, check our <code><a href="schedule">Schedule</a></code>.</li>
142145
<li>For previous code hackathon winners, visit the <code><a href="leaderboard">Leaderboard</a></code>.</li>

index.html

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<div class="row">
7878
<div class="intro-content col-8 offset-2 col-md-6 offset-md-3 d-flex justify-content-center align-items-center flex-column">
7979
<div>
80-
<img id="landing-logo" src="./assets/brand/main-logo.png" alt="CSI Logo">
80+
<img id="landing-logo" src="./assets/brand/main-logo-sq.png" alt="CSI Logo">
8181
</div>
8282
<div>
8383
<h1>Code Hackathon</h1>
@@ -103,7 +103,7 @@ <h2>Mission</h2>
103103
<h2>How do we do it?</h2>
104104
<ul>
105105
<li>Challenges are placed in an online interface and must be solved in a specified interval of time.</li>
106-
<li>There are <code>6</code> questions consisting of (usually) <code>2 Easy, 2 Medium &amp; 2 Hard</code> questions.</li>
106+
<li>There are <code>6</code> questions consisting of (usually) <code>2 Easy, 2 Medium &amp; 2 Hard</code> questions. Try our previous questions in the <code><a href="archive" target="blank">Archive</a></code>.</li>
107107
<li>Each question must pass the hidden test cases in addition to the given sample test cases.</li>
108108
<li>Each test case has some predefined weightage as a part of the total score of the question, and these may not be equal.</li>
109109
<li>The attendees are to attempt these questions in one of the labs assigned.</li>
@@ -166,17 +166,7 @@ <h2>Questions? We'd be happy to help! <a href="contact" class="btn">Contact Us</
166166

167167
<script>
168168
$(function () {
169-
var navbar = $(".navbar")
170-
var topMenu = $("#PrimaryMenu"),
171-
topMenuHeight = topMenu.outerHeight() + 15,
172-
menuItems = topMenu.find("li a"),
173-
scrollItems = menuItems.map(function () {
174-
var item = $($(this).attr("href"));
175-
if (item.length) {
176-
return item;
177-
}
178-
});
179-
169+
var navbar = $(".navbar");
180170
$(window).on("scroll", function () {
181171
// bring navbar into view
182172
if ($(this).scrollTop() >= 50) {
@@ -189,11 +179,6 @@ <h2>Questions? We'd be happy to help! <a href="contact" class="btn">Contact Us</
189179
});
190180
}
191181
});
192-
193-
// Close navbar on click
194-
$('.nav-link').on('click', function () {
195-
$('.navbar-collapse').collapse('hide');
196-
});
197182
});
198183
</script>
199184

0 commit comments

Comments
 (0)