Skip to content

Commit

Permalink
Add mvp.css and move to base template + extension format.
Browse files Browse the repository at this point in the history
  • Loading branch information
flxy0 committed Mar 17, 2022
1 parent 58fa1d4 commit aec7e3d
Show file tree
Hide file tree
Showing 3 changed files with 508 additions and 20 deletions.
20 changes: 20 additions & 0 deletions templates/base.gohtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!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>wakeru</title>
<link rel="stylesheet" href="/style.css">

</head>
<body>
<header>
<h2>wakeru</h2>
<h3>simple file sharing</h3>
</header>
<main>
{{ template "content" .}}
</main>
</body>
</html>
26 changes: 6 additions & 20 deletions templates/index.gohtml
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>wakeru</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<!-- Place favicon.ico in the root directory -->

</head>
<body>
<h1>welcome to wakeru!</h1>
<p>wakeru is an anonymous file uploader for small scale files to share with friends.</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>
</body>
</html>
{{ define "content" }}
<h1>welcome to wakeru!</h1>
<p>wakeru is an anonymous file uploader for small scale files to share with friends.</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>
{{ end }}
Loading

0 comments on commit aec7e3d

Please sign in to comment.