mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-04-16 10:16:22 +02:00
Copied template structure from coding challenge test
This commit is contained in:
parent
bbf4b7d4d3
commit
e466bb9e05
@ -1,12 +1,17 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<title>
|
||||||
<title>{% block title %}Welcome!{% endblock %}</title>
|
{% block title %}Online Shop{% endblock %}
|
||||||
{% block stylesheets %}{% endblock %}
|
</title>
|
||||||
</head>
|
<!--bootstrap and animation components-->
|
||||||
<body>
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B" crossorigin="anonymous">
|
||||||
|
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
||||||
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/js/bootstrap.min.js" integrity="sha384-o+RDsa0aLu++PJvFqy8fFScvbHFLtbvScb8AjopnFD+iEQ7wo/CG0xlczd+2O/em" crossorigin="anonymous"></script>
|
||||||
|
<!-- mobile friendly -->
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
{% block body %}{% endblock %}
|
{% block body %}{% endblock %}
|
||||||
{% block javascripts %}{% endblock %}
|
</body>
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
||||||
|
9
application/templates/frames/default.html.twig
Normal file
9
application/templates/frames/default.html.twig
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{% extends "base.html.twig" %}
|
||||||
|
{% block body %}
|
||||||
|
{% include 'frames/structure/navbar.html.twig' with menu_items %}
|
||||||
|
<br />
|
||||||
|
<div class="container">
|
||||||
|
{% block content %}
|
||||||
|
{% endblock %}
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
6
application/templates/frames/exception.html.twig
Normal file
6
application/templates/frames/exception.html.twig
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{% extends "frames/default.html.twig" %}
|
||||||
|
{% set menu_items = [] %}
|
||||||
|
{% block content %}
|
||||||
|
<h1>Error!</h1>
|
||||||
|
<p>{{ message }}</p>
|
||||||
|
{% endblock %}
|
35
application/templates/frames/structure/navbar.html.twig
Normal file
35
application/templates/frames/structure/navbar.html.twig
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||||
|
<a class="navbar-brand" href="/">infinito</a>
|
||||||
|
<button class="navbar-toggler" type="button" data-toggle="collapse"
|
||||||
|
data-target="#navbarSupportedContent"
|
||||||
|
aria-controls="navbarSupportedContent" aria-expanded="false"
|
||||||
|
aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
|
<ul class="navbar-nav mr-auto">
|
||||||
|
{% for item in menu_items %}
|
||||||
|
{% if item.name %}
|
||||||
|
{% if item.url %}
|
||||||
|
<li class="nav-item {% if item.active %}active{% endif %}"><a
|
||||||
|
class="nav-link" href="{{ item.url }}"> {{ item.name }}
|
||||||
|
</a></li>
|
||||||
|
{% elseif item.toArray %}
|
||||||
|
<li class="nav-item dropdown"><a
|
||||||
|
class="nav-link dropdown-toggle" href="#" id="navbarDropdown"
|
||||||
|
role="button" data-toggle="dropdown" aria-haspopup="true"
|
||||||
|
aria-expanded="false"> {{ item.name }}
|
||||||
|
</a>
|
||||||
|
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||||
|
{%for link in item %}
|
||||||
|
<a class="dropdown-item {% if link.active %}active{% endif %}"
|
||||||
|
href="{{ link.url }}"> {{ link.name }}
|
||||||
|
</a>
|
||||||
|
{% endfor %}
|
||||||
|
</div></li>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</nav>
|
7
application/templates/standard/homepage.html.twig
Normal file
7
application/templates/standard/homepage.html.twig
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{% extends "frames/default.html.twig" %}
|
||||||
|
{% block title %}
|
||||||
|
Homepage
|
||||||
|
{% endblock %}
|
||||||
|
{% block content %}
|
||||||
|
<h2>Welcome to infinito!</h2>
|
||||||
|
{% endblock %}
|
20
application/templates/user/login.html.twig
Normal file
20
application/templates/user/login.html.twig
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{% extends "frames/default.html.twig" %}
|
||||||
|
{% block title %}
|
||||||
|
login
|
||||||
|
{% endblock %}
|
||||||
|
{% block content %}
|
||||||
|
<h1>Login</h1>
|
||||||
|
<form method='post'>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="email">Email address</label> <input type="email"
|
||||||
|
name="email" class="form-control" id="email"
|
||||||
|
aria-describedby="emailHelp" placeholder="Enter email">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="password">Password</label> <input type="password"
|
||||||
|
name="password" class="form-control" id="password"
|
||||||
|
placeholder="Password">
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="btn btn-primary">Submit</button>
|
||||||
|
</form>
|
||||||
|
{% endblock %}
|
25
application/templates/user/register.html.twig
Normal file
25
application/templates/user/register.html.twig
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{% extends "frames/default.html.twig" %}
|
||||||
|
{% block title %}
|
||||||
|
register
|
||||||
|
{% endblock %}
|
||||||
|
{% block content %}
|
||||||
|
<h1>Register</h1>
|
||||||
|
<form method="post">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="email">Email address</label> <input type="email"
|
||||||
|
class="form-control" id="email" aria-describedby="emailHelp"
|
||||||
|
name="email" placeholder="Enter email">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="name">Username</label> <input type="email"
|
||||||
|
class="form-control" id="name" aria-describedby="emailHelp"
|
||||||
|
name="name" placeholder="Enter Username">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="password">Password</label> <input type="password"
|
||||||
|
class="form-control" id="password" name="password"
|
||||||
|
placeholder="Password">
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="btn btn-primary">Submit</button>
|
||||||
|
</form>
|
||||||
|
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user