aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Borner2020-10-03 12:38:49 +0200
committerMarvin Borner2020-10-03 12:40:04 +0200
commit0fd8f61362403934550b360cbd65f1b41d66c870 (patch)
tree55e409e4a3a39808b79ae948a69c6128919caafd
parentd1944deec3dcd2154f8bb80dc5099cdcc8963e0d (diff)
Fixed frontend
-rw-r--r--mottovote/public/index.html39
-rw-r--r--mottovote/public/style.css2
-rw-r--r--tables.sql2
3 files changed, 22 insertions, 21 deletions
diff --git a/mottovote/public/index.html b/mottovote/public/index.html
index 4e64cb8..0bffbdd 100644
--- a/mottovote/public/index.html
+++ b/mottovote/public/index.html
@@ -1,23 +1,24 @@
<!DOCTYPE html>
<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>Motto Vote</title>
+ <link
+ rel="stylesheet"
+ href="https://unpkg.com/purecss@2.0.3/build/pure-min.css"
+ integrity="sha384-cg6SkqEOCV1NbJoCu11+bm0NvBRc8IYLRGXkmNrqUBfTjmMYwNKPWBTIKyw9mHNJ"
+ crossorigin="anonymous"
+ />
+ <link rel="stylesheet" href="style.css" type="text/css" media="all" />
+ </head>
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Motto Vote</title>
- <link rel="stylesheet" href="https://unpkg.com/purecss@2.0.3/build/pure-min.css"
- integrity="sha384-cg6SkqEOCV1NbJoCu11+bm0NvBRc8IYLRGXkmNrqUBfTjmMYwNKPWBTIKyw9mHNJ" crossorigin="anonymous" />
- <link rel="stylesheet" href="style.css" type="text/css" media="all" />
-</head>
+ <body>
+ <main>
+ <div id="vote"></div>
+ <button class="pure-button pure-button-primary" id="voteButton">Vote!</button>
+ </main>
-<body>
-
- <main>
- <div id="vote"></div>
- <button class="pure-button pure-button-primary" id="voteButton">Vote!</button>
- </main>
-
- <script src="script.js"></script>
-</body>
-
-</html> \ No newline at end of file
+ <script src="script.js"></script>
+ </body>
+</html>
diff --git a/mottovote/public/style.css b/mottovote/public/style.css
index bf4eac7..6e735e3 100644
--- a/mottovote/public/style.css
+++ b/mottovote/public/style.css
@@ -12,7 +12,6 @@ main {
display: flex;
flex-flow: row wrap;
position: absolute;
- height: 40%;
width: 50%;
left: 50%;
top: 50%;
@@ -28,6 +27,7 @@ main {
}
#vote {
+ max-height: 80%;
margin-bottom: 20px;
overflow-y: scroll;
width: 100%;
diff --git a/tables.sql b/tables.sql
index e630058..cd22626 100644
--- a/tables.sql
+++ b/tables.sql
@@ -80,7 +80,7 @@ CREATE TABLE IF NOT EXISTS mottos(
id INTEGER PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(255) NOT NULL,
description VARCHAR(255) NOT NULL DEFAULT '',
-
+
UNIQUE KEY main (name, description)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;