Skip to content

Commit

Permalink
updated styling
Browse files Browse the repository at this point in the history
  • Loading branch information
abarnhard committed Aug 4, 2014
1 parent eae9d6b commit 871d4b5
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 91 deletions.
11 changes: 10 additions & 1 deletion app/static/css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
nav ul {

list-style-type: none;
margin: 0;
padding: 0;
}

nav li {
display: inline-block;
text-align: center;
margin: 0 5px;
font-size: 25px;
}
72 changes: 37 additions & 35 deletions app/views/items/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,42 @@ html
title eCommerce
link(rel='stylesheet', href='/css/style.css')
body
h1 eCommerce
nav
ul
li: a(href='/') Home
li: a(href='/about') About
li: a(href='/faq') Faq
li: a(href='/items/new') Add Item
li: a(href='/items') View Items
h1 Items
table
thead
tr
th Name
th Length
th Width
th Height
th Weight
th Color
th Qty
th MSRP
th % Off
th Cost
tbody
each item in items
tr
td: a(href='/items/#{item._id.toString()}')= item.name
td= item.dimensions.l
td= item.dimensions.w
td= item.dimensions.h
td= item.weight
td= item.color
td= item.quantity
td= item.msrp
td= item.percentOff
td= item.cost()
.container
h1 eCommerce
nav
ul
li: a(href='/') Home
li: a(href='/about') About
li: a(href='/faq') Faq
li: a(href='/items/new') Add Item
li: a(href='/items') View Items
.itemList
h1 Items
table
thead
tr
th Name
th Length
th Width
th Height
th Weight
th Color
th Qty
th MSRP
th % Off
th Cost
tbody
each item in items
tr
td: a(href='/items/#{item._id.toString()}')= item.name
td= item.dimensions.l
td= item.dimensions.w
td= item.dimensions.h
td= item.weight
td= item.color
td= item.quantity
td= item.msrp
td= item.percentOff
td= item.cost()


49 changes: 30 additions & 19 deletions app/views/items/init.jade
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,34 @@ html
title eCommerce
link(rel='stylesheet', href='/css/style.css')
body
h1 eCommerce
nav
ul
li: a(href='/') Home
li: a(href='/about') About
li: a(href='/faq') Faq
li: a(href='/items/new') Add Item
li: a(href='/items') View Items
form(method='post', action='/items')
input(name='name', type='text', placeholder='iPad', autofocus=true)
input(name='dimensions[l]', type='number', placeholder='length')
input(name='dimensions[w]', type='number', placeholder='width')
input(name='dimensions[h]', type='number', placeholder='height')
input(name='weight', type='number', placeholder='weight')
input(name='color', type='color', placeholder='color')
input(name='quantity', type='number', placeholder='quantity')
input(name='msrp', type='number', placeholder='msrp')
input(name='percentOff', type='number', placeholder='percentOff')
button Add Item to Database
.container
h1 eCommerce
nav
ul
li: a(href='/') Home
li: a(href='/about') About
li: a(href='/faq') Faq
li: a(href='/items/new') Add Item
li: a(href='/items') View Items
#newItem
form(method='post', action='/items')
input(name='name', type='text', placeholder='iPad', autofocus=true)
br
input(name='dimensions[l]', type='number', placeholder='length')
br
input(name='dimensions[w]', type='number', placeholder='width')
br
input(name='dimensions[h]', type='number', placeholder='height')
br
input(name='weight', type='number', placeholder='weight')
br
input(name='color', type='color', placeholder='color')
br
input(name='quantity', type='number', placeholder='quantity')
br
input(name='msrp', type='number', placeholder='msrp')
br
input(name='percentOff', type='number', placeholder='percentOff')
br
button Add Item to Database

73 changes: 37 additions & 36 deletions app/views/items/show.jade
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,43 @@ html
title eCommerce
link(rel='stylesheet', href='/css/style.css')
body
h1 eCommerce
nav
ul
li: a(href='/') Home
li: a(href='/about') About
li: a(href='/faq') Faq
li: a(href='/items/new') Add Item
li: a(href='/items') View Items
#item
form(method='post', action='/items/#{item._id}')
table
thead
tr
th Name
th Length
th Width
th Height
th Weight
th Color
th Qty
th MSRP
th % Off
th Cost
tbody
tr
td= item.name
td= item.dimensions.l
td= item.dimensions.w
td= item.dimensions.h
td= item.weight
td= item.color
td= item.quantity
td= item.msrp
td= item.percentOff
td= item.cost()
button Delete Item
.container
h1 eCommerce
nav
ul
li: a(href='/') Home
li: a(href='/about') About
li: a(href='/faq') Faq
li: a(href='/items/new') Add Item
li: a(href='/items') View Items
#item
form(method='post', action='/items/#{item._id}')
table
thead
tr
th Name
th Length
th Width
th Height
th Weight
th Color
th Qty
th MSRP
th % Off
th Cost
tbody
tr
td= item.name
td= item.dimensions.l
td= item.dimensions.w
td= item.dimensions.h
td= item.weight
td= item.color
td= item.quantity
td= item.msrp
td= item.percentOff
td= item.cost()
button Delete Item



0 comments on commit 871d4b5

Please sign in to comment.