Skip to content

Commit 1e6725a

Browse files
bot homepage and styles
1 parent 0e3fb1e commit 1e6725a

File tree

4 files changed

+66
-2
lines changed

4 files changed

+66
-2
lines changed

system/routes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
from flask import Blueprint
1+
from flask import Blueprint, render_template
22

33

44
system_blueprint = Blueprint('system_routes', __name__)
55

66

77
@system_blueprint.route('/')
88
def index():
9-
return 'It works'
9+
return render_template('system/index.html')

system/static/bootstrap.min.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

system/templates/base.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>
6+
{% block title %}
7+
Mathematician Bot
8+
{% endblock %}
9+
</title>
10+
{% block stylesheet %}
11+
<link rel="stylesheet" href="{{ url_for('static', filename='bootstrap.min.css') }}">
12+
{% endblock %}
13+
</head>
14+
<body>
15+
{% block navbar %}
16+
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
17+
<div class="container">
18+
<a class="navbar-brand" href="{{ url_for('system_routes.index') }}">
19+
Mathematician Bot
20+
</a>
21+
22+
<div class="collapse navbar-collapse" id="base-navbar">
23+
<ul class="navbar-nav mr-auto">
24+
<li class="nav-item">
25+
<a class="nav-link" href="{{ url_for('system_routes.index') }}">
26+
Web
27+
</a>
28+
</li>
29+
<li class="nav-item">
30+
<a class="nav-link" href="https://t.me/clever_mathematician_bot">
31+
Telegram
32+
</a>
33+
</li>
34+
<li class="nav-item">
35+
<a class="nav-link disabled" href="#">
36+
VK
37+
</a>
38+
</li>
39+
</div>
40+
</div>
41+
</nav>
42+
{% endblock %}
43+
{% block content %}
44+
{% endblock %}
45+
</body>
46+
</html>

system/templates/system/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{% extends 'base.html' %}
2+
3+
{% block title %}
4+
Mathematician Bot Homepage
5+
{% endblock %}
6+
7+
{% block content %}
8+
<div class="container pt-3">
9+
<h1>Bot homepage</h1>
10+
</div>
11+
{% endblock %}

0 commit comments

Comments
 (0)