Commit 4d9d53a4 authored by phatiphan.th.63's avatar phatiphan.th.63

project

parent 659ea8cb
No preview for this file type
...@@ -4,9 +4,15 @@ ...@@ -4,9 +4,15 @@
{% include 'nav.html' %} {% include 'nav.html' %}
<div class="mt-20 ml-20"> <div class=" ml-20 flex justify-center">
<img src="https://cdn0.iconfinder.com/data/icons/kameleon-free-pack-rounded/110/Food-Dome-512.png"> <div class="items-center w-2/5 p-0">
<img src="https://i.pinimg.com/564x/49/06/77/49067783452e26c7ca6d4c352dc54091.jpg">
</div>
<div class="w-3/5 mr-20">
<h1 class="text-4xl text-blue-900 mt-40 "></h1>
<h2 class="m-2 text-2xl"></h2>
<p class="mt-2 ml-4">
</div>
</div> </div>
{% endblock %} {% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% block main %}
{% include 'nav.html' %}
{% endblock %}
\ No newline at end of file
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<a href="/" class="text-gray-900 dark:text-black hover:underline" aria-current="page">หน้าหลัก</a> <a href="/" class="text-gray-900 dark:text-black hover:underline" aria-current="page">หน้าหลัก</a>
</li> </li>
<li> <li>
<a href="/" class="text-gray-900 dark:text-black hover:underline">รายการอาหาร</a> <a href="/menu" class="text-gray-900 dark:text-black hover:underline">รายการอาหาร</a>
</li> </li>
<li> <li>
<a href="/contact" class="text-gray-900 dark:text-black hover:underline">เกี่ยวกับเรา</a> <a href="/contact" class="text-gray-900 dark:text-black hover:underline">เกี่ยวกับเรา</a>
......
...@@ -7,6 +7,7 @@ from myapp.models import Post ...@@ -7,6 +7,7 @@ from myapp.models import Post
urlpatterns = [ urlpatterns = [
path("",views.home), path("",views.home),
path("index",views.index,name="index"), path("index",views.index,name="index"),
path('menu',views.menu,name='menu'),
path("login",views.login,name="login"), path("login",views.login,name="login"),
path('logout',views.logout,name="logout"), path('logout',views.logout,name="logout"),
path('userlogin',views.userlogin,name='userlogin'), path('userlogin',views.userlogin,name='userlogin'),
......
...@@ -21,6 +21,8 @@ def index(req): ...@@ -21,6 +21,8 @@ def index(req):
def contact(req): def contact(req):
return render(req,'contact.html') return render(req,'contact.html')
def menu(req):
return render(req,'menu.html')
def login(request): def login(request):
return render(request,'account/login.html') return render(request,'account/login.html')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment