Skip to content

Commit

Permalink
Fix up template styling a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
flxy0 committed Mar 22, 2022
1 parent 3a2e758 commit ff64896
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 5 deletions.
40 changes: 37 additions & 3 deletions templates/base.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,46 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>wakeru</title>
<link rel="stylesheet" href="/style.css">

<style>
header {
padding: 0;
}
header h2 {
font-size: 30px;
text-align: left;
display: block;
width: 100px;
}
nav {
position: absolute;
margin-bottom: 0;
top: 21px;
margin-left: 150px;
}
nav ul li {
padding-left: 0;
padding-right: 5px;
margin-left: 0;
}
main {
padding-top: 0;
}
main h1 {
margin-top: 0;
}

</style>
</head>
<body>
<header>
<h2>wakeru</h2>
<h3>simple file sharing</h3>
<h2><a href="/">wakeru</a></h2>
<nav>
<ul class="nav">
<li><a href="/upload">upload</a></li>
<li><a href="/viewfiles">view files</a></li>
<li><a href="/generate">generate user hash</a></li>
</ul>
</nav>
</header>
<main>
{{ if .Error }}
Expand Down
4 changes: 2 additions & 2 deletions templates/index.gohtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ define "content" }}
<h1>welcome to wakeru!</h1>
<p>wakeru is an anonymous file uploader for small scale files to share with friends.</p>
<p>wakeru is an anonymous file uploader for small scale files to share with friends and other trusted people.</p>
<p>you don't need an email, username or password to use this service.</p>
<p>instead you will get a generated string of random letters and numbers, a hash, that links to the files you have uploaded. to make sure you don't lose that string and still have access to the files you've uploaded, it's best to save the string in a file somewhere, or even better, in a password manger!</p>
<p>instead you will get a generated string of random letters and numbers, a hash, that links to the files you have uploaded. to make sure you don't lose that string and still have access to the files you've uploaded, it's best to save the string in a file somewhere, or even better, a password manger or similarly secure storage!</p>
{{ end }}

0 comments on commit ff64896

Please sign in to comment.