39 lines
1.5 KiB
HTML
39 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>fileshares.cfd</title>
|
|
<style>
|
|
*{margin:0;padding:0;box-sizing:border-box}
|
|
body{font-family:monospace;padding:40px;background:white;color:black;max-width:680px}
|
|
h1{margin-bottom:12px;font-size:32px}
|
|
p{margin-bottom:12px;line-height:1.5}
|
|
.actions{margin-top:24px}
|
|
a.button{display:inline-block;border:1px solid black;background:white;color:black;padding:8px 16px;text-decoration:none;margin-right:8px}
|
|
a.button:hover{background:black;color:white}
|
|
.nav{margin-top:40px;font-size:12px}
|
|
a{color:black}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>fileshares.cfd</h1>
|
|
<p>Simple, fast file hosting without the bloat.</p>
|
|
<p>Upload a file, get a clean link, and come back to your dashboard whenever you need older uploads. Access is request-only, so you will need an upload token before you can use the dashboard.</p>
|
|
<div class="actions">
|
|
<a class="button" id="mainAction" href="/login">Login</a>
|
|
<a class="button" href="/speedtest">Speed Test</a>
|
|
</div>
|
|
<div class="nav"><a href="/">Home</a> | <a href="/speedtest">Speed Test</a> | <a id="navAuth" href="/login">Login</a> | <a href="/terms">Terms</a> | <a href="/privacy">Privacy</a></div>
|
|
<script>
|
|
function hasToken(){return !!localStorage.getItem('upload_token')}
|
|
const main=document.getElementById('mainAction');
|
|
const nav=document.getElementById('navAuth');
|
|
if(hasToken()){
|
|
main.href='/dashboard';
|
|
main.textContent='Dashboard';
|
|
nav.href='/dashboard';
|
|
nav.textContent='Dashboard';
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|