added list.html

This commit is contained in:
DerTyp187
2021-11-09 20:25:26 +01:00
parent 0c93c2e232
commit 0e6ecbe284
4 changed files with 39 additions and 0 deletions

View File

@@ -18,6 +18,8 @@
<body>
<header>
<h1>TealFire</h1>
<div></div>
</header>
<main>
<div id="main-content">

View File

@@ -0,0 +1,33 @@
{% extends "main/base.html" %}
{% block content %}
<div id="list">
<div class="list-item">
<img src="c_icon.png"/>
<p>How To 1 in c</p>
</div>
<div class="list-item">
<img src="c_icon.png"/>
<p>How To 1 in c</p>
</div>
<div class="list-item">
<img src="c_icon.png"/>
<p>How To 1 in c</p>
</div>
<div class="list-item">
<img src="c_icon.png"/>
<p>How To 1 in c</p>
</div>
<div class="list-item">
<img src="c_icon.png"/>
<p>How To 1 in c</p>
</div>
<div class="list-item">
<img src="c_icon.png"/>
<p>How To 1 in c</p>
</div>
<div class="list-item">
<img src="c_icon.png"/>
<p>How To 1 in c</p>
</div>
</div>
{% endblock content %}

View File

@@ -3,4 +3,5 @@ from . import views
urlpatterns = [
path('', views.index, name="main-index"),
path('list/', views.list, name="main-list"),
]

View File

@@ -2,3 +2,6 @@ from django.shortcuts import render
def index(req):
return render(req, "main/index.html")
def list(req):
return render(req, "main/list.html")