Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@

# CoffeeScript filters in Haml
# First: gem install coffee-filter
# require 'coffee-filter'
require 'coffee-filter'

mime_type "appcache", "text/cache-manifest"

# Automatic image dimensions on image_tag helper
# activate :automatic_image_sizes
Expand Down Expand Up @@ -62,7 +64,7 @@
set :css_dir, "css"

# Change the JS directory
# set :js_dir, "alternative_js_directory"
set :js_dir, "js"

# Change the images directory
# set :images_dir, "alternative_image_directory"
Expand Down
15 changes: 15 additions & 0 deletions source/app.appcache
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
CACHE MANIFEST

CACHE:
index.html
templates/templates.html
css/bootstrap.css?v=1
css/site.css?v=1
js/modernizr.js
js/respond.js
http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.js
js/hogan.js
js/underscore.js
js/json2.js
js/backbone.js
js/app.js?v=1
3 changes: 3 additions & 0 deletions source/css/site.css.sass
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
body
padding-top: 60px

.templates
display: none

#info
text-align: justify
41 changes: 15 additions & 26 deletions source/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<!--[if IE 7]> <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if gt IE 8]><!-->
%html.no-js{ :lang => "en" }
/ %html.no-js{ :lang => "en", :manifest => "app.appcache" }
%html.no-js{ :lang => "en"}
<!--<![endif]-->
%head
%meta{ :charset => "utf-8" }/
Expand Down Expand Up @@ -39,34 +40,14 @@
%ul.nav
%li.active
%a{:href => "#"} About
/ %li
/ %a{:href => "#about"} About
/ %li
/ %a{:href => "#contact"} Contact
%li
%a{:href => "#privacy"} Privacy
%li
%a{:href => "#refund"} Refund
.container
/ Main hero unit for a primary marketing message or call to action
.hero-unit#info
%h1 Roman Dolgiy
%br
%p
An energetic and experienced Python Developer with strong system administration skills. Skilled in Data Modeling, Object-Oriented Development and the MVC architecture. Driven to deliver functional, polished applications using the latest technologies.

%p
Able to manage small team. Familiar with Agile Methodology, like to automate everything (testing, deployment, server configuration, Continuous Integration).

%p Django addicted. Love open source.

/ %p
/ Last few months I was also working as a frontend developer using latest technologies such as Haml, Compass/Sass, CoffeeScript, Backbone.js.

%p
%a{ :href => "https://github.com/t0ster" } Github profile
%br
%a{ :href => "http://ua.linkedin.com/in/t0ster" } LinkedIn profile
%p
%a.btn.primary.large{ :href => "https://www.odesk.com/users/~~3323ae14fbd2b8ac" } Hire me on oDesk »
%p
%a.btn.primary.large{ :href => "http://dl.dropbox.com/u/407968/CV.pdf" } Actual CV »
Loading...
/ Example row of columns
/ .row
/ .span16
Expand All @@ -84,6 +65,12 @@
:javascript
window.jQuery || document.write("<script src='js/jquery.js'>\x3C/script>")

%script{ :src => "js/hogan.js" }
%script{ :src => "js/underscore.js" }
%script{ :src => "js/json2.js" }
%script{ :src => "js/backbone.js" }
%script{ :src => "js/app.js?v=1" }

-# %script{ :src => "js/plugins.js?v=1" }
-# %script{ :src => "js/script.js?v=1" }

Expand All @@ -93,3 +80,5 @@
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=("https:"==location.protocol?"//ssl":"//www")+".google-analytics.com/ga.js";
s.parentNode.insertBefore(g,s)}(document,"script"));

.templates
27 changes: 27 additions & 0 deletions source/js/app.js.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@app = window.app ? {}

jQuery ->
# Loading and compiling templates at first
$.get('templates/templates.html', (data) ->
$('.templates').html(data)
app.templates = {}
app.templates.Home = Hogan.compile($(".templates #home").html())
app.templates.Privacy = Hogan.compile($(".templates #privacy").html())
app.templates.Refund = Hogan.compile($(".templates #refund").html())
# --

class AppRouter extends Backbone.Router
routes:
':page': 'show'
show: (page) ->
template = {
'': app.templates.Home,
'privacy': app.templates.Privacy,
'refund': app.templates.Refund,
}[page]
$('#info').html(template.render())

app.AppRouter = AppRouter
app.router = new app.AppRouter
Backbone.history.start()
)
Loading