mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
exibindo dados do banco no html
This commit is contained in:
@@ -1,15 +1,36 @@
|
||||
{% load static %}
|
||||
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="pt-BR">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="{% static 'base.css' %}">
|
||||
{% block 'head' %}{% endblock %}
|
||||
<title> {% block 'title' %}{% endblock %} </title>
|
||||
</head>
|
||||
<div>aqui o menu</div>
|
||||
<div>
|
||||
|
||||
aqui o menu
|
||||
|
||||
<div class="sidebar">
|
||||
<ul>
|
||||
<li><a href="#">Home</a></li>
|
||||
<li><a href="{% url 'mesas' %}">Mesas</a></li>
|
||||
<li><a href="#">Comandas</a></li>
|
||||
<li><a href="{% url 'products' %}">Produtos</a></li>
|
||||
<li><a href="#">Categorias</a></li>
|
||||
<li><a href="#">Sobre</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="content">
|
||||
<h1>Bem-vindo ao meu site!</h1>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<body>
|
||||
{% block 'body' %}
|
||||
{% endblock %}
|
||||
|
||||
35
gestaoRaul/templates/static/base.css
Normal file
35
gestaoRaul/templates/static/base.css
Normal file
@@ -0,0 +1,35 @@
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
height: 100vh;
|
||||
width: 200px;
|
||||
background-color: #f1f1f1;
|
||||
padding: 20px;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.content {
|
||||
margin-left: 220px; /* Ajustar para a largura da sidebar + padding */
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
li a {
|
||||
display: block;
|
||||
padding: 15px;
|
||||
text-decoration: none;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
li a:hover {
|
||||
background-color: #ccc;
|
||||
}
|
||||
Reference in New Issue
Block a user