forked from fabiolb/fabio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logo.go
89 lines (85 loc) · 12.6 KB
/
logo.go
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
package ui
import "net/http"
func HandleLogo(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "image/svg+xml")
if r.FormValue("format") == "bw" {
w.Write(logoBW)
} else {
w.Write(logo)
}
}
var logo = []byte(`<?xml version="1.0" encoding="UTF-8"?>
<svg width="749px" height="145px" viewBox="0 0 749 145" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 43 (38999) - http://www.bohemiancoding.com/sketch -->
<title>logo-with-font</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="logo-with-font">
<path d="M311.96875,144 L311.96875,37.359375 L412.125,37.359375 L412.125,49.859375 L326.1875,49.859375 L326.1875,83.609375 L408.296875,83.609375 L408.296875,96.109375 L326.1875,96.109375 L326.1875,144 L311.96875,144 Z M431.1875,92.125 L419,92.125 C418.895833,90.7708266 418.84375,89.7031289 418.84375,88.921875 C418.84375,81.1614195 421.760387,75.8750141 427.59375,73.0625 C433.427113,70.2499859 444.364503,68.84375 460.40625,68.84375 C473.01048,68.84375 482.072889,69.4166609 487.59375,70.5625 C493.114611,71.7083391 497.437484,73.8958172 500.5625,77.125 C503.16668,79.7291797 504.859371,82.8020656 505.640625,86.34375 C506.421879,89.8854344 506.8125,96.0832891 506.8125,104.9375 L506.8125,144 L495.171875,144 L495.40625,135.328125 L494.78125,135.328125 C491.864569,139.390645 488.362,142.007807 484.273438,143.179688 C480.184875,144.351568 472.463598,144.9375 461.109375,144.9375 C448.14056,144.9375 439.130234,144.625003 434.078125,144 C429.026016,143.374997 425.19793,142.072927 422.59375,140.09375 C419.98957,138.218741 418.179693,135.97918 417.164062,133.375 C416.148432,130.77082 415.640625,127.125023 415.640625,122.4375 C415.640625,116.708305 416.408846,112.307307 417.945312,109.234375 C419.481779,106.161443 422.072898,103.869799 425.71875,102.359375 C429.677103,100.640616 438.921802,99.78125 453.453125,99.78125 C468.661534,99.78125 478.609352,100.236975 483.296875,101.148438 C487.984398,102.0599 491.604154,104.260399 494.15625,107.75 L495.171875,107.75 L495.171875,99.78125 C495.171875,93.2708008 494.000012,88.5833477 491.65625,85.71875 C489.572906,83.1666539 486.408875,81.4349004 482.164062,80.5234375 C477.91925,79.6119746 470.979215,79.15625 461.34375,79.15625 C448.687437,79.15625 440.497414,79.8984301 436.773438,81.3828125 C433.049461,82.8671949 431.1875,86.10935 431.1875,91.109375 L431.1875,92.125 Z M461.1875,110.171875 C451.552035,110.171875 444.807311,110.341144 440.953125,110.679688 C437.098939,111.018231 434.364591,111.656245 432.75,112.59375 C429.677068,114.416676 428.140625,117.776017 428.140625,122.671875 C428.140625,127.515649 429.963523,130.796866 433.609375,132.515625 C436.57814,133.921882 446.57804,134.625 463.609375,134.625 C476.057354,134.625 484.286438,133.817716 488.296875,132.203125 C492.307312,130.588534 494.3125,127.307316 494.3125,122.359375 C494.3125,117.567684 492.072939,114.33855 487.59375,112.671875 C483.114561,111.0052 474.312566,110.171875 461.1875,110.171875 Z M519.625,37.359375 L531.34375,37.359375 L531.34375,78.765625 L532.046875,78.765625 C534.703138,74.8072719 538.231749,72.1770898 542.632812,70.875 C547.033876,69.5729102 554.494739,68.921875 565.015625,68.921875 C577.25527,68.921875 585.953099,69.3124961 591.109375,70.09375 C596.265651,70.8750039 600.484359,72.4374883 603.765625,74.78125 C607.880229,77.7500148 610.822908,81.4739359 612.59375,85.953125 C614.62501,91.1094008 615.640625,98.4530773 615.640625,107.984375 C615.640625,118.505261 614.078141,126.395807 610.953125,131.65625 C606.838521,138.531284 599.41672,142.671868 588.6875,144.078125 C584.260395,144.651045 577.046925,144.9375 567.046875,144.9375 C555.223899,144.9375 547.08596,144.286465 542.632812,142.984375 C538.179665,141.682285 534.57293,138.869813 531.8125,134.546875 L531.1875,134.546875 L531.1875,144 L519.625,144 L519.625,37.359375 Z M565.25,79.234375 C557.489545,79.234375 551.617207,79.5468719 547.632812,80.171875 C543.648418,80.7968781 540.562511,81.9166586 538.375,83.53125 C535.666653,85.4062594 533.75261,88.140607 532.632812,91.734375 C531.513015,95.328143 530.953125,100.4583 530.953125,107.125 C530.953125,115.927127 531.890616,121.994775 533.765625,125.328125 C535.953136,129.130227 539.455705,131.643223 544.273438,132.867188 C549.09117,134.091152 558.036393,134.703125 571.109375,134.703125 C577.932326,134.703125 583.166648,134.364587 586.8125,133.6875 C590.458352,133.010413 593.531237,131.812509 596.03125,130.09375 C598.531263,128.374991 600.34114,125.718768 601.460938,122.125 C602.580735,118.531232 603.140625,113.557323 603.140625,107.203125 C603.140625,98.7134992 602.151052,92.5937688 600.171875,88.84375 C598.088531,84.9374805 594.781273,82.3593812 590.25,81.109375 C585.718727,79.8593688 577.385477,79.234375 565.25,79.234375 Z M627.359375,69.859375 L639.078125,69.859375 L639.078125,144 L627.359375,144 L627.359375,69.859375 Z M627.359375,37.359375 L639.078125,37.359375 L639.078125,51.265625 L627.359375,51.265625 L627.359375,37.359375 Z M696.421875,68.921875 C708.0886,68.921875 716.695285,69.273434 722.242188,69.9765625 C727.78909,70.679691 732.124984,71.9687406 735.25,73.84375 C739.937523,76.6562641 743.322906,80.6536199 745.40625,85.8359375 C747.489594,91.0182551 748.53125,98.0624555 748.53125,106.96875 C748.53125,116.864633 747.281263,124.390599 744.78125,129.546875 C742.958324,133.453145 740.523453,136.499989 737.476562,138.6875 C734.429672,140.875011 730.432316,142.463537 725.484375,143.453125 C720.692684,144.442713 712.724014,144.9375 701.578125,144.9375 C691.057239,144.9375 683.11461,144.585941 677.75,143.882812 C672.38539,143.179684 668.036475,141.916676 664.703125,140.09375 C659.755184,137.437487 656.213552,133.518255 654.078125,128.335938 C651.942698,123.15362 650.875,115.901088 650.875,106.578125 C650.875,96.1614062 652.411443,88.2708602 655.484375,82.90625 C658.609391,77.3853891 662.932264,73.6875094 668.453125,71.8125 C673.973986,69.9374906 683.296809,68.9739586 696.421875,68.921875 Z M698.296875,79.234375 C690.53642,79.234375 684.677103,79.5208305 680.71875,80.09375 C676.760397,80.6666695 673.609387,81.7083258 671.265625,83.21875 C668.505195,84.9895922 666.500006,87.7890434 665.25,91.6171875 C663.999994,95.4453316 663.375,100.666634 663.375,107.28125 C663.375,114.781287 664.208325,120.393211 665.875,124.117188 C667.541675,127.841164 670.40623,130.484367 674.46875,132.046875 C678.947939,133.765634 687.67181,134.625 700.640625,134.625 C709.078167,134.625 715.289043,134.312503 719.273438,133.6875 C723.257832,133.062497 726.421863,131.890634 728.765625,130.171875 C731.369805,128.348949 733.231765,125.614602 734.351562,121.96875 C735.47136,118.322898 736.03125,113.192741 736.03125,106.578125 C736.03125,98.7655859 735.145842,93.0364766 733.375,89.390625 C731.395823,85.3281047 728.101586,82.6197984 723.492188,81.265625 C718.882789,79.9114516 710.484436,79.234375 698.296875,79.234375 Z" id="Fabio" fill="#4294D3"></path>
<rect id="Rectangle-path" fill="#4294D3" fill-rule="nonzero" x="96" y="0" width="80" height="40" rx="10"></rect>
<rect id="Rectangle-path" fill="#4294D3" fill-rule="nonzero" x="0" y="104" width="80" height="40" rx="10"></rect>
<rect id="Rectangle-path" fill="#4294D3" fill-rule="nonzero" x="96" y="104" width="80" height="40" rx="10"></rect>
<rect id="Rectangle-path" fill="#21BDF0" fill-rule="nonzero" x="192" y="104" width="80" height="40" rx="10"></rect>
<path d="M136,48 L136,96" id="Shape" stroke="#21BDF0" stroke-width="6" fill="#000000" fill-rule="nonzero" stroke-linecap="round"></path>
<path d="M40,80 L40,96" id="Shape" stroke="#21BDF0" stroke-width="6" fill="#000000" fill-rule="nonzero" stroke-linecap="round"></path>
<path d="M232,80 L232,96" id="Shape" stroke="#21BDF0" stroke-width="6" fill="#000000" fill-rule="nonzero" stroke-linecap="round"></path>
<path d="M80,64 L192,64" id="Shape" stroke="#21BDF0" stroke-width="6" fill="#000000" fill-rule="nonzero" stroke-linecap="round"></path>
<path d="M80,64 L40,80" id="Shape" stroke="#21BDF0" stroke-width="6" fill="#000000" fill-rule="nonzero" stroke-linecap="round"></path>
<path d="M192,64 L232,80" id="Shape" stroke="#21BDF0" stroke-width="6" fill="#000000" fill-rule="nonzero" stroke-linecap="round"></path>
</g>
</g>
</svg>`)
var logoBW = []byte(`<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 724.7 143.1" style="enable-background:new 0 0 724.7 143.1;" xml:space="preserve">
<style type="text/css">
.st0{enable-background:new ;}
.st1{fill:#FFFFFF;}
.st2{fill:#FFFFFF;stroke:#FFFFFF;stroke-width:6;stroke-linecap:round;}
</style>
<title>Fabio</title>
<g class="st0">
<path class="st1" d="M304.4,140V38.6H401v11.2h-82.9v32.3h79.7v11.2h-79.7V140H304.4z"/>
<path class="st1" d="M482.4,140v-7.1h-0.3c-0.8,1.6-1.8,2.9-2.8,4c-1,1.1-2.5,1.9-4.3,2.6c-1.8,0.7-4.2,1.1-7.1,1.3
c-2.9,0.2-6.7,0.4-11.3,0.4h-28.8c-4.6,0-8.3-0.5-11.3-1.5c-2.9-1-5.3-2.4-7-4.2c-1.7-1.8-2.9-4.1-3.6-6.7c-0.7-2.7-1-5.7-1-9v-4.8
c0-4,0.7-7.2,2.1-9.7s3.5-4.3,6.2-5.5c2.8-1.3,6.2-2.1,10.2-2.5c4.1-0.4,8.7-0.6,13.9-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.7,1.8,14.4V111c0,6.2-0.9,11.2-2.7,15.1c-1.8,3.9-4.4,7-7.6,9.2
c-3.3,2.2-7.2,3.7-11.8,4.6c-4.6,0.8-9.6,1.3-15,1.3h-16.8c-6.3,0-11.8-1-16.4-2.9s-7.7-5.1-9.5-9.5h-0.3V140H504.5z M583.7,110.9
v-14c0-4.1-0.5-7.4-1.5-10c-1-2.6-2.6-4.5-4.6-6c-2.1-1.4-4.6-2.4-7.8-2.9c-3.1-0.5-6.7-0.8-10.9-0.8h-16.2c-4.1,0-7.8,0.2-11,0.7
c-3.2,0.5-6,1.4-8.2,2.8c-2.2,1.4-4,3.4-5.2,6c-1.2,2.6-1.8,6.1-1.8,10.4v13.6c0,3.3,0.4,6.2,1.2,8.8c0.8,2.6,2.1,4.7,3.9,6.4
s4.2,3.1,7.3,4s6.8,1.4,11.3,1.4h19.6c4.9,0,8.8-0.4,12-1.3c3.1-0.8,5.6-2.1,7.3-3.8c1.8-1.7,3-3.8,3.6-6.4
S583.7,114.3,583.7,110.9z"/>
<path class="st1" d="M605.7,51.8V38.6h12v13.2H605.7z M605.7,140V68.6h12V140H605.7z"/>
<path class="st1" d="M628.5,112.1V96.5c0-5.9,1-10.7,2.9-14.4s4.7-6.7,8.2-8.9s7.7-3.7,12.5-4.5c4.9-0.8,10.1-1.2,15.8-1.2h17.2
c5.7,0,11,0.4,15.8,1.2c4.9,0.8,9,2.3,12.5,4.5s6.2,5.2,8.2,8.9s2.9,8.5,2.9,14.4v15.7c0,5.9-1,10.7-2.9,14.4
c-2,3.7-4.7,6.7-8.2,8.9s-7.7,3.7-12.5,4.5c-4.9,0.8-10.1,1.2-15.8,1.2H668c-5.7,0-11-0.4-15.8-1.2c-4.9-0.8-9-2.3-12.5-4.5
s-6.2-5.2-8.2-8.9C629.5,122.8,628.5,118,628.5,112.1z M712.7,111.4V97.2c0-4.2-0.6-7.6-1.8-10.2c-1.2-2.6-2.8-4.6-4.9-6
c-2.1-1.4-4.6-2.4-7.6-2.9c-2.9-0.5-6.1-0.8-9.6-0.8h-24.5c-3.5,0-6.8,0.3-9.7,0.8c-2.9,0.5-5.4,1.5-7.5,2.9
c-2.1,1.4-3.7,3.5-4.9,6c-1.2,2.6-1.8,6-1.8,10.2v14.3c0,4.2,0.6,7.6,1.8,10.1s2.8,4.6,4.9,6c2.1,1.4,4.6,2.4,7.5,2.9
c2.9,0.5,6.1,0.8,9.7,0.8h24.5c3.5,0,6.6-0.3,9.6-0.8c2.9-0.5,5.5-1.5,7.6-2.9c2.1-1.4,3.7-3.5,4.9-6S712.7,115.6,712.7,111.4z"/>
</g>
<path class="st1" d="M106,0h60c5.5,0,10,4.5,10,10v20c0,5.5-4.5,10-10,10h-60c-5.5,0-10-4.5-10-10V10C96,4.5,100.5,0,106,0z"/>
<path class="st1" d="M10,104h60c5.5,0,10,4.5,10,10v20c0,5.5-4.5,10-10,10H10c-5.5,0-10-4.5-10-10v-20C0,108.5,4.5,104,10,104z"/>
<path class="st1" d="M106,104h60c5.5,0,10,4.5,10,10v20c0,5.5-4.5,10-10,10h-60c-5.5,0-10-4.5-10-10v-20C96,108.5,100.5,104,106,104
z"/>
<path class="st1" d="M202,104h60c5.5,0,10,4.5,10,10v20c0,5.5-4.5,10-10,10h-60c-5.5,0-10-4.5-10-10v-20
C192,108.5,196.5,104,202,104z"/>
<line class="st2" x1="136" y1="48" x2="136" y2="96"/>
<line class="st2" x1="40" y1="80" x2="40" y2="96"/>
<line class="st2" x1="232" y1="80" x2="232" y2="96"/>
<line class="st2" x1="80" y1="64" x2="192" y2="64"/>
<line class="st2" x1="80" y1="64" x2="40" y2="80"/>
<line class="st2" x1="192" y1="64" x2="232" y2="80"/>
</svg>
`)