UI improvements
This commit is contained in:
parent
487f0c4eeb
commit
15087ca30f
@ -1,3 +1,10 @@
|
|||||||
|
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro');
|
||||||
|
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro');
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-family: "Source Sans Pro";
|
||||||
|
}
|
||||||
|
|
||||||
table, th, td {
|
table, th, td {
|
||||||
border: 1px solid #cccccc;
|
border: 1px solid #cccccc;
|
||||||
}
|
}
|
||||||
@ -8,3 +15,41 @@ th, td {
|
|||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre, code {
|
||||||
|
font-family: "Source Code Pro";
|
||||||
|
font-size: 10pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #004d4d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navul {
|
||||||
|
list-style-type: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 5;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navli {
|
||||||
|
display: inline;
|
||||||
|
background: #eee;
|
||||||
|
border-radius: 7px;
|
||||||
|
margin-right: 10px;
|
||||||
|
transition: all 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navli:hover {
|
||||||
|
background: #004d4d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nava {
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 20;
|
||||||
|
transition: all 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nava:hover {
|
||||||
|
color: #eee;
|
||||||
|
}
|
@ -11,13 +11,19 @@ class Home {
|
|||||||
*/
|
*/
|
||||||
welcome(req, res){
|
welcome(req, res){
|
||||||
|
|
||||||
|
let pass = {}
|
||||||
|
|
||||||
|
if ( req.session.auth && req.session.auth.user ){
|
||||||
|
pass['user'] = req.session.auth.user
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return the welcome view.
|
* Return the welcome view.
|
||||||
* It must be passed the response.
|
* It must be passed the response.
|
||||||
* View parameters can be passed as an optional third
|
* View parameters can be passed as an optional third
|
||||||
* argument to the view() method.
|
* argument to the view() method.
|
||||||
*/
|
*/
|
||||||
return _flitter.view(res, 'welcome')
|
return _flitter.view(res, 'welcome', pass)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,9 +4,9 @@ html
|
|||||||
link(rel='stylesheet' href='/assets/dash_v1.css')
|
link(rel='stylesheet' href='/assets/dash_v1.css')
|
||||||
body
|
body
|
||||||
h1 DevBug Dashboard
|
h1 DevBug Dashboard
|
||||||
ul(style='list-style-type: none; display: inline; margin: 0; padding: 0; padding-right: 15px;')
|
ul.navul
|
||||||
li
|
li.navli
|
||||||
a(href='/auth/logout') Logout
|
a.nava(href='/auth/logout') Logout
|
||||||
h3 My Projects
|
h3 My Projects
|
||||||
ul(style='list-style-type: none;')
|
ul(style='list-style-type: none;')
|
||||||
li
|
li
|
||||||
@ -24,3 +24,7 @@ html
|
|||||||
ul(style='list-style-type: none; margin: 0; padding: 0;')
|
ul(style='list-style-type: none; margin: 0; padding: 0;')
|
||||||
li
|
li
|
||||||
a.action(href='/dash/v1/project/view/'+project.id) View
|
a.action(href='/dash/v1/project/view/'+project.id) View
|
||||||
|
li
|
||||||
|
a.action(href='/dash/v1/project/delete/'+project.id) Delete
|
||||||
|
li
|
||||||
|
a.action(href='/dash/v1/project/edit/'+project.id) Edit
|
||||||
|
@ -1,10 +1,16 @@
|
|||||||
html
|
html
|
||||||
head
|
head
|
||||||
title #{out.brief}
|
title #{out.brief}
|
||||||
|
link(rel='stylesheet' href='/assets/dash_v1.css')
|
||||||
body
|
body
|
||||||
h2 #{out.brief}
|
h2 #{out.brief}
|
||||||
div
|
ul.navul
|
||||||
a(href='javascript:window.history.back()') Back
|
li.navli
|
||||||
|
a.nava(href='/dash/v1') Dashboard
|
||||||
|
li.navli
|
||||||
|
a.nava(href='javascript:window.history.back()') Back
|
||||||
|
li.navli
|
||||||
|
a.nava(href='/auth/logout') Logout
|
||||||
pre
|
pre
|
||||||
code
|
code
|
||||||
div #{prettyd}
|
div #{prettyd}
|
@ -1,6 +1,7 @@
|
|||||||
html
|
html
|
||||||
head
|
head
|
||||||
title #{(update ? 'Update Project' : 'Create New Project')} | DevBug
|
title #{(update ? 'Update Project' : 'Create New Project')} | DevBug
|
||||||
|
link(rel='stylesheet' href='/assets/dash_v1.css')
|
||||||
body
|
body
|
||||||
h2 #{(update ? 'Update Project' : 'Create New Project')}
|
h2 #{(update ? 'Update Project' : 'Create New Project')}
|
||||||
if errors
|
if errors
|
||||||
|
@ -5,11 +5,11 @@ html
|
|||||||
body
|
body
|
||||||
h2 View: #{project.name}
|
h2 View: #{project.name}
|
||||||
h4 API Key: #{ project.uuid }
|
h4 API Key: #{ project.uuid }
|
||||||
ul(style='list-style-type: none; display: inline; margin: 0; padding: 0; padding-right: 15px;')
|
ul.navul
|
||||||
li
|
li.navli
|
||||||
a(href='/dash/v1') Dashboard
|
a.nava(href='/dash/v1') Dashboard
|
||||||
li
|
li.navli
|
||||||
a(href='/auth/logout') Logout
|
a.nava(href='/auth/logout') Logout
|
||||||
table
|
table
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
html
|
html
|
||||||
head
|
head
|
||||||
title Flitter
|
title Welcome | DevBug
|
||||||
style(type="text/css").
|
style(type="text/css").
|
||||||
@import url('https://fonts.googleapis.com/css?family=Rajdhani');
|
@import url('https://fonts.googleapis.com/css?family=Rajdhani');
|
||||||
html,
|
html,
|
||||||
@ -34,7 +34,8 @@ html
|
|||||||
margin-left: 35px;
|
margin-left: 35px;
|
||||||
color: #00323d;
|
color: #00323d;
|
||||||
}
|
}
|
||||||
body
|
body
|
||||||
.flitter-container
|
.flitter-container
|
||||||
img.flitter-image(src="/assets/flitter.png")
|
img.flitter-image(src="/assets/flitter.png")
|
||||||
p.flitter-name powered by flitter
|
p.flitter-name devbug
|
||||||
|
a.flitter-name(style='font-size: 20pt; text-decoration: none;' href='/dash/v1') Dashboard
|
Loading…
Reference in New Issue
Block a user