-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.html
More file actions
101 lines (98 loc) · 5.02 KB
/
base.html
File metadata and controls
101 lines (98 loc) · 5.02 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LaunchFund</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.css" rel="stylesheet">
<link href="{{ url_for('static', filename='css/style.css') }}" rel="stylesheet">
<style>
.navbar-brand {
display: flex;
align-items: center;
gap: 0.5rem;
}
.brand-logo {
width: 32px;
height: 32px;
}
</style>
</head>
<body class="bg-dark">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container">
<a class="navbar-brand" href="{{ url_for('main.index') }}">
<svg class="brand-logo" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 2L2 7L12 12L22 7L12 2Z" stroke="#0d6efd" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M2 17L12 22L22 17" stroke="#0d6efd" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M2 12L12 17L22 12" stroke="#0d6efd" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
LaunchFund
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto align-items-center">
{% if current_user.is_authenticated %}
<li class="nav-item me-3">
<span class="nav-link">
<i data-feather="user" class="me-2"></i>
{{ current_user.first_name }} {{ current_user.surname }}
</span>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown">
Menu
</a>
<ul class="dropdown-menu dropdown-menu-dark">
<li><a class="dropdown-item py-2" href="{{ url_for('analytics.dashboard') }}">
<i data-feather="bar-chart-2" class="me-2" style="width: 18px; height: 18px;"></i>Dashboard</a>
</li>
<li><a class="dropdown-item py-2" href="{{ url_for('main.index') }}">
<i data-feather="plus-circle" class="me-2" style="width: 18px; height: 18px;"></i>Start Campaign</a>
</li>
<li><a class="dropdown-item py-2" href="{{ url_for('profile.view_profile') }}">
<i data-feather="user" class="me-2" style="width: 18px; height: 18px;"></i>Profile</a>
</li>
<li><hr class="dropdown-divider my-2"></li>
<li><a class="dropdown-item py-2" href="{{ url_for('auth.logout') }}">
<i data-feather="log-out" class="me-2" style="width: 18px; height: 18px;"></i>Logout</a>
</li>
</ul>
</li>
{% else %}
<li class="nav-item">
<a class="nav-link px-3" href="{{ url_for('auth.login') }}">Login</a>
</li>
<li class="nav-item">
<a class="nav-link px-3" href="{{ url_for('auth.register') }}">Register</a>
</li>
{% endif %}
</ul>
</div>
</div>
</nav>
<main class="container py-4">
{% with messages = get_flashed_messages() %}
{% if messages %}
{% for message in messages %}
<div class="alert alert-info">{{ message }}</div>
{% endfor %}
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
</main>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://js.stripe.com/v3/"></script>
<script src="{{ url_for('static', filename='js/main.js') }}"></script>
{% block extra_scripts %}{% endblock %}
<script>
// Initialize Feather icons
feather.replace();
</script>
</body>
</html>