Skip to content

Commit 716f39b

Browse files
committed
Moved to new page layout
1 parent 5021273 commit 716f39b

File tree

8 files changed

+490
-505
lines changed

8 files changed

+490
-505
lines changed

Diff for: _layouts/default.html

+12-6
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<body>
5353
<div id="wrapper" class="container-fluid">
5454
<!-- Navigation section -->
55-
<nav class="navbar navbar-expand-xl fixed-top">
55+
<nav class="navbar navbar-expand-xl fixed-top bg-transparent">
5656
<button
5757
aria-controls="menu"
5858
aria-expanded="false"
@@ -94,9 +94,7 @@
9494
</div>
9595
</nav>
9696

97-
<main>
98-
{{ content }}
99-
</main>
97+
{{ content }}
10098
</div>
10199

102100
<footer id="End-Game" class="container-fluid">
@@ -134,10 +132,18 @@ <h2>
134132
});
135133

136134
// Close navbar on click
137-
$('.nav-link').on('click', function () {
138-
$('.navbar-collapse').collapse('hide');
135+
$(".nav-link").on("click", function () {
136+
$(".navbar-collapse").collapse("hide");
139137
});
140138
});
139+
140+
$(window).bind("scroll", function () {
141+
if ($(window).scrollTop() > 50) {
142+
$(".navbar").removeClass("bg-transparent");
143+
} else {
144+
$(".navbar").addClass("bg-transparent");
145+
}
146+
});
141147
</script>
142148
</body>
143149
</html>

Diff for: _layouts/page.html

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
layout: default
3+
---
4+
5+
<header id="Hero" class="container-fluid">
6+
<div class="container">
7+
<div class="col-10 offset-1 p-0">
8+
<h1 id={{ page.title }}>{{ page.title }}</h1>
9+
<p class="lead">
10+
{{ page.description }}
11+
</p>
12+
</div>
13+
</div>
14+
</header>
15+
16+
<main class="container py-5">
17+
<div class="row">
18+
<div class="col-10 offset-1 px-0">
19+
{{ content }}
20+
</div>
21+
</div>
22+
</main>

Diff for: _sass/navbar.sass

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
.navbar
55
background: $primary-dark
66
background: linear-gradient(-135deg, $primary-dark 0%,$primary-dark 55%,#8132ff 100%)
7-
box-shadow: 0 0 100px rgba($off-dark, 0.5)
87
text-align: center
98
transition: all 0.3s ease
109
@media( #{$bp-md})

Diff for: archive.html

+102-106
Original file line numberDiff line numberDiff line change
@@ -1,115 +1,111 @@
11
---
22
title: Archive
3+
description: Collection of our previously held contests and their problems
4+
layout: page
35
---
46

5-
<div id="Archive" class="container">
6-
<div class="row">
7-
<div class="col-10 offset-1">
8-
<h1>Archive</h1>
9-
<p>On this page, you can see the questions and contest pages from the past <em>Code Hackathon</em> weeks and now, the <em>Rookie Hour</em> challenges. We encourage you to read through the problem sets and practice.</p>
10-
<p><strong>Note:</strong> Starting with <em>Code Hackathon Week 3</em>, we will not be publishing solutions for our questions. We believe that trying to solve a question on your own is the best way to learn &amp; improve. The sense of satisfaction that we gain on successfully solving a question and all of its hidden test cases is something that keeps us going. This kind of tenacity is what interviewers look for in freshers: persistence, self-reliance, hard-work, and above all, patience. So pick a time that suits you &amp; stick to it. Practice, practice, practice!</p>
11-
<div class="event-card-group">
12-
<div class="event-card">
13-
<h3>️Week #11</h3>
14-
<h4>
15-
<a href="https://www.hackerrank.com/week-11-code-hackathon" class="badge badge-info" target="_blank">Contest</a>
16-
</h4>
17-
</div>
18-
<div class="event-card">
19-
<h3>️Week #10</h3>
20-
<h4>
21-
<a href="https://www.hackerrank.com/week-10-code-hackathon" class="badge badge-info" target="_blank">Contest</a>
22-
</h4>
23-
</div>
24-
<div class="event-card">
25-
<h3>Rookie Hour #2</h3>
26-
<h4>
27-
<a href="https://www.hackerrank.com/rookie-hour-2-0-phase-i" class="badge badge-info" target="_blank">Phase I</a> · <a href="https://www.hackerrank.com/rookie-hour-2-0-phase-ii" class="badge badge-info" target="_blank">Phase II</a>
28-
</h4>
29-
</div>
30-
<div class="event-card">
31-
<h3>️Women's Hackathon</h3>
32-
<h4>
33-
<a href="https://www.hackerrank.com/womens-code-hackathon-1" class="badge badge-info" target="_blank">Contest</a>
34-
</h4>
35-
</div>
36-
<div class="event-card">
37-
<h3>️Week #9</h3>
38-
<h4>
39-
<a href="https://www.hackerrank.com/week-9-code-hackathon" class="badge badge-info" target="_blank">Contest</a>
40-
</h4>
41-
</div>
42-
<div class="event-card">
43-
<h3>️Week #8</h3>
44-
<h4>
45-
<a href="https://www.hackerrank.com/week-8-code-hackathon" class="badge badge-info" target="_blank">Contest</a>
46-
</h4>
47-
</div>
48-
<div class="event-card">
49-
<h3>️Week #7</h3>
50-
<h4>
51-
<a href="https://www.hackerrank.com/week-7-codehackathon" class="badge badge-info" target="_blank">Contest</a>
52-
</h4>
53-
</div>
54-
<div class="event-card">
55-
<h3>️Rookie Hour #1</h3>
56-
<h4>
57-
<a href="https://www.hackerrank.com/rookie-hour-1" class="badge badge-info" target="_blank">Contest</a>
58-
</h4>
59-
</div>
60-
<div class="event-card">
61-
<h3>️Week #6</h3>
62-
<h4>
63-
<a href="https://www.hackerrank.com/week-6-codehackathon-part-i" class="badge badge-info" target="_blank">Contest 1️</a> · <a href="https://www.hackerrank.com/week-6-codehackathon-part-ii" class="badge badge-info" target="_blank">Contest 2</a>
64-
</h4>
65-
</div>
66-
<div class="event-card">
67-
<h3>️Week #5</h3>
68-
<h4>
69-
<a href="https://www.hackerrank.com/week-5-code-hackathon" class="badge badge-info" target="_blank">Contest</a>
70-
</h4>
71-
</div>
72-
<div class="event-card">
73-
<h3>️Week #4</h3>
74-
<h4>
75-
<a href="https://www.hackerrank.com/week-4-codehackathon" class="badge badge-info" target="_blank">Contest</a>
76-
</h4>
77-
</div>
78-
<div class="event-card">
79-
<h3>️Week #3</h3>
80-
<h4>
81-
<a href="assets/archive/week-3/Week-3-Questions.pdf" class="badge badge-info" target="_blank">Questions</a>
82-
</h4>
83-
</div>
84-
<div class="event-card">
85-
<h3>️Week #2</h3>
86-
<h4>
87-
<a href="assets/archive/week-2/Week-2-Questions.pdf" class="badge badge-info" target="_blank">Questions</a> · <a href="assets/archive/week-2/Week-2-Solutions.pdf" class="badge badge-info" target="_blank">Solutions</a>
88-
</h4>
89-
</div>
90-
<div class="event-card">
91-
<h3>️Week #1</h3>
92-
<h4>
93-
<a href="assets/archive/week-1/Week-1-Questions.pdf" class="badge badge-info" target="_blank">Questions</a> · <a href="assets/archive/week-1/Week-1-Solutions.pdf" class="badge badge-info" target="_blank">Solutions</a>
94-
</h4>
95-
</div>
96-
</div>
97-
</div>
7+
<p>
8+
On this page, you can see the questions and contest pages from the past <em>Code Hackathon</em> weeks and now, the <em>Rookie Hour</em> challenges. We encourage you to read through the problem sets and practice.
9+
</p>
10+
<p>
11+
<strong>Note:</strong> Starting with <em>Code Hackathon Week 3</em>, we will not be publishing solutions for our questions. We believe that trying to solve a question on your own is the best way to learn &amp; improve. The sense of satisfaction that we gain on successfully solving a question and all of its hidden test cases is something that keeps us going. This kind of tenacity is what interviewers look for in freshers: persistence, self-reliance, hard-work, and above all, patience. So pick a time that suits you &amp; stick to it. Practice, practice, practice!
12+
</p>
13+
<div class="event-card-group pt-5">
14+
<div class="event-card">
15+
<h3>️Week #11</h3>
16+
<h4>
17+
<a href="https://www.hackerrank.com/week-11-code-hackathon" class="badge badge-info" target="_blank">Contest</a>
18+
</h4>
19+
</div>
20+
<div class="event-card">
21+
<h3>️Week #10</h3>
22+
<h4>
23+
<a href="https://www.hackerrank.com/week-10-code-hackathon" class="badge badge-info" target="_blank">Contest</a>
24+
</h4>
25+
</div>
26+
<div class="event-card">
27+
<h3>Rookie Hour #2</h3>
28+
<h4>
29+
<a href="https://www.hackerrank.com/rookie-hour-2-0-phase-i" class="badge badge-info" target="_blank">Phase I</a> · <a href="https://www.hackerrank.com/rookie-hour-2-0-phase-ii" class="badge badge-info" target="_blank">Phase II</a>
30+
</h4>
31+
</div>
32+
<div class="event-card">
33+
<h3>️Women's Hackathon</h3>
34+
<h4>
35+
<a href="https://www.hackerrank.com/womens-code-hackathon-1" class="badge badge-info" target="_blank">Contest</a>
36+
</h4>
37+
</div>
38+
<div class="event-card">
39+
<h3>️Week #9</h3>
40+
<h4>
41+
<a href="https://www.hackerrank.com/week-9-code-hackathon" class="badge badge-info" target="_blank">Contest</a>
42+
</h4>
43+
</div>
44+
<div class="event-card">
45+
<h3>️Week #8</h3>
46+
<h4>
47+
<a href="https://www.hackerrank.com/week-8-code-hackathon" class="badge badge-info" target="_blank">Contest</a>
48+
</h4>
49+
</div>
50+
<div class="event-card">
51+
<h3>️Week #7</h3>
52+
<h4>
53+
<a href="https://www.hackerrank.com/week-7-codehackathon" class="badge badge-info" target="_blank">Contest</a>
54+
</h4>
55+
</div>
56+
<div class="event-card">
57+
<h3>️Rookie Hour #1</h3>
58+
<h4>
59+
<a href="https://www.hackerrank.com/rookie-hour-1" class="badge badge-info" target="_blank">Contest</a>
60+
</h4>
61+
</div>
62+
<div class="event-card">
63+
<h3>️Week #6</h3>
64+
<h4>
65+
<a href="https://www.hackerrank.com/week-6-codehackathon-part-i" class="badge badge-info" target="_blank">Contest 1️</a> · <a href="https://www.hackerrank.com/week-6-codehackathon-part-ii" class="badge badge-info" target="_blank">Contest 2</a>
66+
</h4>
9867
</div>
68+
<div class="event-card">
69+
<h3>️Week #5</h3>
70+
<h4>
71+
<a href="https://www.hackerrank.com/week-5-code-hackathon" class="badge badge-info" target="_blank">Contest</a>
72+
</h4>
73+
</div>
74+
<div class="event-card">
75+
<h3>️Week #4</h3>
76+
<h4>
77+
<a href="https://www.hackerrank.com/week-4-codehackathon" class="badge badge-info" target="_blank">Contest</a>
78+
</h4>
79+
</div>
80+
<div class="event-card">
81+
<h3>️Week #3</h3>
82+
<h4>
83+
<a href="assets/archive/week-3/Week-3-Questions.pdf" class="badge badge-info" target="_blank">Questions</a>
84+
</h4>
85+
</div>
86+
<div class="event-card">
87+
<h3>️Week #2</h3>
88+
<h4>
89+
<a href="assets/archive/week-2/Week-2-Questions.pdf" class="badge badge-info" target="_blank">Questions</a> · <a href="assets/archive/week-2/Week-2-Solutions.pdf" class="badge badge-info" target="_blank">Solutions</a>
90+
</h4>
91+
</div>
92+
<div class="event-card">
93+
<h3>️Week #1</h3>
94+
<h4>
95+
<a href="assets/archive/week-1/Week-1-Questions.pdf" class="badge badge-info" target="_blank">Questions</a> · <a href="assets/archive/week-1/Week-1-Solutions.pdf" class="badge badge-info" target="_blank">Solutions</a>
96+
</h4>
97+
</div>
98+
</div>
99+
100+
<div class="alert alert-info my-4" role="alert">
101+
In such online programming competitions, there are only either correct &amp; incorrect answers. No partial ones. If you have any issues, doubts or queries with any of our questions or provided solutions, then please feel free to <a href="contact" class="alert-link" target="_blank">message us</a>.
99102
</div>
100103

101-
<div id="suggestion-grid" class="container">
102-
<div class="row">
103-
<div class="col-10 offset-1">
104-
<div class="alert alert-warning mt-4" role="alert">
105-
In such online programming competitions, there are only either correct &amp; incorrect answers. No partial ones. If you have any issues, doubts or queries with any of our questions or provided solutions, then please feel free to <a href="contact" class="alert-link" target="_blank">message us</a>.
106-
</div>
107-
<a href="schedule">
108-
<div id="suggest-one" class="suggestion-card">
109-
<h3>🗓️ Schedule</h3>
110-
<h5>Save the date</h5>
111-
</div>
112-
</a>
104+
<div id="suggestion-grid">
105+
<a href="schedule">
106+
<div id="suggest-one" class="suggestion-card">
107+
<h3>🗓️ Schedule</h3>
108+
<h5>Save the date</h5>
113109
</div>
114-
</div>
110+
</a>
115111
</div>

0 commit comments

Comments
 (0)