Browse Source

Add about route and view, and links in footer

add-test-db-and-override
Blaine Motsinger 1 year ago
parent
commit
0f701eb85f
  1. 1
      lib/Pasteburn.pm
  2. 15
      lib/Pasteburn/Controller/About.pm
  3. 33
      public/css/main.css
  4. 24
      views/about.tt
  5. 7
      views/includes/footer.tt

1
lib/Pasteburn.pm

@ -7,6 +7,7 @@ use HTTP::Status ();
use Pasteburn::Controller::Root ();
use Pasteburn::Controller::Secret ();
use Pasteburn::Controller::About ();
our $VERSION = '0.001';

15
lib/Pasteburn/Controller/About.pm

@ -0,0 +1,15 @@
package Pasteburn::Controller::About;
use Dancer2 appname => 'pasteburn';
use HTTP::Status ();
our $VERSION = '0.001';
get q{/about} => sub {
my $template_params = { route => request->path, };
return template about => $template_params;
};
1;

33
public/css/main.css

@ -12,11 +12,23 @@ body {
margin-bottom: 1.4rem;
}
#marketing h1 {
font-size: 2.4rem;
h1, h2, h3 {
margin-bottom: 0.25rem;
}
h1 {
font-size: 2.4rem;
}
h2 {
font-size: 1.8rem;
}
h3 {
font-size: 1.5rem;
font-weight: bold;
}
#marketing p {
color: #737373;
font-style: italic;
@ -24,7 +36,9 @@ body {
}
@media (min-width: 550px) {
#marketing h1 { font-size: 2.8rem; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.7rem; }
}
textarea {
@ -41,3 +55,16 @@ input[type="submit"].button-primary:hover {
background-color: #5b5b5b;
border-color: #5b5b5b;
}
#footer {
margin-top: 0.25rem;
}
#footer a {
color: #333;
font-size: 1.1rem;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 0.1rem;
padding-right: 1rem;
}

24
views/about.tt

@ -0,0 +1,24 @@
[% INCLUDE includes/header.tt
title = 'Sharable, encrypted, ephemeral pastebin'
%]
[% IF message %]<p class="message">[% message %]</p>[% END %]
<div id="marketing">
<h1>About.</h1>
</div>
<h2>FAQ</h2>
<h3>Can you see my secrets?</h3>
<p>Secrets are encrypted using the passphrase you provide. Passphrases are hashed. The secret and passphrase in the database look like random text we can't read and can't decrypt without the passphrase.</p>
<h3>I don't trust your website. How do I know you're not reading my secrets?</h3>
<p>All of the code for this project is <a href="https://dev.adventurehound.io/renderorange/pasteburn">open source and available to read</a>. Installation instructions [are being added soon] if you'd prefer to run this project on your own infrastructure.</p>
<h3>Who made this?</h3>
<p>My name is Blaine Motsinger. Feel free to <a href="mailto:Blaine Motsinger <blaine@renderorange.com>">email me</a> if you'd like to chat.</p>
<h2>Colophon</h2>
<h3>Technologies this project uses</h3>
<p>Pasteburn is built in Perl using the Dancer2 framework. Additional Perl dependencies are listed in the <a href="https://dev.adventurehound.io/renderorange/pasteburn">Pasteburn repo</a>.</p>
<p>The UI uses the <a href="http://getskeleton.com/">Skeleton CSS boilerplate</a>. License information is available in the <a href="https://dev.adventurehound.io/renderorange/pasteburn">Pasteburn repo</a>.</p>
[% INCLUDE includes/footer.tt %]

7
views/includes/footer.tt

@ -1,5 +1,12 @@
</div>
</div>
<div class="row">
<div id="footer">
<a href="/">home</a>
<a href="https://dev.adventurehound.io/renderorange/pasteburn">code</a>
<a href="/about">about</a>
</div>
</div>
</div>
</body>

Loading…
Cancel
Save