build0004

This commit is contained in:
Hell13Cat
2021-12-29 00:17:28 +03:00
parent 3d613c0267
commit f2acdc4140
5 changed files with 127 additions and 0 deletions
+12
View File
@@ -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!'
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 770 KiB

+10
View File
@@ -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;
}
}
+79
View File
@@ -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%;
}
}
+26
View File
@@ -0,0 +1,26 @@
<html>
<head>
<title>Nyako Page</title>
<link rel="stylesheet" href="style.css">
<meta name="viewport" content="width=device-width">
<!--
<meta name="viewport" content="height=device-height">
<meta name="viewport" content="user-scalable=yes">
-->
</head>
<body>
<div id="maindiv">
<img src="./static/head2.png" alt="Head Image">
<div id="bodydiv">
<div class="titlediv">
<h1><code>Local Search Engine</code></h1>
</div>
<div class="contentdiv">
<div id="lista">
</div>
</div>
</div>
</div>
</body>
</html>