feat(layout): updates layout styling

This commit is contained in:
2024-11-05 00:22:48 -03:00
parent 2eb6de9df0
commit 2b43da4504
2 changed files with 44 additions and 27 deletions

14
app/static/css/styles.css Normal file
View File

@@ -0,0 +1,14 @@
body {
display: block;
height: 100vh;
}
.app {
display: flex;
flex-direction: column;
height: 100%;
}
.content {
flex-grow: 1;
}

View File

@@ -9,9 +9,11 @@
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}"> <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous" defer></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous" defer></script>
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
{% endblock %} {% endblock %}
</head> </head>
<body> <body>
<div class="app">
<header class="container-fluid"> <header class="container-fluid">
<div class="row"> <div class="row">
<div class="col-9 col-sm-10 col-md-2"> <div class="col-9 col-sm-10 col-md-2">
@@ -37,11 +39,12 @@
</div> </div>
</div> </div>
</header> </header>
<div id="content">{% block content %}{% endblock %}</div> <div id="content" class="content">{% block content %}{% endblock %}</div>
<div id="footer"> <div id="footer" class="footer">
{% block footer %} {% block footer %}
&copy; Copyright 2010 by <a href="http://domain.invalid/">you</a>. &copy; Copyright 2010 by <a href="http://domain.invalid/">you</a>.
{% endblock %} {% endblock %}
</div> </div>
</div>
</body> </body>
</html> </html>