Added Grunt for compiling CSS/JS; added start of Result controller
This commit is contained in:
@ -4,6 +4,16 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<p>This is a test.</p>
|
||||
<div class="row">
|
||||
<div class="twelve columns">
|
||||
<h1>Welcome to Colossus!</h1>
|
||||
<p>Using Colossus, you can easily organize your hardware benchmark results.</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<p><a href="{{ url_for('result.list') }}">View saved results</a></p>
|
||||
<p><a href="{{ url_for('result.add') }}">Add a new result</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
@ -4,8 +4,17 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}{% endblock %} | Colossus</title>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css">
|
||||
<link rel="stylesheet" href="/css/nardah.css">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
|
||||
<script src="/js/bedabin.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
{% block content %}{% endblock %}
|
||||
{% include 'layout/navbar.twig' %}
|
||||
|
||||
<div id="main-wrapper" class="container">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
9
views/layout/navbar.twig
Normal file
9
views/layout/navbar.twig
Normal file
@ -0,0 +1,9 @@
|
||||
<nav id="main-nav">
|
||||
|
||||
<ul class="nav-left">
|
||||
<li class="site-logo">Colossus</li>
|
||||
<li><a href="{{ url_for('dashboard') }}">Dashboard</a></li>
|
||||
<li><a href="/result">Results</a></li>
|
||||
</ul>
|
||||
|
||||
</nav>
|
54
views/result/add.twig
Normal file
54
views/result/add.twig
Normal file
@ -0,0 +1,54 @@
|
||||
{% extends 'layout.twig' %}
|
||||
|
||||
{% block title %}Add Benchmark Result{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="row">
|
||||
<div class="twelve columns">
|
||||
<h1>Add new benchmark result</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="twelve columns">
|
||||
<form action="{{ url_for('result.add') }}" method="POST" class="u-full-width">
|
||||
<div class="row">
|
||||
<div class="six columns">
|
||||
<label for="result_component">Hardware name:</label>
|
||||
<input type="text" id="result_component" class="u-full-width" name="result_component">
|
||||
</div>
|
||||
<div class="six columns">
|
||||
<label for="result_benchmark">Benchmark used:</label>
|
||||
<input type="text" id="result_benchmark" class="u-full-width" name="result_benchmark">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="six columns">
|
||||
<label for="result_type">Score type:</label>
|
||||
<select id="result_type" class="u-full-width" name="result_type">
|
||||
<option value="fps">Frames per second</option>
|
||||
<option value="points">Point value</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="two columns">
|
||||
<label for="result_avg">Average:</label>
|
||||
<input type="number" id="result_avg" class="u-full-width" name="result_avg">
|
||||
</div>
|
||||
<div class="two columns">
|
||||
<label for="result_min">Minimum:</label>
|
||||
<input type="number" id="result_min" class="u-full-width" name="result_min">
|
||||
</div>
|
||||
<div class="two columns">
|
||||
<label for="result_max">Maximum:</label>
|
||||
<input type="number" id="result_max" class="u-full-width" name="result_max">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input class="button button-primary" type="submit" value="Submit">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
7
views/result/list.twig
Normal file
7
views/result/list.twig
Normal file
@ -0,0 +1,7 @@
|
||||
{% extends 'layout.twig' %}
|
||||
|
||||
{% block title %}List of Results{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>Results list...</p>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user