Spaces:
Paused
Paused
Download templates/upload.html from Ragulselvakumar/NotesHub: direct link, hf CLI and curl.
- Browser
- Download file 3.65 kB
-
https://huggingface.co/spaces/Ragulselvakumar/NotesHub/resolve/main/templates/upload.html
- Command line
-
hf download hf://spaces/Ragulselvakumar/NotesHub/templates/upload.html
-
curl -L -o upload.html https://huggingface.co/spaces/Ragulselvakumar/NotesHub/resolve/main/templates/upload.html
3.65 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>NotesHub - Upload Notes</title> | |
| <style> | |
| body { | |
| font-family: Arial, sans-serif; | |
| background: #f5f7fb; | |
| margin: 0; | |
| } | |
| .container { | |
| width: 400px; | |
| max-width: 90%; | |
| margin: 40px auto; | |
| background: white; | |
| padding: 30px; | |
| border-radius: 10px; | |
| box-shadow: 0 3px 12px #ccc; | |
| } | |
| h2 { | |
| text-align: center; | |
| color: #243b55; | |
| margin-bottom: 25px; | |
| } | |
| input, | |
| select { | |
| width: 100%; | |
| padding: 12px; | |
| margin: 8px 0 15px; | |
| box-sizing: border-box; | |
| border: 1px solid #ccc; | |
| border-radius: 5px; | |
| } | |
| button { | |
| width: 100%; | |
| padding: 12px; | |
| background: #2f80ed; | |
| color: white; | |
| border: none; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| font-size: 16px; | |
| } | |
| button:hover { | |
| background: #1c64c6; | |
| } | |
| .back { | |
| text-align: center; | |
| margin-top: 20px; | |
| } | |
| .back a { | |
| color: #2f80ed; | |
| text-decoration: none; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h2>📤 Upload College Notes</h2> | |
| <form action="/upload" method="POST" enctype="multipart/form-data"> | |
| <input | |
| type="text" | |
| name="title" | |
| placeholder="Enter Notes Title" | |
| required | |
| > | |
| <select name="department" required> | |
| <option value="">Select Department</option> | |
| <option value="Computer Science">Computer Science</option> | |
| <option value="Information Technology">Information Technology</option> | |
| <option value="Electronics">Electronics</option> | |
| <option value="Mechanical">Mechanical</option> | |
| <option value="Civil">Civil</option> | |
| </select> | |
| <select name="semester" required> | |
| <option value="">Select Semester</option> | |
| <option value="Semester 1">Semester 1</option> | |
| <option value="Semester 2">Semester 2</option> | |
| <option value="Semester 3">Semester 3</option> | |
| <option value="Semester 4">Semester 4</option> | |
| <option value="Semester 5">Semester 5</option> | |
| <option value="Semester 6">Semester 6</option> | |
| <option value="Semester 7">Semester 7</option> | |
| <option value="Semester 8">Semester 8</option> | |
| </select> | |
| <input | |
| type="text" | |
| name="subject" | |
| placeholder="Enter Subject Name" | |
| required | |
| > | |
| <select name="unit" required> | |
| <option value="">Select Unit</option> | |
| <option value="Unit 1">Unit 1</option> | |
| <option value="Unit 2">Unit 2</option> | |
| <option value="Unit 3">Unit 3</option> | |
| <option value="Unit 4">Unit 4</option> | |
| <option value="Unit 5">Unit 5</option> | |
| </select> | |
| <label> | |
| <b>Select PDF File</b> | |
| </label> | |
| <input | |
| type="file" | |
| name="file" | |
| accept=".pdf" | |
| required | |
| > | |
| <button type="submit"> | |
| 📤 Upload Notes | |
| </button> | |
| </form> | |
| <div class="back"> | |
| <a href="/">← Back to Home</a> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |