Daoud Clarke 3 éve
szülő
commit
e4d2a45d6c
3 módosított fájl, 40 hozzáadás és 10 törlés
  1. 1 1
      app.py
  2. 31 0
      static/index.css
  3. 8 9
      static/index.html

+ 1 - 1
app.py

@@ -14,4 +14,4 @@ logging.basicConfig()
 
 
 if __name__ == "__main__":
-    uvicorn.run("app:app", host="127.0.0.1", port=8000, log_level="info")
+    uvicorn.run("app:app", host="127.0.0.1", port=8000, log_level="info", reload=True)

+ 31 - 0
static/index.css

@@ -0,0 +1,31 @@
+p {
+    font-size: 30px;
+}
+
+#container {
+  width: 2100px;
+  margin: 0 auto;
+}
+
+
+#search {
+    display: block;
+    width: 100%;
+
+    outline: none;
+
+    font-size: 50px;
+
+    border: 2px solid #ccc;
+    border-width: 4px;
+    border-radius: 50px;
+
+    padding-left: 25px;
+
+    margin-top: 50px;
+}
+
+a {
+    text-decoration: none;
+}
+

+ 8 - 9
static/index.html

@@ -1,21 +1,20 @@
 <html>
 <head>
 <title>Stoatally Different</title>
-<link rel="search"
+  <link href="/index.css" rel="stylesheet">
+  <link rel="search"
       type="application/opensearchdescription+xml"
       title="Stoatally Different"
       href="http://localhost:8000/plugin.xml">
-<script src="/index.js"></script>
+  <script src="/index.js"></script>
 </head>
 <body>
-Stoatally different.
-
-<form action="/search">
-  <input type="search" id="search" name="s" value="" autofocus/>
-</form>
-
-<div id="results">
+<div id="container">
+<!--  <form action="/search">-->
+    <input type="search" id="search" name="s" value="" autofocus/>
+<!--  </form>-->
 
+  <div id="results"></div>
 </div>
 </body>
 </html>