Material design!
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Fredriks todos</title>
|
<title>Fredriks todos</title>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
<link rel="manifest" href="manifest.json" />
|
<link rel="manifest" href="manifest.json" />
|
||||||
|
|
||||||
@@ -13,20 +14,26 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>TODO</h1>
|
<h1 class="center-align">TODO</h1>
|
||||||
<form id="taskForm">
|
<form id="taskForm">
|
||||||
|
<div class="input-field">
|
||||||
<label for="subject">Uppgift:</label>
|
<label for="subject">Uppgift:</label>
|
||||||
<input type="text" id="subject" required><br><br>
|
<input type="text" id="subject" required>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="input-field">
|
||||||
<label for="description">Beskrivning:</label>
|
<label for="description">Beskrivning:</label>
|
||||||
<textarea id="description"></textarea><br><br>
|
<textarea id="description" class="materialize-textarea"></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="input-field">
|
||||||
<label for="scheduled">Datum:</label>
|
<label for="scheduled">Datum:</label>
|
||||||
<input type="date" id="scheduled" lang="sv-SE" required><br><br>
|
<input type="date" id="scheduled" lang="sv-SE" required>
|
||||||
|
</div>
|
||||||
|
|
||||||
<button type="submit">Spara</button>
|
<button class="btn waves-effect waves-light" type="submit">Spara</button>
|
||||||
</form>
|
</form>
|
||||||
<p id="responseMessage"></p>
|
<p id="responseMessage" class="center-align"></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="app.js"></script>
|
<script src="app.js"></script>
|
||||||
@@ -41,5 +48,6 @@
|
|||||||
firstDayOfWeek: 1 // Start weeks on Monday
|
firstDayOfWeek: 1 // Start weeks on Monday
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -20,28 +20,6 @@ h1 {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
input, textarea {
|
|
||||||
width: 90%;
|
|
||||||
padding: 8px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
|
||||||
width: 100%;
|
|
||||||
padding: 10px;
|
|
||||||
background-color: #4CAF50;
|
|
||||||
color: white;
|
|
||||||
border: none;
|
|
||||||
border-radius: 4px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
button:hover {
|
|
||||||
background-color: #45a049;
|
|
||||||
}
|
|
||||||
|
|
||||||
#responseMessage {
|
#responseMessage {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: green;
|
color: green;
|
||||||
|
|||||||
Reference in New Issue
Block a user