mirror of
https://github.com/karl0ss/JDRssDownloader.git
synced 2025-04-27 20:03:40 +01:00
pug templates
This commit is contained in:
parent
513986aad5
commit
c3ff742bd5
151
public/style.css
Normal file
151
public/style.css
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
@import url("https://fonts.googleapis.com/css?family=Raleway:800|Merriweather+Sans|Share+Tech+Mono");
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--ui-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06),
|
||||||
|
0 4px 5px 0 rgba(0, 0, 0, 0.06), 0 1px 10px 0 rgba(0, 0, 0, 0.08);
|
||||||
|
fill: rgba(0, 0, 0, 0.54);
|
||||||
|
--ui-shadow-border: 1px solid rgba(0, 0, 0, 0.14);
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
html,
|
||||||
|
body,
|
||||||
|
#root {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
|
||||||
|
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
|
||||||
|
sans-serif;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3 {
|
||||||
|
font-family: "Raleway", sans-serif;
|
||||||
|
text-transform: uppercase;
|
||||||
|
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
color: #2a3747;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#root {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.View {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
padding: 20px;
|
||||||
|
|
||||||
|
background-size: cover;
|
||||||
|
|
||||||
|
font-family: "Merriweather Sans", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Banner {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
border-radius: 5px;
|
||||||
|
|
||||||
|
overflow: hidden;
|
||||||
|
background: white;
|
||||||
|
padding: 15px;
|
||||||
|
|
||||||
|
font-family: "Share Tech Mono", monospace;
|
||||||
|
|
||||||
|
border-bottom: var(--ui-shadow-border);
|
||||||
|
box-shadow: var(--ui-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.Message {
|
||||||
|
background: white;
|
||||||
|
padding: 30px;
|
||||||
|
border-bottom: var(--ui-shadow-border);
|
||||||
|
box-shadow: var(--ui-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.Message > .Title {
|
||||||
|
padding-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Message > .Details {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
line-height: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.NavButtons {
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
justify-content: space-around;
|
||||||
|
align-items: center;
|
||||||
|
padding: 0 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.NavButton {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
height: 55px;
|
||||||
|
width: 150px;
|
||||||
|
|
||||||
|
background: #fa4141;
|
||||||
|
|
||||||
|
border-radius: 30px;
|
||||||
|
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: white;
|
||||||
|
|
||||||
|
text-transform: capitalize;
|
||||||
|
|
||||||
|
border-bottom: var(--ui-shadow-border);
|
||||||
|
box-shadow: var(--ui-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
text-align: left;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
td { border-left: 1px solid #000;
|
||||||
|
border-right: 1px solid #000;
|
||||||
|
}
|
17
views/addshow.pug
Normal file
17
views/addshow.pug
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
extends layout
|
||||||
|
|
||||||
|
block layout-content
|
||||||
|
div.View
|
||||||
|
h1.Banner Add Show
|
||||||
|
div.Message
|
||||||
|
form(action="/addNewShow" method="POST")
|
||||||
|
p Show Name:
|
||||||
|
input(type="text" name="showName" placeholder="Enter the show to track ")
|
||||||
|
p Quality:
|
||||||
|
select(name="quality")
|
||||||
|
option(value='720') #{'720p'}
|
||||||
|
option(value='1080') #{'1080p'}
|
||||||
|
input(type="submit", value="Add Show")
|
||||||
|
div.NavButtons
|
||||||
|
a(href="/")
|
||||||
|
div.NavButton Home
|
18
views/index.pug
Normal file
18
views/index.pug
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
extends layout
|
||||||
|
|
||||||
|
block layout-content
|
||||||
|
div.View
|
||||||
|
h1.Banner JDRssDownloader #{version}
|
||||||
|
body
|
||||||
|
div.Message
|
||||||
|
h3 Number of Tracked Shows
|
||||||
|
h1 #{showListLength}
|
||||||
|
div.NavButtons
|
||||||
|
a(href="/shows")
|
||||||
|
div.NavButton Show List
|
||||||
|
a(href="/shows/add")
|
||||||
|
div.NavButton Add New Show
|
||||||
|
a(href="/shows/remove")
|
||||||
|
div.NavButton Remove Show
|
||||||
|
a(href="/logs")
|
||||||
|
div.NavButton Logs
|
13
views/layout.pug
Normal file
13
views/layout.pug
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
block variables
|
||||||
|
doctype html
|
||||||
|
html
|
||||||
|
head
|
||||||
|
meta(charset="utf-8")
|
||||||
|
link(rel="shortcut icon", href="/favicon.ico")
|
||||||
|
meta(name="viewport", content="width=device-width, initial-scale=1, shrink-to-fit=no")
|
||||||
|
meta(name="theme-color", content="#000000")
|
||||||
|
title #{title} | JDRssDownloader
|
||||||
|
link(rel="stylesheet" href="/style.css")
|
||||||
|
body
|
||||||
|
div#root
|
||||||
|
block layout-content
|
11
views/logs.pug
Normal file
11
views/logs.pug
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
extends layout
|
||||||
|
|
||||||
|
block layout-content
|
||||||
|
div.View
|
||||||
|
h1.Banner Log File
|
||||||
|
div.body
|
||||||
|
each val in logFile
|
||||||
|
li= val
|
||||||
|
div.NavButtons
|
||||||
|
a(href="/")
|
||||||
|
div.NavButton Home
|
15
views/removeshow.pug
Normal file
15
views/removeshow.pug
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
extends layout
|
||||||
|
|
||||||
|
block layout-content
|
||||||
|
div.View
|
||||||
|
h1.Banner Remove Show
|
||||||
|
div.Message
|
||||||
|
form(action="/removeShow" method="POST")
|
||||||
|
p Show Name:
|
||||||
|
select(name="showName")
|
||||||
|
each show in showList
|
||||||
|
option(value=show.Name) #{show.Name}
|
||||||
|
input(type="submit", value="Remove Show")
|
||||||
|
div.NavButtons
|
||||||
|
a(href="/")
|
||||||
|
div.NavButton Home
|
19
views/shows.pug
Normal file
19
views/shows.pug
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
extends layout
|
||||||
|
|
||||||
|
block layout-content
|
||||||
|
div.View
|
||||||
|
h1.Banner Show List
|
||||||
|
div.Message
|
||||||
|
table
|
||||||
|
thead
|
||||||
|
tr
|
||||||
|
th Show Name
|
||||||
|
th Quality
|
||||||
|
tbody
|
||||||
|
each val, key in showList
|
||||||
|
tr
|
||||||
|
td= val.Name
|
||||||
|
td= val.Quality
|
||||||
|
div.NavButtons
|
||||||
|
a(href="/")
|
||||||
|
div.NavButton Home
|
Loading…
x
Reference in New Issue
Block a user