Made the home page more responsive

This commit is contained in:
xemeds
2020-07-19 16:51:54 +00:00
parent 16f562441d
commit 0cddb3e4a6
3 changed files with 48 additions and 40 deletions
+25 -22
View File
@@ -1,30 +1,36 @@
body { * {
margin: 0; margin: 0;
padding: 0; padding: 0;
font-family: sans-serif; font-family: sans-serif;
background: #121212;
} }
.form { body {
background: #2c2c2c; background: #121212;
border-radius: 15px;
padding: 7% 0; }
position: absolute;
width: 85%; .container {
top: 30%; background-color: #2c2c2c;
left: 50%; border-radius: 8px;
transform: translate(-50%,-50%); padding: 30px 0px;
text-align: center; box-shadow: 0px 10px 20px #000000;
width: 80vw;
height: auto;
margin: 10% auto 0 auto;
}
.inputs {
display: flex;
justify-content: center;
} }
.url { .url {
background: #121212; background: #121212;
border: 2px solid #bb86fc; border: 2px solid #bb86fc;
border-radius: 5px;
padding: 2% 2%;
width: 50%;
margin-left: 2%;
color: #ffffff; color: #ffffff;
width: 60%;
padding: 10px 10px;
margin-left: 3%;
} }
.url:focus { .url:focus {
@@ -34,13 +40,10 @@ body {
.submit { .submit {
background: #bb86fc; background: #bb86fc;
border: 2px solid #bb86fc; border: 2px solid #bb86fc;
border-radius: 5px; border-radius: 3px;
padding: 1% 1%;
display: inline-block;
margin: 1% 1% 0px 1%;
color: #000000; color: #000000;
font-weight: bold; display: inline-block;
font-size: 120%; margin: 0 3% 0 1%;
} }
.submit:hover { .submit:hover {
+5 -1
View File
@@ -1,9 +1,13 @@
{% extends "layout.html" %} {% extends "layout.html" %}
{% block body %} {% block body %}
<form method="POST" action="" class="form"> <div class="container">
<form method="POST" action="">
{{ form.hidden_tag() }} {{ form.hidden_tag() }}
<div class="inputs">
{{ form.url(placeholder="Enter the URL here", class="url") }} {{ form.url(placeholder="Enter the URL here", class="url") }}
{{ form.submit(class="submit") }} {{ form.submit(class="submit") }}
</div>
</form> </form>
</div>
{% endblock %} {% endblock %}
+1
View File
@@ -2,6 +2,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="/static/style.css" rel="stylesheet" type="text/css"/> <link href="/static/style.css" rel="stylesheet" type="text/css"/>