Skip to content
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Blind Coding

## Bugs to be fixed/ Features to be added
- [ ] Timer is not working properly, fix it
- [X] Timer is not working properly, fix it
- [ ] When user gets a question correct, automatically redirect to next question
- [ ] Add a live leaderboard
- [ ] Change frontend
Expand Down
Binary file modified blind_coding/blind_coding/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file modified blind_coding/blind_coding/__pycache__/settings.cpython-36.pyc
Binary file not shown.
Binary file modified blind_coding/blind_coding/__pycache__/urls.cpython-36.pyc
Binary file not shown.
Binary file modified blind_coding/blind_coding/__pycache__/wsgi.cpython-36.pyc
Binary file not shown.
Binary file modified blind_coding/db.sqlite3
Binary file not shown.
Binary file modified blind_coding/main_app/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file modified blind_coding/main_app/__pycache__/admin.cpython-36.pyc
Binary file not shown.
Binary file modified blind_coding/main_app/__pycache__/models.cpython-36.pyc
Binary file not shown.
Binary file modified blind_coding/main_app/__pycache__/urls.cpython-36.pyc
Binary file not shown.
Binary file modified blind_coding/main_app/__pycache__/views.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
28 changes: 25 additions & 3 deletions blind_coding/main_app/templates/loggedIn.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Blind Coding: A Coding Club event for APOGEE</title>
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700" rel="stylesheet">
{% load staticfiles %}
{% load static %}
<link rel="stylesheet" href="../../static/css/style-1.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
Expand Down Expand Up @@ -101,11 +101,11 @@ <h5>Question 1</h5>
</div>

<div class="editor ">
<textarea id="codeInput" class="no-copy-paste noselect" autocorrect="off" autocapitalize="off" spellcheck="false" placeholder="//Write your code here!"></textarea>
<textarea id="codeInput" class="no-copy-paste noselect" autocorrect="off" autocapitalize="off" spellcheck="false" placeholder="// Write your code here!"></textarea>
</div>

<div class="outputArea">
<textarea id="compilerOutput" class="no-copy-paste noselect" autocorrect="off" autocapitalize="off" spellcheck="false" disabled placeholder="//Output will be shown here when you click 'Run'!"></textarea>
<textarea id="compilerOutput" class="no-copy-paste noselect" autocorrect="off" autocapitalize="off" spellcheck="false" disabled placeholder="// Output will be shown here when you click 'Run'!"></textarea>
</div>

<div class="options">
Expand All @@ -118,6 +118,28 @@ <h5>Question 1</h5>
<span><i class="material-icons">star_border</i><span id="score">00</span></span>
<span><i class="material-icons">timer</i><span id="timer">00:00</span></span>
</div>
<div class="leaderboard-icon">
<i class="material-icons li">insert_chart</i>
</div>
<div class="leaderboard">
<table>
<tr>
<th class="rank">Rank</th>
<th class="name">Name</th>
<th class="score">Points</th>
</tr>
<tr>
<td class="rank">1</td class="rank">
<td class="name">DM</td class="name">
<td class="score">50</td class="score">
</tr>
<tr>
<td class="rank">2</td class="rank">
<td class="name">BK</td class="name">
<td class="score">10</td class="score">
</tr>
</table>
</div>
<div id="footer">
<p>&copy; Coding Club ,2019</p>
<img src="../../static/assets/club-logo.svg" class="club-logo">
Expand Down
139 changes: 111 additions & 28 deletions blind_coding/static/css/style-1.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ outline: none;
margin-top: 10px;
margin-right: 10px;
background: none;
box-shadow: none;
margin-top: 0;
}

Expand All @@ -106,13 +107,14 @@ outline: none;
margin: 0;
display: flex;
justify-content: flex-end;
margin-top: calc(3vh - 8px);
}

.title {
color: white;
position: absolute;
left: 40px;
top: 20px;
left: calc(3vh + 50px);
top: 3vh;
margin: 0;
font-size: 25px;
z-index: 2;
Expand All @@ -121,8 +123,21 @@ outline: none;
#header ul li {
font-size: 20px;
color: #f5f5f5;
margin: 5px 20px;
padding: 10px 30px;
border-radius: 25px;
margin: 5px;
cursor: pointer;
transition: all 100ms linear;
line-height: 100%;
}

#header ul li:hover {
background-color: rgba(57, 255, 216, 0.8);
}

nav#header ul a {
line-height: 100%;
padding: 0;
}

#main {
Expand All @@ -135,6 +150,7 @@ outline: none;
flex-direction: column;
color: white;
font-size: 16px;
padding: 25px 15px;
sizing: expand;
}

Expand All @@ -148,7 +164,7 @@ outline: none;
top: 10px;
right: 10px;
min-height: 83vh;
border-radius: 10px;
border-radius: 20px;
}
/* #main > nav {
background: #D7E8D4;
Expand All @@ -169,19 +185,24 @@ outline: none;
button {
outline: none;
font-size: 20px;
padding: 0px 20px;
padding: 15px 20px;
width: 15vw;
min-height: 7vh;
/* min-height: 7vh; */
display: flex;
align-items: center;
justify-content: center;
color: whitesmoke;
background-color: #0d0a26;
border: 0.5px solid whitesmoke;
border-radius: 5px;
border-radius: 50px;
margin: 10px 0;
cursor: pointer;
margin-right: 20px;
transition: all 100ms linear;
}

button:hover {
background-color: rgba(57, 255, 216, 0.8);
}

button:focus {
Expand All @@ -207,7 +228,7 @@ header, footer, .left,.right {

.language {
height: 7vh;
margin: 10px 0;
margin: 0 0 5px 0;
}

#langSelect {
Expand All @@ -225,17 +246,19 @@ header, footer, .left,.right {

.select-wrapper input.select-dropdown {
color: whitesmoke !important;
padding: 0 20px !important;
box-sizing: border-box !important;
}

.editor {
height: 36vh;
}

.editor textarea {
padding: 10px;
padding: 20px;
width: 100%;
height: 100%;
border-radius: 10px;
border-radius: 20px;
resize: none;
box-sizing: border-box;
font-family: 'Montserrat', sans-serif;
Expand All @@ -253,10 +276,10 @@ textarea:focus {
}

#compilerOutput {
padding: 10px;
padding: 20px;
width: 100%;
height: 100%;
border-radius: 10px;
border-radius: 20px;
font-family: 'Montserrat', sans-serif;
box-sizing: border-box;
color: white;
Expand Down Expand Up @@ -293,20 +316,52 @@ textarea:focus {

}

.leaderboard-icon {
padding: 20px;
position: absolute;
bottom: 10px;
left: 15px;
cursor: pointer;
background: black;
border: 0.5px solid whitesmoke;
border-radius: 50%;
display: flex;
}

.leaderboard-icon .material-icons {
font-size: 24px;
/* transform: scale(1.2); */
color: white;
}

.leaderboard {
height: 75vh;
width: 90vh;
background: black;
border: 0.5px solid whitesmoke;
border-radius: 20px;
position: absolute;
bottom: 13vh;
left: 15px;
padding: 20px;
display: none;
}

.scoreboard {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
left: 10px;
left: 100px;
bottom: 10px;
width: 20vw;
height: 10vh;
width: auto;
height: auto;
background: black;
border: 0.5px solid whitesmoke;
border-radius: 7px;
border-radius: 50px;
color: white;
font-size: 20px;
padding: 10px 25px;
}

.scoreboard > span {
Expand All @@ -324,14 +379,42 @@ textarea:focus {
color: #bbb;
}

table {
color: white;
}

tr {
height: auto;
}

tr:nth-child(1) {
border-bottom: 1px solid white;
}

tr th {
padding: 15px 5px;
}

tr td {
padding: 10px 5px;
}

tr td, tr th {
text-align: center;
}

.rank, .score {
width: 20px;
}

/* Sidenav */

.hamburger {
cursor: pointer;
width: 28px;
position: absolute;
top: 20px;
left: 5px;
top: 3vh;
left: 3vh;
z-index: 10;
}
.hamburger .line {
Expand Down Expand Up @@ -456,8 +539,8 @@ textarea:focus {
left: 50%;
transform: translate(-50%, -50%);
background: white;
width: 5px;
height: 30px;
width: 4px;
height: 24px;
}

.h-line {
Expand All @@ -466,8 +549,8 @@ textarea:focus {
left: 50%;
transform: translate(-50%, -50%);
background: white;
width: 30px;
height: 5px;
width: 24px;
height: 4px;
}

#sidenav ul {
Expand All @@ -483,23 +566,23 @@ textarea:focus {
display: flex;
align-items: center;
margin: 0;
padding: 15px;
height: 15vh;
padding: 0 15px;
height: 11vh;
width: 100%;
box-sizing: border-box;
}

a {
font-size: 17px;
margin: 0 10px;
font-size: 1.4rem;
margin-left: 10px;
text-decoration: none;
color: white !important;
transition: 0.2s ease-in-out;
cursor: pointer
}

a:hover {
border-bottom: 0.3px solid whitesmoke;
#header ul a li:hover {
background-color: rgba(255, 40, 0, 1);
}

#codeInput{
Expand Down
Loading