/
index.haml
90 lines (77 loc) · 3.42 KB
/
index.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
!!!
%html
%head
%title Andrew Cholakian
%link{:rel => 'stylesheet', :href => 'stylesheets/main.css'}
%script{:type => 'text/javascript', :src =>"http://use.typekit.com/bdt6jhf.js"}
:javascript
try{Typekit.load();}catch(e){}
%script{:type => 'text/javascript', :src => 'https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js'}
%script{:type => 'text/javascript', :src => 'js/main.js'}
:erb
<script type='text/javascript'>
var galleryPhotos = <%= @photos.map {|p| {:filename => p.filename,
:cssId => "photo-#{p.filename.chomp(File.extname(p.filename))}",
:title => p.title,
:fullUrl => url_for_photo(p,:large)} }.to_json %>;
</script>
%body
%h1#main-graphic
%a{:href => '/'}
%img{:src => 'images/main-graphic.png', :alt => 'Andrew Cholakian'}
#h1-text Andrew Cholakian
#about
%h2 About Andrew:
%p I've been shooting for years, it's one of my genuine passions, along with computing. I currently work as a programmer, generally Ruby and Javascript, and still shoot when time is permitting.
%h2 Photographic Notes
%p All photos are shot with either Canon digital cameras or vintage 35mm or 120mm film cameras.
%h2 Code:
%p
The most up to date listing of my code is on
%a{:href => 'https://github.com/andrewvc', :target => '_blank'} Github
, but I have a less frequently updated, and more curated list below:
%ul#code
%li
%a{:href => 'https://github.com/andrewvc/parbench'} Parbench
\: HTTP Load Tester / Visualization tool (Clojure)
%li
%a{:href => 'http://github.com/andrewvc/dripdrop'} DripDrop
\: ZeroMQ / EventMachine based concurrency framework (Ruby).
%li
%a{:href => 'http://github.com/andrewvc/em-zeromq'} em-zeromq
\: EventMachine zeromq bindings (Ruby).
%li
%a{:href => 'http://github.com/andrewvc/little_hat'} Little Hat
\: What generates this site (Ruby)
%li
%a{:href => 'http://github.com/andrewvc/node-streamlogger'} Node Streamlogger
\: Logging library for Node JS with a focus on customization (node.js).
%p
\--
%strong
%em
Andrew Cholakian
#photo-thumbs
%h2 Photography
- @photos.every(4).each do |row|
.photo-row
- row.each do |photo|
.photo-frame
.photo-container
%a{:title => photo.title, :rel => 'gal', :href => url_for_photo(photo, :large), :id => "photo-#{photo.filename[0...-4]}", :target => '_blank'}
%img{:src => url_for_photo(photo, :index), :alt => photo.title}
#full-photo-cont{:style => 'display: none'}
#photo-meta
%span#full-photo-title
%a#prev-photo{:href => '#'} « Prev.
%a#next-photo{:href => '#'} Next »
#blog
%h2 Programming
- @blog_posts.each do |post|
.blog-post
- ttext = post[:title].length > 52 ? "#{post[:title][0..52]}..." : post[:title]
%a.title{:href => post[:link], :target => '_blank'}= "#{ttext} ⇒"
// Used during gallery view only, so hidden till then
#return-home{:style => 'display: none'}
%a{:href => '/', :id => 'go-home'}
\← Return Home