diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..380f594 Binary files /dev/null and b/.DS_Store differ diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..41e64c1 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +gem 'sinatra' +gem 'compass' +gem 'haml' +gem 'sass' \ No newline at end of file diff --git a/README b/README new file mode 100644 index 0000000..e69de29 diff --git a/application.rb b/application.rb new file mode 100644 index 0000000..a1b49d9 --- /dev/null +++ b/application.rb @@ -0,0 +1,21 @@ +require 'sinatra' +#require 'sinatra/compass' +require 'haml' +require 'sass' + + +set :haml, :format => :html5 + + +get '/' do + haml :index +end + +get '/:path' do + haml params[:path].to_sym +end + +get '/style.css' do + content_type 'text/css', :charset => 'utf-8' + scss :style +end diff --git a/config.ru b/config.ru new file mode 100644 index 0000000..aeb482e --- /dev/null +++ b/config.ru @@ -0,0 +1,5 @@ +#require 'rubygems' +require 'sinatra' +require 'haml' +require 'compass' +run Sinatra::Application diff --git a/css/style.scss b/css/style.scss new file mode 100644 index 0000000..0e219f5 --- /dev/null +++ b/css/style.scss @@ -0,0 +1,6 @@ +body { + background-color: #000; + a { + text-decoration: none; + } +} \ No newline at end of file diff --git a/public/.DS_Store b/public/.DS_Store new file mode 100644 index 0000000..1608e39 Binary files /dev/null and b/public/.DS_Store differ diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..e69de29 diff --git a/views/.DS_Store b/views/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/views/.DS_Store differ diff --git a/views/index.haml b/views/index.haml new file mode 100644 index 0000000..6670599 --- /dev/null +++ b/views/index.haml @@ -0,0 +1,2 @@ +%h1 What Up +%h2 Yeya \ No newline at end of file diff --git a/views/layout.haml b/views/layout.haml new file mode 100644 index 0000000..aa46ee1 --- /dev/null +++ b/views/layout.haml @@ -0,0 +1,10 @@ +!!! +%html{:lang => "en", "xml:lang" => "en", :xmlns => "http://www.w3.org/1999/xhtml"} + %head + %meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}/ + %title Squiid + %link{:href => "assets/css/style.css", :media => "all", :rel => "stylesheet", :type => "text/css"}/ + %body + .container + =yield + \ No newline at end of file diff --git a/views/style.scss b/views/style.scss new file mode 100644 index 0000000..113d05e --- /dev/null +++ b/views/style.scss @@ -0,0 +1,10 @@ +body { + a { + text-decoration: none; + } +} + +.container { + width: 960px; + margin: 0 auto; +} \ No newline at end of file