-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.html
49 lines (48 loc) · 1.63 KB
/
base.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flask App</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
display: flex;
background: url("/static/images/background.g") no-repeat center center fixed;
background-size: cover;
margin: 0;
padding: 0;
height: 100vh;
}
.sidebar {
width: 250px;
height: 100vh;
position: fixed;
background-color: rgba(248, 249, 250, 0.8); /* Semi-transparent background */
padding-top: 20px;
}
.content {
margin-left: 250px;
padding: 20px;
flex-grow: 1;
}
</style>
</head>
<body>
<div class="sidebar">
<nav class="nav flex-column">
<a class="nav-link active" href="{{ url_for('index') }}">Home</a>
<a class="nav-link" href="{{ url_for('about') }}">About Us</a>
<a class="nav-link" href="{{ url_for('contact') }}">Contact Us</a>
</nav>
</div>
<div class="content">
<div class="container">
{% block content %}{% endblock %}
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</body>
</html>