mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2024-11-22 10:11:04 +01:00
Added default frame
This commit is contained in:
parent
2cefb4187c
commit
ceb83e20f1
@ -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 %}
|
||||
|
10
src/template/frames/default.html.twig
Normal file
10
src/template/frames/default.html.twig
Normal 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 %}
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user