Started designing HTML/CSS for receive mode

This commit is contained in:
Micah Lee 2018-03-07 10:12:10 -08:00
parent 878dd4f880
commit 9a800d90b2
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
3 changed files with 42 additions and 1 deletions

View File

@ -45,10 +45,11 @@ header .right ul li {
font-size: 1rem; font-size: 1rem;
} }
header .button { .button {
color: #ffffff; color: #ffffff;
background-color: #4e064f; background-color: #4e064f;
padding: 10px; padding: 10px;
border: 0;
border-radius: 5px; border-radius: 5px;
text-decoration: none; text-decoration: none;
margin-left: 1rem; margin-left: 1rem;
@ -86,3 +87,31 @@ table.file-list td img {
table.file-list td:last-child { table.file-list td:last-child {
width: 100%; width: 100%;
} }
.upload-wrapper {
display: flex;
align-items: center;
justify-content: center;
min-height: 400px;
}
.upload {
text-align: center;
}
.upload img {
width: 120px;
height: 120px;
}
.upload .upload-header {
font-size: 30px;
font-weight: normal;
color: #666666;
margin: 0 0 10px 0;
}
.upload .upload-description {
color: #666666;
margin: 0 0 20px 0;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

View File

@ -12,5 +12,17 @@
<h1>OnionShare</h1> <h1>OnionShare</h1>
</header> </header>
<div class="upload-wrapper">
<div class="upload">
<p><img class="logo" src="/static/img/logo_large.png" title="OnionShare"></p>
<p class="upload-header">Send Files</p>
<p class="upload-description">Select the files you want to send, then click "Send Files"...</p>
<form method="post" enctype="multipart/form-data" action="/{{ slug }}/">
<p><input type="file" multiple /></p>
<p><input type="submit" class="button" value="Upload Files" /></p>
</form>
</div>
</div>
</body> </body>
</html> </html>