Skip to content

Commit

Permalink
Cria layout base e faz index extendê-lo
Browse files Browse the repository at this point in the history
  • Loading branch information
brnocesar committed Nov 7, 2020
1 parent ab93b6e commit 136f8d5
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 37 deletions.
42 changes: 42 additions & 0 deletions apps/receitas/templates/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{% load static %}
<!DOCTYPE html>
<html lang="pt-br">

<head>
<meta charset="UTF-8">
<meta name="description" content="">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- The above 4 meta tags *must* come first in the head; any other head content must come *after* these tags -->

<!-- Título -->
<title>Alura Receitas</title>

<!-- Favicon -->
<link rel="icon" href="{% static 'img/core-img/favicon.ico' %}">

<!-- Stylesheet -->
<link rel="stylesheet" href="{% static 'site.css' %}">

</head>

<body>


{% block content %} {% endblock %}


<!-- ##### All Javascript Files ##### -->
<!-- jQuery-2.2.4 js -->
<script src="{% static 'js/jquery/jquery-2.2.4.min.js' %}"></script>
<!-- Popper js -->
<script src="{% static 'js/bootstrap/popper.min.js' %}"></script>
<!-- Bootstrap js -->
<script src="{% static 'js/bootstrap/bootstrap.min.js' %}"></script>
<!-- All Plugins js -->
<script src="{% static 'js/plugins/plugins.js' %}"></script>
<!-- Active js -->
<script src="{% static 'js/active.js' %}"></script>
</body>

</html>
40 changes: 3 additions & 37 deletions apps/receitas/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,6 @@
{% extends 'base.html' %}
{% load static %}
<!DOCTYPE html>
<html lang="pt-br">

<head>
<meta charset="UTF-8">
<meta name="description" content="">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- The above 4 meta tags *must* come first in the head; any other head content must come *after* these tags -->

<!-- Título -->
<title>Alura Receitas</title>

<!-- Favicon -->
<link rel="icon" href="{% static 'img/core-img/favicon.ico' %}">

<!-- Stylesheet -->
<link rel="stylesheet" href="{% static 'site.css' %}">

</head>

<body>
{% block content %}
<!-- Preloader -->
<div id="preloader">
<i class="circle-preloader"></i>
Expand Down Expand Up @@ -186,18 +166,4 @@ <h5>Nome da receita</h5>
</div>
</footer>
<!-- ##### Footer Area Start ##### -->

<!-- ##### All Javascript Files ##### -->
<!-- jQuery-2.2.4 js -->
<script src="{% static 'js/jquery/jquery-2.2.4.min.js' %}"></script>
<!-- Popper js -->
<script src="{% static 'js/bootstrap/popper.min.js' %}"></script>
<!-- Bootstrap js -->
<script src="{% static 'js/bootstrap/bootstrap.min.js' %}"></script>
<!-- All Plugins js -->
<script src="{% static 'js/plugins/plugins.js' %}"></script>
<!-- Active js -->
<script src="{% static 'js/active.js' %}"></script>
</body>

</html>
{% endblock %}

0 comments on commit 136f8d5

Please sign in to comment.