Skip to content
Open
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
Empty file added Pushedsuccessfully.sahil
Empty file.
Binary file added codeara/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file added codeara/__pycache__/settings.cpython-39.pyc
Binary file not shown.
Binary file added codeara/__pycache__/urls.cpython-39.pyc
Binary file not shown.
Binary file added codeara/__pycache__/wsgi.cpython-39.pyc
Binary file not shown.
Binary file added compiler/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file added compiler/__pycache__/admin.cpython-39.pyc
Binary file not shown.
Binary file added compiler/__pycache__/models.cpython-39.pyc
Binary file not shown.
Binary file added compiler/__pycache__/urls.cpython-39.pyc
Binary file not shown.
Binary file added compiler/__pycache__/views.cpython-39.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
26 changes: 26 additions & 0 deletions compiler/static/compiler/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,37 @@ body {
body * {
font-family: 'Quicksand', sans-serif;
}



#q_id2{
margin-top: 9px;
height:320px;

}

#q_id{
text-decoration-color:#00c853;
background-color: #E8EAF6;
font-size: 18px !important;
margin-right: 88px;
margin-left: 91px;

}
#q_id1{
text-decoration-color:#00c853;
background-color: #E8EAF6;
font-size: 18px !important;
margin-right: 88px;
margin-left: 91px;

}






#spacing {
padding-top: 40%;
}
Expand Down
Binary file modified compiler/static/compiler/image/bck.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 compiler/static/compiler/image/frnt1.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 compiler/static/compiler/image/frnt2.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 compiler/static/compiler/image/frnt3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 19 additions & 1 deletion compiler/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet">
<link href="{% static 'compiler/css/bootstrap.min.css' %}" rel="stylesheet" type="text/css"/>
<link href="{% static 'compiler/css/theme.css' %}" rel="stylesheet" type="text/css"/>
<link rel="icon" type="image/png" href="{% static 'compiler/image/icon.jpg' %}" />
Expand Down Expand Up @@ -34,6 +37,21 @@
<ul class="nav navbar-nav">
<li><a href="{% url 'compiler:compiler' %}">Compiler</a></li>
</ul>





<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="/tutorial">Tutorials</a></li>
</ul>






<ul class="nav navbar-nav navbar-right">
{% if user.is_authenticated %}
<li class="dropdown">
Expand Down
Binary file added user/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file added user/__pycache__/admin.cpython-39.pyc
Binary file not shown.
Binary file added user/__pycache__/models.cpython-39.pyc
Binary file not shown.
Binary file added user/__pycache__/urls.cpython-39.pyc
Binary file not shown.
Binary file added user/__pycache__/views.cpython-39.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added user/migrations/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
5 changes: 5 additions & 0 deletions user/templates/cpp14.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends 'base.html' %}

{% block content %}
<iframe src="https://www.learncpp.com/cpp-tutorial/b-2-introduction-to-c14/" style="height:514px;width:1321px" title="Iframe Example"></iframe>
{% endblock content %}
5 changes: 5 additions & 0 deletions user/templates/go.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends 'base.html' %}

{% block content %}
<iframe src="https://golang.org/doc/tutorial/getting-started" style="height:514px;width:1321px" title="Iframe Example"></iframe>
{% endblock content %}
77 changes: 73 additions & 4 deletions user/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,72 @@
<head>
{% load static %}
<link href="{% static 'compiler/css/theme.css' %}" rel="stylesheet" type="text/css"/>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<div class="w3-container w3-teal" id="q_id">
<h1> Question of the Day!!</h1>


<div class="container">

<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators" style="margin-bottom: 39.5px;left: 563px;">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>

<!-- Wrapper for slides -->
<div class="carousel-inner" id="q_id2">

<div class="item active">
<img src="{% static 'compiler/image/frnt1.jpg' %}" alt="Language" style="width:100%;">
<div class="carousel-caption">
<h3 style="background:#000000ad">Different Languages</h3>
<p style="background:#000000ad">Python,C++,Java and much more!!</p>
</div>
</div>

<div class="item">
<img src="{% static 'compiler/image/frnt2.jpg' %}" alt="Questions" style="width:100%;">
<div class="carousel-caption">
<h3 style="background:#000000ad">Daily Questions</h3>
<p style="background:#000000ad">Solve Questions Daily from difficulty easy to hard!!</p>
</div>
</div>

<div class="item">
<img src="{% static 'compiler/image/frnt3.jpg' %}" alt="Tutorials" style="width:100%;">
<div class="carousel-caption">
<h3 style="background:#000000ad">Tutorials</h3>
<p style="background:#000000ad">Learn New Language on the go!!</p>
</div>
</div>

</div>

<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>


<div class="w3-container w3-teal" id="q_id1">
<b><h1> Question of the Day!!</h1></b>
</div>
<div class="w3-container w3-teal" id="q_id">
<ol>
<strong>Question No. {{q_num.qno}} : </strong>
<strong>Question No.{{q_num.qno}} :</strong>
<p style="font-size:110%;"> {{q_num.text}} </p>
<p><strong>SAMPLE INPUT :</strong></p>
{{q_num.samplein}}<br><br>
Expand All @@ -17,4 +78,12 @@ <h1> Question of the Day!!</h1>

</ol>
</div>
{% endblock content %}








{% endblock content %}
5 changes: 5 additions & 0 deletions user/templates/python.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends 'base.html' %}

{% block content %}
<iframe src="https://docs.python.org/3/tutorial/" style="height:514px;width:1321px" title="Iframe Example"></iframe>
{% endblock content %}
29 changes: 29 additions & 0 deletions user/templates/tutorial.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{% extends 'base.html' %}

{% block content %}
<style>
.button {
background-color: #25425E85; /* Green */
border: blue;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 32px;
margin: 15px 414px;
cursor: pointer;
}

.button1 {width: 500px;}
.button2 {width: 500px;}
.button3 {width: 500px;}
</style>
</head>
<body>


<a href="/python/"><button class="button button1">Python</button><br></a>
<a href="/cpp14/"><button class="button button1">C++14</button><br></a>
<a href="/go/"><button class="button button1">Go</button><br></a>
{% endblock content %}
7 changes: 6 additions & 1 deletion user/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@
#path('accounts/profile/view/', views.user_detail, name = 'user_detail'),
path('accounts/profile/view', views.user_detail, name='user_detail'),
path('leaderboard/', views.leaderboard, name='leaderboard'),
]
path('tutorial/', views.tutorial, name='tutorial'),
path('python/', views.tutorialpython, name='tutorialpython'),
path('cpp14/', views.tutorialcpp14, name='tutorialcpp14'),
path('go/', views.tutorialgo, name='tutorialgo')

]
15 changes: 15 additions & 0 deletions user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,20 @@ def leaderboard(request):
p = User_profile.objects.order_by("-n_subm")
users = {"user":p}
return render(request,"leaderboard.html",users)
#Added by sahil
def tutorial(request):
return render(request,"tutorial.html")


def tutorialpython(request):
return render(request, "python.html")

def tutorialcpp14(request):
return render(request, "cpp14.html")


def tutorialgo(request):
return render(request, "go.html")