Skip to content
Merged
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
10 changes: 9 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,19 @@ namespace :svgs do
end
end

['scramble', 'reset'].each do |word|
[
'scramble',
'reset',
'done'
].each do |word|
FileUtils.mkdir_p "views/includes/svgs/misc"
File.open "views/includes/svgs/misc/#{word}.svg.erb", 'w' do |f|
f.write Nineteen::Eighty::Two::Formats::SVG.format word, {class: 'misc'}
end
end

File.open "views/includes/svgs/misc/404.svg.erb", 'w' do |f|
f.write Nineteen::Eighty::Two::Formats::SVG.format '404', {class: 'heading'}
end
end
end
32 changes: 32 additions & 0 deletions views/includes/svgs/misc/404.svg.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<svg class='heading' viewBox='0 0 24 8' xmlns='http://www.w3.org/2000/svg'>
<g>
<rect x='4' y='1' width='1' height='1' class='on' />
<rect x='10' y='1' width='4' height='1' class='on' />
<rect x='20' y='1' width='1' height='1' class='on' />
<rect x='3' y='2' width='2' height='1' class='on' />
<rect x='9' y='2' width='1' height='1' class='on' />
<rect x='13' y='2' width='2' height='1' class='on' />
<rect x='19' y='2' width='2' height='1' class='on' />
<rect x='2' y='3' width='1' height='1' class='on' />
<rect x='4' y='3' width='1' height='1' class='on' />
<rect x='9' y='3' width='1' height='1' class='on' />
<rect x='12' y='3' width='1' height='1' class='on' />
<rect x='14' y='3' width='1' height='1' class='on' />
<rect x='18' y='3' width='1' height='1' class='on' />
<rect x='20' y='3' width='1' height='1' class='on' />
<rect x='1' y='4' width='1' height='1' class='on' />
<rect x='4' y='4' width='1' height='1' class='on' />
<rect x='9' y='4' width='1' height='1' class='on' />
<rect x='11' y='4' width='1' height='1' class='on' />
<rect x='14' y='4' width='1' height='1' class='on' />
<rect x='17' y='4' width='1' height='1' class='on' />
<rect x='20' y='4' width='1' height='1' class='on' />
<rect x='1' y='5' width='6' height='1' class='on' />
<rect x='9' y='5' width='2' height='1' class='on' />
<rect x='14' y='5' width='1' height='1' class='on' />
<rect x='17' y='5' width='6' height='1' class='on' />
<rect x='4' y='6' width='1' height='1' class='on' />
<rect x='10' y='6' width='4' height='1' class='on' />
<rect x='20' y='6' width='1' height='1' class='on' />
</g>
</svg>
35 changes: 35 additions & 0 deletions views/includes/svgs/misc/done.svg.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<svg class='misc' viewBox='0 0 32 8' xmlns='http://www.w3.org/2000/svg'>
<g>
<rect x='5' y='1' width='1' height='1' class='on' />
<rect x='5' y='2' width='1' height='1' class='on' />
<rect x='10' y='2' width='3' height='1' class='on' />
<rect x='17' y='2' width='4' height='1' class='on' />
<rect x='26' y='2' width='3' height='1' class='on' />
<rect x='2' y='3' width='4' height='1' class='on' />
<rect x='9' y='3' width='1' height='1' class='on' />
<rect x='13' y='3' width='1' height='1' class='on' />
<rect x='17' y='3' width='1' height='1' class='on' />
<rect x='21' y='3' width='1' height='1' class='on' />
<rect x='25' y='3' width='1' height='1' class='on' />
<rect x='29' y='3' width='1' height='1' class='on' />
<rect x='1' y='4' width='1' height='1' class='on' />
<rect x='5' y='4' width='1' height='1' class='on' />
<rect x='9' y='4' width='1' height='1' class='on' />
<rect x='13' y='4' width='1' height='1' class='on' />
<rect x='17' y='4' width='1' height='1' class='on' />
<rect x='21' y='4' width='1' height='1' class='on' />
<rect x='25' y='4' width='4' height='1' class='on' />
<rect x='1' y='5' width='1' height='1' class='on' />
<rect x='5' y='5' width='1' height='1' class='on' />
<rect x='9' y='5' width='1' height='1' class='on' />
<rect x='13' y='5' width='1' height='1' class='on' />
<rect x='17' y='5' width='1' height='1' class='on' />
<rect x='21' y='5' width='1' height='1' class='on' />
<rect x='25' y='5' width='1' height='1' class='on' />
<rect x='2' y='6' width='4' height='1' class='on' />
<rect x='10' y='6' width='3' height='1' class='on' />
<rect x='17' y='6' width='1' height='1' class='on' />
<rect x='21' y='6' width='1' height='1' class='on' />
<rect x='26' y='6' width='4' height='1' class='on' />
</g>
</svg>
4 changes: 2 additions & 2 deletions views/oops.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%= erb :'includes/nav' %>

<h1>4:04</h1>
<%= erb :'includes/svgs/misc/404.svg' %>

<img src='/assets/images/404.jpg' />

<h2>Nothing to see here</h2>
<p class='text-center'>Nothing to see here</p>