Skip to content

Commit 4f9b0c3

Browse files
edit layout
1 parent 7f731c0 commit 4f9b0c3

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

hello_app/templates/layout.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<title>{% block title %}{% endblock %}</title>
6+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
67
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='site.css') }}" />
78
</head>
89

hello_app/templates/translator.html

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
7-
<title>Translator</title>
8-
</head>
9-
<body>
1+
{% extends "layout.html" %}
2+
{% block title %}
3+
Translator
4+
{% endblock %}
5+
{% block content %}
106
<div class="container">
117
<h1>Translation service</h1>
128
<div>Enter the text you wish to translate, choose the language, and click Translate!</div>
@@ -31,5 +27,4 @@ <h1>Translation service</h1>
3127
</form>
3228
</div>
3329
</div>
34-
</body>
35-
</html>
30+
{% endblock %}

0 commit comments

Comments
 (0)