feat: Initial commit
This commit is contained in:
43
Resources/Views/loggedIn.leaf
Normal file
43
Resources/Views/loggedIn.leaf
Normal file
@@ -0,0 +1,43 @@
|
||||
#extend("main"):
|
||||
#export("body"):
|
||||
<div class="center">
|
||||
<h1>Welcome #capitalized(name)</h1>
|
||||
<p>
|
||||
Please add your pro's and cons during the talk to the list below.
|
||||
</p>
|
||||
<p>
|
||||
<small>You can add as many pros and cons as you would like.</small>
|
||||
</p>
|
||||
<form id="proconForm" action="submitProOrCon">
|
||||
<select id="type", name="type">
|
||||
<option value="pro">Pro</option>
|
||||
<option value="con">Con</option>
|
||||
</select>
|
||||
<br>
|
||||
<br>
|
||||
<label for="description">Description:</label>
|
||||
<br>
|
||||
<input type="text" id="description" name="description" required>
|
||||
<br>
|
||||
<br>
|
||||
<input class="loginButton" type="submit" value="Submit">
|
||||
</form>
|
||||
</div>
|
||||
<div class="pros">
|
||||
<p class="listHeader">Pros - <small>Count: #count(pros)</small></p>
|
||||
<ul>
|
||||
#for(item in pros):
|
||||
<li>#(item.description)</li>
|
||||
#endfor
|
||||
</ul>
|
||||
</div>
|
||||
<div class="cons">
|
||||
<p class="listHeader">Cons - <small>Count: #count(cons)</small></p>
|
||||
<ul>
|
||||
#for(item in cons):
|
||||
<li>#(item.description)</li>
|
||||
#endfor
|
||||
</ul>
|
||||
</div>
|
||||
#endexport
|
||||
#endextend
|
||||
16
Resources/Views/login.leaf
Normal file
16
Resources/Views/login.leaf
Normal file
@@ -0,0 +1,16 @@
|
||||
#extend("main"):
|
||||
#export("body"):
|
||||
<div class="center">
|
||||
<h1>Welcome to chiller Pro vs. Cons</h1>
|
||||
<p style="font-size: 12px;">Enter your display name below to get started!</p>
|
||||
<form id="loginForm" action="login">
|
||||
<label for="displayName">Display Name:</label>
|
||||
<br>
|
||||
<input type="text" id="displayName" name="displayName" placeholder="Name" required>
|
||||
<br>
|
||||
<br>
|
||||
<input type="submit" value="Submit" class="loginButton">
|
||||
</form>
|
||||
</div>
|
||||
#endexport
|
||||
#endextend
|
||||
15
Resources/Views/main.leaf
Normal file
15
Resources/Views/main.leaf
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Chiller Pro vs. Cons</title>
|
||||
<link rel="stylesheet" href="styles/site.css">
|
||||
<script src="js/site.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header><h1>Chiller Pro vs. Cons<h1></header>
|
||||
#import("body")
|
||||
<footer>
|
||||
<span>2025 Symposium</span>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user