48 lines
1.5 KiB
HTML
48 lines
1.5 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8" />
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
|
<title>WIP Uploader</title>
|
||
|
|
||
|
<script src="https://cdn.fascinated.cc/assets/tailwindcss/3.2.4.js"></script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<!-- Centered div, vertial and horizontal -->
|
||
|
<!-- uploads file to upload.php, shows map id after upload -->
|
||
|
<!-- Modern design -->
|
||
|
<div class="flex items-center justify-center h-screen">
|
||
|
<div class="w-1/2">
|
||
|
<div class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
|
||
|
<p class="text-gray-700 text-2xl font-bold mb-4">WIP Map Uploader</p>
|
||
|
<form action="upload.php" method="post" enctype="multipart/form-data">
|
||
|
<div class="mb-4">
|
||
|
<label
|
||
|
class="block text-gray-700 text-sm font-bold mb-2"
|
||
|
for="file"
|
||
|
>
|
||
|
Select a file to upload
|
||
|
</label>
|
||
|
<input
|
||
|
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
|
||
|
id="file"
|
||
|
name="file"
|
||
|
type="file"
|
||
|
/>
|
||
|
</div>
|
||
|
<div class="flex items-center justify-between">
|
||
|
<button
|
||
|
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"
|
||
|
type="submit"
|
||
|
>
|
||
|
Upload
|
||
|
</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|