Added default frame

This commit is contained in:
Kevin Frantz 2018-07-14 18:09:51 +02:00
parent 2cefb4187c
commit ceb83e20f1
3 changed files with 21 additions and 4 deletions

View File

@ -3,6 +3,13 @@
<title>
{% block title %}Online Shop{% endblock %}
</title>
<!--bootstrap and animation components-->
<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 %}

View File

@ -0,0 +1,10 @@
{% extends "base.html.twig" %}
{% block body %}
<div class="container">
<div class="page-header">
<h1>Online Shop</h1>
</div>
{% block content %}
{% endblock %}
</div>
{% endblock %}

View File

@ -1,3 +1,3 @@
{% extends "base.html.twig" %}
{% block title %}Online Shop{% endblock %}
{% block body %}Welcome to the online shop ;){% endblock %}
{% extends "frames/default.html.twig" %}
{% block title %}Homepage{% endblock %}
{% block content %}Welcome to the online shop ;){% endblock %}