Skip to content

Commit

Permalink
Style the welcome page.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Aug 18, 2012
1 parent 99b22ed commit 8384c91
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions lib/locomotive/cli/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,25 @@ var mainTemplate = [
'<!DOCTYPE html>'
, '<html>'
, ' <head>'
, ' <title>Locomotive</title>'
, ' <title><%= title %></title>'
, ' <link rel="stylesheet" href="/stylesheets/style.css" />'
, ' </head>'
, ' <body>'
, ' <h2>Welcome to <%= title %></h2>'
, ' <h1><%= title %></h1>'
, ' <p>Welcome aboard! Visit <a href="http://locomotivejs.org/">locomotivejs.org</a> for details.</p>'
, ' </body>'
, '</html>'
].join(eol);

var cssStylesheet = [
'body {'
, ' padding: 50px;'
, ' font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;'
, '}'
, ''
, 'a {'
, ' color: #00B7FF;'
, '}'
].join(eol);

var routesTemplate = [
Expand Down Expand Up @@ -225,6 +237,10 @@ function createApplicationAt(path) {
});

mkdir(path + '/public');
mkdir(path + '/public/stylesheets', function(){
write(path + '/public/stylesheets/style.css', cssStylesheet);
});

write(path + '/package.json', packageJSON);
});
}
Expand Down

0 comments on commit 8384c91

Please sign in to comment.