Permalink
Browse files

Moved to Sinatra

  • Loading branch information...
soffes committed Nov 6, 2009
1 parent 4a90295 commit d4801bd1d0314ff6fd314e3da461912825b58071
View
13 app.rb
@@ -0,0 +1,13 @@
+require 'rubygems'
+require 'sinatra'
+
+set :app_file, __FILE__
+set :root, File.dirname(__FILE__)
+
+before do
+ content_type 'text/html', :charset => 'utf-8'
+end
+
+get '/?' do
+ erb :home
+end
View
@@ -0,0 +1,8 @@
+require 'rubygems'
+require 'sinatra'
+require 'app.rb'
+
+set :environment, :production
+set :run, false
+
+run Sinatra::Application
View
@@ -0,0 +1,8 @@
+project_type = :stand_alone
+http_path = "/"
+css_dir = "public/stylesheets"
+sass_dir = "views/stylesheets"
+images_dir = "public/images"
+http_images_path = "/images"
+http_stylesheets_path = "/stylesheets"
+output_style = :compressed
View
Binary file not shown.
View
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,6 @@
+addEventListener('load', function() {
+ setTimeout(hideAddressBar, 0);
+}, false);
+function hideAddressBar() {
+ window.scrollTo(0, 1);
+}
View
@@ -0,0 +1,2 @@
+User-Agent: *
+Allow: /

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -0,0 +1,18 @@
+<h2>What I Do</h2>
+<p>My name is Sam Soffes. I create amazing iPhone, Mac, and web software (or anything you could ever imagine) at <a href="http://tastefulworks.com/" rel="external nofollow">Tasteful Works</a>.</p>
+
+<h2>What I've Done</h2>
+<p>I founded <a href="http://trimonix.com/" rel="external nofollow">Trimonix</a> a few years ago and released a <a href="http://trimonix.com/countdown-maker" rel="external nofollow">Mac app</a> (and a <a href="http://trimonix.com/mistletoed" rel="external nofollow">fun little iPhone app</a>). I used to write <a href="http://youversion.com/iphone" rel="external nofollow">iPhone apps</a> and <a href="http://youversion.com/" rel="external nofollow">large scale web applications</a> at <a href="http://lifechurch.tv/" rel="external nofollow">LifeChurch.tv</a>.
+
+<h2>Contact Me</h2>
+<p>The best way to get in touch with me is email, but here are some alternatives. If you want me to turn your dreams into software, email <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;%68%69%72%65%75%73@%74%61%73%74%65%66%75%6c%77%6f%72%6b%73.%63%6f%6d">hireus@tastefulworks.com</a> and we'll get you taken care of.</p>
+
+<ul class="contact clear">
+ <li><span>Read:</span> <a href="http://samsoff.es/">http://samsoff.es</a></li>
+ <li><span>Email:</span> <a href="&#109;&#097;&#105;&#108;&#116;&#111;&#058;&#115;&#97;m&#x40;s&#97;&#x6d;&#x73;&#x6f;f&#x66;&#x2e;&#101;s">&#115;&#97;m&#x40;s&#97;&#x6d;&#x73;&#x6f;f&#x66;&#x2e;&#101;s</a></li>
+ <li><span>Call:</span> <a href="tel:+1-405-935-3653">(415) 935-3653</a></li>
+</ul>
+<ul class="contact two clear">
+ <li><span>Tweet:</span> <a href="http://twitter.com/samsoffes" rel="external nofollow">samsoffes</a></li>
+ <li><span>IM:</span> <a href="gtalk:chat?jid=samsoffes@gmail.com">samsoffes@gmail.com</a></li>
+</ul>
View
@@ -0,0 +1,32 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+ <meta http-equiv="Content-Style-Type" content="text/css" />
+ <title>i turn dreams into software</title>
+ <link rel="stylesheet" href="http://<%= env["HTTP_HOST"] %>/stylesheets/screen.css" type="text/css" />
+ <link rel="stylesheet" href="http://<%= env["HTTP_HOST"] %>/stylesheets/iphone.css" type="text/css" media="only screen and (max-device-width: 480px)" />
+ <meta name="viewport" content="width=320, initial-scale=1.0, user-scalable=no" />
+ <script src="http://<%= env["HTTP_HOST"] %>/javascripts/cufon.js" type="text/javascript"></script>
+ <script src="http://<%= env["HTTP_HOST"] %>/javascripts/Bistro_Script_400.font.js" type="text/javascript"></script>
+ <script src="http://<%= env["HTTP_HOST"] %>/javascripts/Nilland_400-Nilland_700.font.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ Cufon.replace('h1, ul.contact span', { fontFamily: 'Bistro Script' });
+ Cufon.replace('h2', { fontFamily: 'Nilland' });
+ </script>
+ <!--
+ View source code at GitHub: http://github.com/samsoffes/iturndreamsintosoftware.com
+ Best viewed in a WebKit browser (like Safari 4) for all of the CSS goodness
+ -->
+ </head>
+
+ <body>
+ <div id="border"></div>
+ <div id="container">
+ <h1><a href="http://<%= env["HTTP_HOST"] %>/">i turn dreams into software</a></h1>
+ <%= yield %>
+ </div>
+ <script type="text/javascript" src="http://<%= env["HTTP_HOST"] %>/javascripts/iphone.js"></script>
+ <script type="text/javascript">var gaJsHost=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");document.write(unescape("%3Cscript src='"+gaJsHost+"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));</script><script type="text/javascript">try{var pageTracker=_gat._getTracker("UA-5609322-4");pageTracker._trackPageview();}catch(err){</script>
+ </body>
+</html>
@@ -0,0 +1,32 @@
+html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td
+ margin: 0
+ padding: 0
+ border: 0
+ outline: 0
+ font-weight: inherit
+ font-style: inherit
+ font-size: 100%
+ font-family: inherit
+ vertical-align: baseline
+
+body
+ line-height: 1
+ color: black
+ background: white
+
+ol, ul
+ list-style: none
+
+table
+ border-collapse: separate
+ border-spacing: 0
+
+caption, th, td
+ text-align: left
+ font-weight: normal
+
+blockquote:before, blockquote:after, q:before, q:after
+ content: ""
+
+blockquote, q
+ quotes: "" ""
@@ -0,0 +1,26 @@
+body
+ width: 320px
+ padding: 0
+ margin: 0
+
+h1
+ margin: 0
+ width: 280px
+ height: 165px
+ overflow: hidden
+
+div#border
+ border: 0
+ margin: 0
+
+div#container
+ width: 280px
+ margin: 0
+ padding: 20px
+ font-size: 16px
+
+ul.contact li, ul.contact.two li
+ float: none
+ margin-bottom: 0.3em
+ width: auto
+ text-align: left
@@ -0,0 +1,81 @@
+// My simple reset
+@import reset.sass
+
+// Easy clear
+.clear:after
+ clear: both
+ content: " "
+ display: block
+ height: 0
+ zoom: 1
+
+// General
+body
+ background= #f4f4f3
+ color: #455b75
+ font:
+ family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Arial, Helvetica, sans-serif
+ size: 18px
+ weight: 300
+
+a
+ border-bottom: 1px dotted #cfdae5
+ color: #455b75
+ text-decoration: none
+// white-space: nowrap
+a:hover
+ border-bottom: 1px solid
+ color: #92abc1
+
+h1
+ font-size: 68px
+ margin: 50px 0
+ a
+ color: #f05b35
+ border: 0
+ a:hover
+ border: 0
+
+h2
+ background= image_url("lightning.png") "no-repeat 0 10px"
+ color: #445b75
+ font:
+ size: 26px
+ weight: bold
+ padding-left: 40px
+ text-transform: lowercase
+ margin-bottom: 4px
+
+p
+ margin-bottom: 1em
+ line-height: 26px
+
+div#border
+ margin-top: 20px
+ border-top: 1px dashed #c0d4e7
+
+div#container
+ width: 580px
+ margin: 0 auto 30px
+
+ul.contact
+ color: #7e8c9c
+ font-size: 15px
+ margin-bottom: 0.5em
+ a
+ color: #7e8c9c
+ border: 0
+ a:hover
+ border-bottom: 1px solid
+ li
+ float: left
+ width: 33%
+ text-align: center
+ span
+ font-size: 22px
+ text-transform: lowercase
+ position: relative
+ top: -1px
+
+ul.contact.two li
+ width: 49%

0 comments on commit d4801bd

Please sign in to comment.