diff --git a/server.py b/server.py new file mode 100644 index 0000000..475e996 --- /dev/null +++ b/server.py @@ -0,0 +1,12 @@ +from flask import Flask, render_template + +app = Flask(__name__) + + +@app.route('/') +def hello(): + return render_template('index.html') + +@app.route('/static') +def hello(): + return 'Hello, World!' \ No newline at end of file diff --git a/static/head2.png b/static/head2.png new file mode 100644 index 0000000..7293de9 Binary files /dev/null and b/static/head2.png differ diff --git a/static/script.js b/static/script.js new file mode 100644 index 0000000..ee99815 --- /dev/null +++ b/static/script.js @@ -0,0 +1,10 @@ +function adapt() { + if(/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)){ + var ytvid = document.querySelector('#ytvid'); + var widthScreen = document.documentElement.clientWidth + var widthVid = Math.round(widthScreen / 100 * 80) + "px"; + var heightVid = Math.round((widthScreen / 100 * 80) / 1280 * 720) + "px"; + ytvid.width = widthVid; + ytvid.height = heightVid; + } + } \ No newline at end of file diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..d19e84a --- /dev/null +++ b/static/style.css @@ -0,0 +1,79 @@ +body { + text-align: center; + color: white; + background-color: #0e0e0e; + margin-top: 0px; + margin-bottom: 0px; + margin-left: 0px; + margin-right: 0px; +} + +summary { + color: deeppink; +} + +hr { + color: #ffffff; +} + +img { + width: 100%; +} + +ul { + list-style-position: inside; +} + +a { + color: deeppink; /* Цвет ссылок */ +} +a:visited { + color: purple; /* Цвет посещенных ссылок */ +} +a:active { + color: pink; /* Цвет активных ссылок */ +} + +#lista { + text-align: left; +} + +#bodydiv { + margin-left: 2%; + margin-right: 2%; + height: 100%; +} + +.titlediv { + /* NULL */ +} + +.contentdiv { + /* NULL */ +} + +.copyright { + bottom: 1em; + right: 1em; + text-align: center; + } + +#maindiv { + background-color: black; + margin-top: 0px; +} +@media only screen and (min-width : 801px) { + #maindiv { + width: 60%; + margin-left: 20%; + margin-right: 20%; + } +} + +@media only screen and (max-width : 800px) { + #maindiv { + width: 100%; + margin-left: 0%; + margin-right: 0%; + } +} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..8a4d17b --- /dev/null +++ b/templates/index.html @@ -0,0 +1,26 @@ + + + Nyako Page + + + + + +
+ Head Image +
+
+

Local Search Engine

+
+
+
+ +
+
+
+
+ + \ No newline at end of file