Skip to content

Commit

Permalink
deployment commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KUNAL committed May 2, 2021
1 parent afed7ab commit 02be78e
Show file tree
Hide file tree
Showing 5 changed files with 325 additions and 213 deletions.
6 changes: 6 additions & 0 deletions base/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
min-width: 100%;
min-height: 100%;
}

@media(max-width:992px) {
body {
overflow-x: hidden;
}
}
</style>

</head>
Expand Down
68 changes: 31 additions & 37 deletions cp/templates/cp.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src='https://kit.fontawesome.com/a076d05399.js'></script>
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
<link href="{%static '/css/sb-admin-2.min.css'%}" rel="stylesheet">
<link href="{%static './css/sb-admin-2.min.css'%}" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>

Expand All @@ -246,7 +246,7 @@
<div id="content">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark shadow">

<a href="/cp"><strong>CP</strong></a>
<a href="/cp"><strong style="color:yellow">CP</strong></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
Expand Down Expand Up @@ -472,54 +472,48 @@ <h1>Submit Query</h1><br>

</div>
<h1 class="bg-light text-center shadow" style="font-family: serif;"><a href="{{problem}}" style="color:grey;">Problem of the day</a> <span id="the-final-countdown"> </span></h1>
<div class="container-fluid shadow" style="width:300%; ">

<div class="row" style="display:inline;">
<div class="col-xl-3 col-md-6 mb-6">
<h1 style="font-style: italic;font-family:serif;">Books</h1>
{% for books in book%} {% for key2 , value2 in books.items%}
<div class="row" style="margin-left: 50px;">
<div class='row'>

{% if key2 == 'downloadUrl'%}
<a href='{{value2}}' class="btn btn-primary"> Download</a>

<div class='col-md-2'> {%elif key2 == 'onlineViewLink'%}
<a href='{{value2}}' class="btn btn-secondary">View</a></div>
<div class='col-md-2'> {%else%}
<p><strong style="font-family: serif;">{{value2|title}}</strong></p>
</div>
{%endif%}

<h1 style="font-style: italic;font-family:serif;">Books</h1>
{% for books in book%} {% for key2 , value2 in books.items%}
<div class="row" style="margin-left: 50px;">
<div class='row'>
{% if key2 == 'downloadUrl'%}
<a href='{{value2}}' class="btn btn-primary"> Download</a>

<div class='col-md-2'> {%elif key2 == 'onlineViewLink'%}
<a href='{{value2}}' class="btn btn-secondary">View</a></div>
<div class='col-md-2'> {%else%}
<p><strong style="font-family: serif;">{{value2|title}}</strong></p>
</div>
{%endif%}

</div>
</div>
{%endfor%} <span> <br><br></span> {%endfor%} {%if request.user.is_authenticated%}
<div class="row" style="margin-left: 10px;">
</div>
</div>
{%endfor%} <span> <br><br></span> {%endfor%} {%if request.user.is_authenticated%}
<div class="row" style="margin-left: 10px;">

<form method="POST" enctype="multipart/form-data">
{%csrf_token%}
<input type="hidden" value="doc" name="type">
<input type='file' name='name'>
<form method="POST" enctype="multipart/form-data">
{%csrf_token%}
<input type="hidden" value="doc" name="type">
<input type='file' name='name'>

<br>
<input type="submit" class="btn btn-success" value="upload" style="width: 80px;">
</form>
</div>
<small>Please Only Upload Valuabe Things</small> {%endif%}
</div>
<br>
<input type="submit" class="btn btn-success" value="upload" style="width: 80px;">
</form>
</div>
<small>Please Only Upload Valuabe Things</small> {%endif%}


</div>





<!-- Footer -->

<!-- Footer -->



</div>
<div>
{% if request.user.is_authenticated%}
<div class="d-sm-flex align-items-center justify-content-between mb-4">
Expand Down
Loading

0 comments on commit 02be78e

Please sign in to comment.