projecto completo creo, me quedo bonito :3

This commit is contained in:
Daniel Cortés
2019-04-17 12:36:31 -04:00
commit 3c55ad2713
17 changed files with 1356 additions and 0 deletions

31
templates/base.qtpl Normal file
View File

@@ -0,0 +1,31 @@
{% interface PageImpl {
Title()
Stylesheets()
Scripts()
Body()
}
%}
{% func Page(p PageImpl) %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<title>{%= p.Title() %}</title>
{%= p.Stylesheets() %}
{%= p.Scripts() %}
</head>
<body>
{%= p.Body() %}
</body>
</html>
{% endfunc %}
{% func GetDoneButton(done bool) %}
{% if done %}
<input type="submit" class="button-primary button-green u-full-width" value="">
{% else %}
<input type="submit" class="button-primary button-red u-full-width" value="">
{% endif %}
{% endfunc %}