feat: Initial commit

This commit is contained in:
2024-12-31 17:02:29 -05:00
parent bb568ba60e
commit 8dba393267
21 changed files with 1881 additions and 63 deletions

View 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

View 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
View 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>