[Blueprint] Make a welcome page for blueprint that works with the stylesheets to provide a complete working example.

This commit is contained in:
Chris Eppstein 2009-08-16 18:24:16 -07:00
parent ac264606c8
commit 2cfc9ef1f9
3 changed files with 14 additions and 4 deletions

View File

@ -4,3 +4,5 @@ stylesheet 'print.sass', :media => 'print'
stylesheet 'ie.sass', :media => 'screen, projection', :condition => "lt IE 8"
image 'grid.png'
html 'welcome.html.haml', :erb => true

View File

@ -38,3 +38,10 @@ body.three-col
!content_columns = ceil(2 * !blueprint_grid_columns / 3)
// true means it's the last column in the row
+column(!content_columns, true)
// This is just here to style the welcome page, please delete it.
body#welcome
#container
+container
h1
+column(24)

View File

@ -3,10 +3,11 @@
%html(xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en")
%head
%title Welcome to Compass & Blueprint
%link(rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen, projection")
%link(href="stylesheets/print.css" media="print" rel="stylesheet" type="text/css")
%link(rel="stylesheet" href="<%= http_stylesheets_path %>/screen.css" type="text/css" media="screen, projection")
%link(href="<%= http_stylesheets_path %>/print.css" media="print" rel="stylesheet" type="text/css")
/[if lt IE 8]
%link(href="stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css")
%link(href="<%= http_stylesheets_path %>/ie.css" media="screen, projection" rel="stylesheet" type="text/css")
%body#welcome.bp
#container
%h1 Welcome to Compass!
%p This is <%= "ERB" %>