beatrun-courses-server-docker/views/upload.ejs

61 lines
2.2 KiB
Text
Raw Normal View History

2024-08-29 09:48:27 +05:00
<!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="stylesheet" type="text/css" href="/css/style.css">
<link rel="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>
2024-10-05 01:22:17 +05:00
<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>
2024-08-29 09:48:27 +05:00
</div>
</div>
</div>
<% include ../components/footer.html %>
</body>
</html>