Skip to content

Commit

Permalink
added styling
Browse files Browse the repository at this point in the history
  • Loading branch information
abarnhard committed Aug 21, 2014
1 parent 21f70de commit 727e3e8
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 14 deletions.
4 changes: 4 additions & 0 deletions app/helpers/link-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ exports.allowLink = function(t){
return s;
};

exports.displayFound = function(found){
var img = found ? 'open-chest.png' : 'closed-chest.png';
return '<img src="/img/'+img+'" height="50px" width="50px" />';
};
2 changes: 1 addition & 1 deletion app/static/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion app/static/css/style.less
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
@base: #f938ab;
@import url(http://fonts.googleapis.com/css?family=Trade+Winds);

body{
background-image: url(/img/piratebg.jpeg);
background-size: cover;
}

h2 {
font-family: 'Trade Winds', cursive;
}

.navbar {
margin-top: 15px;
font-family: 'Trade Winds', cursive;
}

.inserted {
Expand Down
Binary file added app/static/img/closed-chest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/static/img/open-chest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 5 additions & 10 deletions app/views/home/index.jade
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
extends ../shared/template
block content
h2 Home
h2 Welcom Back Matey
.panel.panel-default
.panel-body
h4 Bootstrap Themes and Templates
ul
li: a(href='http://bootswatch.com/', target='_blank') http://bootswatch.com/
li: a(href='http://bootstrapzero.com/', target='_blank') http://bootstrapzero.com/
li: a(href='http://startbootstrap.com/', target='_blank') http://startbootstrap.com/
li: a(href='http://www.prepbootstrap.com/', target='_blank') http://www.prepbootstrap.com/
li: a(href='http://www.blacktie.co/', target='_blank') http://www.blacktie.co/
li: a(href='https://bootstrapmaster.com/', target='_blank') https://bootstrapmaster.com/
li: a(href='http://bootstrapstyler.com/', target='_blank') http://bootstrapstyler.com/
h4 Yarr!
p Jack Tar yawl cutlass rope's end fore pinnace careen cog haul wind crack Jennys tea cup. Haul wind gangplank measured fer yer chains warp topgallant loaded to the gunwalls yard Chain Shot crack Jennys tea cup provost. Lee squiffy lugsail wench barque quarterdeck Sail ho scourge of the seven seas hardtack draft.
p Chantey doubloon Blimey ballast hempen halter spyglass bucko list prow jury mast. Scuttle strike colors topmast pink brig ho schooner tack killick piracy. Gold Road draught stern pinnace gun schooner aft yo-ho-ho Spanish Main Sink me.
p Topgallant gaff haul wind holystone chandler rigging gally long clothes gibbet lugger. American Main salmagundi wherry shrouds rigging avast yawl grog ho lateen sail. Red ensign take a caulk boatswain brigantine hulk Jack Tar reef parrel transom main sheet.

block scripts
script(src='/js/user/home.js')
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/nav.jade
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

.collapse.navbar-collapse#bs-navbar-collapse
ul.nav.navbar-nav.navbar-right
li: a(href='/treasures') Treasures
li: a(href='/treasures/new') New Treasure
li: a(href='/treasures') View Treasures

2 changes: 1 addition & 1 deletion app/views/treasures/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ block content
td= linkBuilder.difficulty(treasure.difficulty)
td!= linkBuilder.tags(query, treasure.tags)
td= treasure.order
td= treasure.isFound
td!= linkBuilder.displayFound(treasure.isFound)

block scripts
script(src='/js/user/treasures.js')
Expand Down

0 comments on commit 727e3e8

Please sign in to comment.