beatrun-courses-server/views/upload.ejs
2024-10-19 11:03:16 +05:00

61 lines
No EOL
2.2 KiB
Text

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>beatrun.ru | Uploading</title>
<link rel="preload stylesheet" type="text/css" href="/css/style.css">
<link rel="preload stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer">
<style>
body::-webkit-scrollbar {
width: 0 !important
}
body {
overflow: -moz-scrollbars-none;
}
body {
-ms-overflow-style: none;
}
</style>
</head>
<body class="w-screen font-mono">
<% include ../components/navbar.html %>
<div class="hero min-h-screen bg-base-200">
<div class="hero-content text-center">
<div class="text-center align-top w-full">
<div class="text-5xl font-bold font-mono mb-2">Uploading</div>
<div class="text-lg font-mono mb-4">Here you can upload your course.<br>Please make sure to input a proper map and a link to it!</div>
<div style="margin-left: 13.5%; margin-right: 13.5%;">
<form action="/api/upload_site" method="post" enctype="multipart/form-data" class="w-full font-mono max-w-sm">
<div class="flex flex-col mt-4 space-y-2">
<input type="text" id="courseMap" name="map" placeholder="Enter course map..." required class="input input-bordered" />
<input type="url" id="mapLink" name="link" placeholder="Paste map link here..." required class="input input-bordered" />
<label class="form-control w-full">
<input type="file" id="courseFile" name="file" accept=".txt" required class="file-input file-input-bordered" />
<div class="label">
<span class="label-text"></span>
<span class="label-text" style="margin-right: 1%;">^ Select a course file here ^</span>
</div>
</label>
<input type="submit" id="courseSubmit" class="btn btn-primary hover:bg-red-700"></input>
</div>
</form>
</div>
</div>
</div>
</div>
<% include ../components/footer.html %>
</body>
</html>