mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-22 05:46:26 -08:00
99 lines
2.6 KiB
HTML
99 lines
2.6 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>monofile</title>
|
||
|
|
||
|
<meta name="author" content="$FileId">
|
||
|
<meta name="application-name" content="$FileName">
|
||
|
<meta name="description" content="shared via monofile">
|
||
|
|
||
|
<style>
|
||
|
|
||
|
* {
|
||
|
font-family: sans-serif;
|
||
|
}
|
||
|
h1,h2 {
|
||
|
text-align:center;
|
||
|
}
|
||
|
#content {
|
||
|
position:fixed;
|
||
|
left:50%;
|
||
|
top:50%;
|
||
|
transform:translate(-50%,-50%);
|
||
|
background-color:white;
|
||
|
width:450px;
|
||
|
/*height:100%;*/
|
||
|
}
|
||
|
body {
|
||
|
background-color: darkgray;
|
||
|
}
|
||
|
#btnContainer {
|
||
|
width:calc( 100% - 50px );
|
||
|
height:50px;
|
||
|
position:relative;
|
||
|
left:50%;
|
||
|
transform:translate(-50%,0);
|
||
|
}
|
||
|
#dlbtn {
|
||
|
width:100%;
|
||
|
height:100%;
|
||
|
background-color: #66AAFF;
|
||
|
border:none;
|
||
|
position:absolute;
|
||
|
left:0px;
|
||
|
top:0px;
|
||
|
text-decoration: none;
|
||
|
display:flex; /* This is a mess but I give up. */
|
||
|
flex-direction: column;
|
||
|
justify-content: center;
|
||
|
}
|
||
|
#btnContainer:hover {
|
||
|
border: 1px solid gray;
|
||
|
}
|
||
|
#dlbtn > p {
|
||
|
color:black;
|
||
|
font-weight:bold;
|
||
|
font-size:20px;
|
||
|
text-align: center;
|
||
|
width:100%;
|
||
|
line-height:20px;
|
||
|
}
|
||
|
.note {
|
||
|
padding:5px;
|
||
|
position:relative;
|
||
|
width:calc( 100% - 60px );
|
||
|
left:25px;
|
||
|
border:1px solid #AAAAAAFF;
|
||
|
border-radius: 8px;
|
||
|
background-color: #AAAAAA66;
|
||
|
}
|
||
|
|
||
|
@media only screen and (max-width: 450px) {
|
||
|
#content {
|
||
|
position:fixed;
|
||
|
left:0%;
|
||
|
top:0%;
|
||
|
transform:translate(0%,0%);
|
||
|
background-color:white;
|
||
|
width:100%;
|
||
|
height:100%;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="content">
|
||
|
<h1>
|
||
|
$FileName
|
||
|
</h1>
|
||
|
<h2 style="font-family:monospace">file id: $FileId</h2>
|
||
|
<div id="btnContainer"><a id="dlbtn" href="/file/$FileId" download="$FileName"><p>Download file</p></a></div>
|
||
|
<div style="width:100%;height:25px"></div>
|
||
|
</div>
|
||
|
</body>
|
||
|
|
||
|
</html>
|