]> git.example.dev Git - binbsis50.git/commitdiff
changed main font to Droid Sans
authorLuigi Pinca <luigipinca@gmail.com>
Fri, 14 Aug 2015 13:50:27 +0000 (15:50 +0200)
committerLuigi Pinca <luigipinca@gmail.com>
Fri, 14 Aug 2015 13:50:27 +0000 (15:50 +0200)
lib/captcha.js
public/css/style.css
views/layout.jade

index 7d89d6b1a759f0c715ce9369e90437521c071c50..adba350f28a5745f91ce2ca81e68849372f936a0 100644 (file)
@@ -13,7 +13,7 @@ var canvas = require('canvas')
 
 function Captcha() {
   this.code = '';
-  this.canvas = new canvas(64, 26);
+  this.canvas = new canvas(74, 26);
   this.initialize();
 }
 
@@ -29,12 +29,12 @@ Captcha.prototype.initialize = function() {
   var ctx = this.canvas.getContext('2d');
 
   ctx.fillStyle = '#DDDDDD';
-  ctx.fillRect(0, 0, 64, 26);
-  ctx.font = 'bold 20px Helvetica';
+  ctx.fillRect(0, 0, 74, 26);
+  ctx.font = '20px DroidSans';
   ctx.lineWidth = 1;
   ctx.textAlign = 'center';
-  ctx.strokeStyle = '#080';
-  ctx.strokeText(this.code, 31, 20);
+  ctx.fillStyle = '#080';
+  ctx.fillText(this.code, 36, 20);
   ctx.save();
 };
 
index 5d6cc7f52d85bed784287c1461daa481fc57b3d4..487b050a237c663bbfd25342f02093bc08e1e8f7 100644 (file)
@@ -9,6 +9,7 @@
 }
 body {
   background: url('/static/img/bg.jpg') repeat-x scroll 0 0 #F5F6F7;
+  font-family: 'Droid Sans', Helvetica, Arial, sans-serif;
   padding-top: 45px;
 }
 section {
@@ -112,7 +113,7 @@ form .clearfix {
   width: 122px;
 }
 #captcha {
-  margin-right: 20px;
+  margin-right: 10px;
 }
 .page-header {
   padding: 0;
index 72724eb057400efecae48230babdc3bc8b1e8131..574fd0c929f21cb3ae7f992862ee03aa2f1cfeed 100644 (file)
@@ -10,6 +10,7 @@ html
     meta(property="og:title", content="binb")
     meta(property="og:type", content="game")
     meta(property="og:url", content="https://binb.co/")
+    link(href="//fonts.googleapis.com/css?family=Droid+Sans:400,700", rel="stylesheet")
     link(href="/static/css/bootstrap.min.css", rel="stylesheet")
     link(href="/static/css/style.css", rel="stylesheet")
     script.