Browse Source

Landing page

main
Yiğit Çolakoğlu 4 years ago
parent
commit
5dff8eeb47
19 changed files with 39 additions and 181 deletions
  1. +2
    -2
      README.md
  2. +29
    -21
      app/views/Hermes/Index.html
  3. +0
    -64
      app/views/debug.html
  4. +0
    -20
      app/views/errors/404.html
  5. +0
    -16
      app/views/errors/500.html
  6. +0
    -18
      app/views/flash.html
  7. +0
    -5
      app/views/footer.html
  8. +0
    -19
      app/views/header.html
  9. +3
    -0
      conf/routes
  10. +5
    -0
      none
  11. +0
    -5
      public/css/bootstrap-3.3.6.min.css
  12. BIN
      public/fonts/glyphicons-halflings-regular.ttf
  13. BIN
      public/fonts/glyphicons-halflings-regular.woff
  14. BIN
      public/fonts/glyphicons-halflings-regular.woff2
  15. +0
    -0
      public/hermes.png
  16. BIN
      public/img/favicon.png
  17. +0
    -7
      public/js/bootstrap-3.3.6.min.js
  18. +0
    -4
      public/js/jquery-2.2.4.min.js
  19. BIN
      target/app/Hermes/Hermes

+ 2
- 2
README.md View File

@ -1,7 +1,7 @@
# Hermes
<p align="center">
<img width="128" height="128" src="/hermes.png?raw=true">
<img width="128" height="128" src="/public/hermes.png?raw=true">
</p>
Hermes is an open source E-Mail tracking solution that is written in Go. It tracks emails using a tracking pixel and when it detects that the e-mail was read, it sends a notification using ![Gotify](https://github.com/gotify/server). This is not meant to be high-quality or easily readible. I made it three hours after learning go to practice, so don't judge me! For more info on how this works, just read the code, it is not that long anyways.
Hermes is an open source E-Mail tracking solution that is written in Go. It tracks emails using a tracking pixel and when it detects that the e-mail was read, it sends a notification using [Gotify](https://github.com/gotify/server). This is not meant to be high-quality or easily readible. I made it three hours after learning go to practice, so don't judge me! For more info on how this works, just read the code, it is not that long anyways.

+ 29
- 21
app/views/Hermes/Index.html View File

@ -1,21 +1,29 @@
{{set . "title" "Home"}}
{{template "header.html" .}}
<header class="jumbotron" style="background-color:#A9F16C">
<div class="container">
<div class="row">
<h1>It works!</h1>
<p></p>
</div>
</div>
</header>
<div class="container">
<div class="row">
<div class="span6">
{{template "flash.html" .}}
</div>
</div>
</div>
{{template "footer.html" .}}
<head>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap" rel="stylesheet">
<style>
body {
background-color: rgb(24, 26, 27);
}
h1{
text-align: center;
font-size: 5em;
color: white;
font-family: 'Open Sans', sans-serif;
}
p{
text-align:center;
font-size: 2em;
padding: 1em 2em;
color: white;
font-family: 'Open Sans', sans-serif;
}
</style>
</head>
<body>
<h1 id="hermes">Hermes</h1>
<p align="center">
<img width="256" height="256" src="/public/hermes.png">
</p>
<p>Hermes is an open source E-Mail tracking solution that is written in Go. It tracks emails using a tracking pixel and when it detects that the e-mail was read, it sends a notification using <a href="https://github.com/gotify/server"> Gotify </a>. This is not meant to be high-quality or easily readible. I made it three hours after learning go to practice, so don’t judge me! For more info on how this works, just read the code, it is not that long anyways. You can find it <a href="https://github.com/yigitcolakoglu/Hermes">here</a>.</p>
</body>

+ 0
- 64
app/views/debug.html View File

@ -1,64 +0,0 @@
<style type="text/css">
#sidebar {
position: absolute;
right: 0px;
top:69px;
max-width: 75%;
z-index: 1000;
background-color: #fee;
border: thin solid grey;
padding: 10px;
}
#toggleSidebar {
position: absolute;
right: 0px;
top: 50px;
background-color: #fee;
}
</style>
<div id="sidebar" style="display:none;">
<h4>Available pipelines</h4>
<dl>
{{ range $index, $value := .}}
<dt>{{$index}}</dt>
<dd>{{$value}}</dd>
{{end}}
</dl>
<h4>Flash</h4>
<dl>
{{ range $index, $value := .flash}}
<dt>{{$index}}</dt>
<dd>{{$value}}</dd>
{{end}}
</dl>
<h4>Errors</h4>
<dl>
{{ range $index, $value := .errors}}
<dt>{{$index}}</dt>
<dd>{{$value}}</dd>
{{end}}
</dl>
</div>
<a id="toggleSidebar" href="#" class="toggles"><i class="glyphicon glyphicon-chevron-left"></i></a>
<script>
$sidebar = 0;
$('#toggleSidebar').click(function() {
if ($sidebar === 1) {
$('#sidebar').hide();
$('#toggleSidebar i').addClass('glyphicon-chevron-left');
$('#toggleSidebar i').removeClass('glyphicon-chevron-right');
$sidebar = 0;
}
else {
$('#sidebar').show();
$('#toggleSidebar i').addClass('glyphicon-chevron-right');
$('#toggleSidebar i').removeClass('glyphicon-chevron-left');
$sidebar = 1;
}
return false;
});
</script>

+ 0
- 20
app/views/errors/404.html View File

@ -1,20 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Not found</title>
</head>
<body>
{{if eq .RunMode "dev"}}
{{template "errors/404-dev.html" .}}
{{else}}
{{with .Error}}
<h1>
{{.Title}}
</h1>
<p>
{{.Description}}
</p>
{{end}}
{{end}}
</body>
</html>

+ 0
- 16
app/views/errors/500.html View File

@ -1,16 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Application error</title>
</head>
<body>
{{if eq .RunMode "dev"}}
{{template "errors/500-dev.html" .}}
{{else}}
<h1>Oops, an error occured</h1>
<p>
This exception has been logged.
</p>
{{end}}
</body>
</html>

+ 0
- 18
app/views/flash.html View File

@ -1,18 +0,0 @@
{{if .flash.success}}
<div class="alert alert-success">
{{.flash.success}}
</div>
{{end}}
{{if or .errors .flash.error}}
<div class="alert alert-danger">
{{if .flash.error}}
{{.flash.error}}
{{end}}
<ul style="margin-top:10px;">
{{range .errors}}
<li>{{.}}</li>
{{end}}
</ul>
</div>
{{end}}

+ 0
- 5
app/views/footer.html View File

@ -1,5 +0,0 @@
{{if .DevMode}}
{{template "debug.html" .}}
{{end}}
</body>
</html>

+ 0
- 19
app/views/header.html View File

@ -1,19 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>{{.title}}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/public/css/bootstrap-3.3.6.min.css">
<link rel="shortcut icon" type="image/png" href="/public/img/favicon.png">
<script src="/public/js/jquery-2.2.4.min.js"></script>
<script src="/public/js/bootstrap-3.3.6.min.js"></script>
{{range .moreStyles}}
<link rel="stylesheet" type="text/css" href="/public/{{.}}">
{{end}}
{{range .moreScripts}}
<script src="/public/{{.}}" type="text/javascript" charset="utf-8"></script>
{{end}}
</head>
<body>

+ 3
- 0
conf/routes View File

@ -14,6 +14,9 @@ GET /favicon.ico 404
GET /read/:user/:title/:recipient/:provided_hash/ Hermes.Read
GET /public/*filepath Static.Serve("public")
# Catch all, this will route any request into the controller path
#
# **** WARNING ****


+ 5
- 0
none View File

@ -40,3 +40,8 @@ INFO 2020/11/18 17:58:27 revel revel.go:124: Paths
INFO 2020/11/19 12:26:16 revel revel.go:124: Paths revel=/home/yigit/go/pkg/mod/github.com/revel/revel@v1.0.0 base=/home/yigit/Projects/Hermes app=/home/yigit/Projects/Hermes/app views=/home/yigit/Projects/Hermes/app/views
INFO 2020/11/19 12:26:50 revel revel.go:124: Paths revel=/home/yigit/go/pkg/mod/github.com/revel/revel@v1.0.0 base=/home/yigit/Projects/Hermes app=/home/yigit/Projects/Hermes/app views=/home/yigit/Projects/Hermes/app/views
INFO 2020/11/19 12:27:23 revel revel.go:124: Paths revel=/home/yigit/go/pkg/mod/github.com/revel/revel@v1.0.0 base=/home/yigit/Projects/Hermes app=/home/yigit/Projects/Hermes/app views=/home/yigit/Projects/Hermes/app/views
INFO 2020/11/20 22:15:28 revel revel.go:124: Paths revel=/home/yigit/go/pkg/mod/github.com/revel/revel@v1.0.0 base=/home/yigit/Projects/Hermes app=/home/yigit/Projects/Hermes/app views=/home/yigit/Projects/Hermes/app/views
INFO 2020/11/20 22:17:26 revel revel.go:124: Paths revel=/home/yigit/go/pkg/mod/github.com/revel/revel@v1.0.0 base=/home/yigit/Projects/Hermes app=/home/yigit/Projects/Hermes/app views=/home/yigit/Projects/Hermes/app/views
INFO 2020/11/20 22:18:09 revel revel.go:124: Paths base=/home/yigit/Projects/Hermes app=/home/yigit/Projects/Hermes/app views=/home/yigit/Projects/Hermes/app/views revel=/home/yigit/go/pkg/mod/github.com/revel/revel@v1.0.0
INFO 2020/11/20 22:21:13 revel revel.go:124: Paths revel=/home/yigit/go/pkg/mod/github.com/revel/revel@v1.0.0 base=/home/yigit/Projects/Hermes app=/home/yigit/Projects/Hermes/app views=/home/yigit/Projects/Hermes/app/views
INFO 2020/11/20 22:23:06 revel revel.go:124: Paths revel=/home/yigit/go/pkg/mod/github.com/revel/revel@v1.0.0 base=/home/yigit/Projects/Hermes app=/home/yigit/Projects/Hermes/app views=/home/yigit/Projects/Hermes/app/views

+ 0
- 5
public/css/bootstrap-3.3.6.min.css
File diff suppressed because it is too large
View File


BIN
public/fonts/glyphicons-halflings-regular.ttf View File


BIN
public/fonts/glyphicons-halflings-regular.woff View File


BIN
public/fonts/glyphicons-halflings-regular.woff2 View File


hermes.png → public/hermes.png View File


BIN
public/img/favicon.png View File

Before After
Width: 48  |  Height: 48  |  Size: 5.5 KiB

+ 0
- 7
public/js/bootstrap-3.3.6.min.js
File diff suppressed because it is too large
View File


+ 0
- 4
public/js/jquery-2.2.4.min.js
File diff suppressed because it is too large
View File


BIN
target/app/Hermes/Hermes View File


Loading…
Cancel
Save