beatrun-courses-server/views/upload.ejs

53 lines
1.8 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>
<div class="text-lg font-mono mb-4">Here you can upload your course!</div>
<form action="/api/upload_site" method="post" enctype="multipart/form-data" class="w-full max-w-sm font-mono">
<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" />
<input type="file" id="courseFile" name="file" accept=".txt" required class="file-input file-input-bordered" />
<input type="submit" id="courseSubmit" class="btn btn-primary hover:bg-red-700"></input>
</div>
</form>
</div>
</div>
</div>
<% include ../components/footer.html %>
</body>
</html>