Commit 1f47f006 authored by Kirby Ezekiel Santos's avatar Kirby Ezekiel Santos

Added the pages for the heroes

parent 4a8109c4
...@@ -2,7 +2,13 @@ from django.contrib import admin ...@@ -2,7 +2,13 @@ from django.contrib import admin
from django.urls import path from django.urls import path
from .views import go_to_home_page from .views import go_to_home_page
from .views import go_to_cloud_page
from .views import go_to_jester_page
from .views import go_to_sunflowey_page
urlpatterns = [ urlpatterns = [
path('heroes', go_to_home_page), path('heroes', go_to_home_page),
path('hero/cloud', go_to_cloud_page),
path('hero/jester', go_to_jester_page),
path('hero/sunflowey', go_to_sunflowey_page),
] ]
...@@ -3,3 +3,12 @@ from django.shortcuts import render ...@@ -3,3 +3,12 @@ from django.shortcuts import render
# Create your views here. # Create your views here.
def go_to_home_page(request): def go_to_home_page(request):
return render(request, "willowisp_home_page.html") return render(request, "willowisp_home_page.html")
def go_to_cloud_page(request):
return render(request, "detail_cloud.html")
def go_to_jester_page(request):
return render(request, "detail_jester.html")
def go_to_sunflowey_page(request):
return render(request, "detail_sunflowey.html")
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>Detail - Cloud</title> <title id = "cloudTitle">Detail - Cloud</title>
</head> </head>
<body> <body>
<img src="./cloud.png" style="width: 10vw;" /> <img src="./cloud.png" style="width: 10vw;" />
<h1>Detail - Cloud</h1> <h1 id = "cloudHeader">Detail - Cloud</h1>
<dl> <dl>
<dt>Health Points</dt><dd>600</dd> <dt>Health Points</dt><dd>600</dd>
<dt>Base Attack Damage</dt><dd>57</dd> <dt>Base Attack Damage</dt><dd>57</dd>
......
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>Detail - Jester</title> <title id = "jesterTitle">Detail - Jester</title>
</head> </head>
<body> <body>
<img src="./jester.png" style="width: 10vw;"/> <img src="./jester.png" style="width: 10vw;"/>
<h1>Detail - Jester</h1> <h1 id = "jesterHeader">Detail - Jester</h1>
<dl> <dl>
<dt>Health Points</dt><dd>660</dd> <dt>Health Points</dt><dd>660</dd>
<dt>Base Attack Damage</dt><dd>64</dd> <dt>Base Attack Damage</dt><dd>64</dd>
......
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>Detail - Sunflowey</title> <title id = "sunfloweyTitle">Detail - Sunflowey</title>
</head> </head>
<body> <body>
<img src="./sunflowey.png" style="width: 10vw;" /> <img src="./sunflowey.png" style="width: 10vw;" />
<h1>Detail - Sunflowey</h1> <h1 id = sunfloweyHeader>Detail - Sunflowey</h1>
<dl> <dl>
<dt>Health Points</dt><dd>650</dd> <dt>Health Points</dt><dd>650</dd>
<dt>Base Attack Damage</dt><dd>43</dd> <dt>Base Attack Damage</dt><dd>43</dd>
......
...@@ -9,21 +9,21 @@ ...@@ -9,21 +9,21 @@
<br> <br>
<img src="./cloud.png" style="width: 10vw;" /> <img src="./cloud.png" style="width: 10vw;" />
<h2 id = "cloudName">Cloud</h2> <a href = "hero/cloud"><h2 id = "cloudName">Cloud</h2></a>
<dl> <dl>
<dt>Health Points</dt><dd id = "cloudHealth">600</dd> <dt>Health Points</dt><dd id = "cloudHealth">600</dd>
<dt>Base Attack Damage</dt><dd id = "cloudAttack">57</dd> <dt>Base Attack Damage</dt><dd id = "cloudAttack">57</dd>
</dl> </dl>
<img src="./jester.png" style="width: 10vw;"/> <img src="./jester.png" style="width: 10vw;"/>
<h2 id = "jesterName">Jester</h2> <a href = "hero/jester"><h2 id = "jesterName">Jester</h2></a>
<dl> <dl>
<dt>Health Points</dt><dd id = "jesterHealth">660</dd> <dt>Health Points</dt><dd id = "jesterHealth">660</dd>
<dt>Base Attack Damage</dt><dd id = "jesterAttack">64</dd> <dt>Base Attack Damage</dt><dd id = "jesterAttack">64</dd>
</dl> </dl>
<img src="./sunflowey.png" style="width: 10vw;" /> <img src="./sunflowey.png" style="width: 10vw;" />
<h2 id = "sunfloweyName">Sunflowey</h2> <a href = "hero/sunflowey"><h2 id = "sunfloweyName">Sunflowey</h2></a>
<dl> <dl>
<dt>Health Points</dt><dd id = "sunfloweyHealth">650</dd> <dt>Health Points</dt><dd id = "sunfloweyHealth">650</dd>
<dt>Base Attack Damage</dt><dd id = "sunfloweyAttack">43</dd> <dt>Base Attack Damage</dt><dd id = "sunfloweyAttack">43</dd>
......
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