Added file upload and TOS in french
Some checks are pending
Rust-build / build (push) Waiting to run

This commit is contained in:
Justine
2024-07-31 13:52:49 +02:00
parent d68ffcebd7
commit 821e53b2c0
13 changed files with 646 additions and 51 deletions

View File

@ -9,11 +9,14 @@
body {
background-color: #2e2e2e;
color: white;
font-family: Arial, sans-serif;
text-align: center;
padding-top: 50px;
font-family: Fira Mono;
}
@import url(https://fonts.bunny.net/css?family=fira-mono:400);
h1 {
color: pink;
}
@ -27,14 +30,14 @@
max-width: 90%;
margin: 0 auto;
padding: 20px;
border: 2px solid pink;
border-radius: 10px;
/*border: 2px solid pink;
border-radius: 10px;*/
align: center;
}
label {
display: block;
margin-top: 10px;
margin-top: 5px;
}
input[type="text"] {
@ -45,6 +48,8 @@
color: white;
margin: auto;
display: block;
height: 40px;
font-size: x-large;
}
textarea {
@ -56,6 +61,7 @@
align: center;
margin: auto;
display: block;
font-size: x-large;
}
@ -123,21 +129,30 @@
</head>
<body>
<h1>SqPad</h1>
<div id="form-container">
<form action="/" method="post" enctype="application/x-www-form-urlencoded">
<label for="name"></label>
<input type="text" id="name" name="name" placeholder="Title Here." required>
<label for="name">Name</label>
<input type="text" id="name" name="name" required>
<label for="content">Content</label>
<label for="content"></label>
<textarea type="input" id="content" name="content" rows="30" cols="55" placeholder="Put your content here. It will be encrypted via DES-256 and stored." required></textarea>
<input type="submit" value="submit">
<input type="submit" value="Send">
</form>
<form action="/file" method="post" enctype="multipart/form-data">
<br>
<label for="fileupload">Or upload a file, max. size 100MB:</label>
<input id="fileupload" name="file" type="file" required>
<br>
<input type="submit" value="Upload">
</form>
</div>
<hr>
<a href="https://gitea.squi.fr/Rust/SqPad">SqPad</a> by Squi
<hr>
<a href="tos"> Conditions d'utilisation </a>
<p> Need to report something hosted on this website ? Send an email to <a href="mailto:admin@squi.fr">admin@squi.fr</a> including the link to the content.</p>
<p> Vous avez trouvé quelque chose de problématique hebergé sur ce site ? Ecrivez à <a href="mailto:admin@squi.fr">admin@squi.fr</a> en incluant le lien du contenu.</p>