wrappd.sh/internal/web/templates/index.html

28 lines
1.4 KiB
HTML
Raw Normal View History

2024-12-05 14:00:58 +01:00
{{ template "header.html" . }}
<div class="container flex justify-center items-center">
<div class="bg-gray-800 p-8 rounded-lg shadow-xl max-w-md w-full">
<h1 class="text-3xl text-center text-white mb-6 font-semibold">Bash Wrapped</h1>
2024-12-05 17:10:22 +01:00
<p class="mb-8">Upload your <code>.bash_history</code> to see your usage statistics.</p>
2024-12-05 14:00:58 +01:00
<form action="/upload" method="post" enctype="multipart/form-data" class="space-y-4">
<div class="flex justify-center">
<input type="file" name="file" class="p-3 text-white bg-gray-700 rounded-md border-2 border-gray-600 w-full" />
</div>
<div class="flex justify-center">
<button type="submit" class="w-full py-3 px-6 bg-blue-500 text-white rounded-md hover:bg-blue-600 text-xl font-semibold shadow-md transition duration-300 ease-in-out">
Upload
</button>
</div>
</form>
2024-12-05 17:05:00 +01:00
<p class="mb-6 mt-8"><small>⚠️ <strong>Warning</strong>:⚠️ Be sure to
edit the file beforehand to remove any passwords
or commands that might leak sensitive information.</small><p>
2024-12-05 17:05:00 +01:00
<p><small>The file is not uploaded anywhere; it is processed in memory
2024-12-05 17:06:13 +01:00
to generate the statistics and after that it is automatically discarded.</small></p>
2024-12-05 14:00:58 +01:00
</div>
</div>
{{ template "footer.html" . }}