From 3c851d9cdc8da26a0659df68b8fe20780260b261 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 31 Jan 2015 22:17:10 -0800 Subject: [PATCH] fix the about css --- controllers/about.moon | 1 + controllers/hire.moon | 15 +++++++++++++++ static/css/about/main.css | 6 +----- views/about.moon | 2 ++ 4 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 controllers/hire.moon diff --git a/controllers/about.moon b/controllers/about.moon index d8bf5eb..ba20799 100644 --- a/controllers/about.moon +++ b/controllers/about.moon @@ -6,6 +6,7 @@ lapis = require "lapis" class About extends lapis.Application [about: "/about"]: => @user, err = gh\get_authenticated_user() + @title = "About Me" if err @err = err diff --git a/controllers/hire.moon b/controllers/hire.moon new file mode 100644 index 0000000..d8bf5eb --- /dev/null +++ b/controllers/hire.moon @@ -0,0 +1,15 @@ +gh = require('github').new({access_token: os.getenv "GITHUB_TOKEN", httpclient_driver: 'httpclient.ngx_driver'}) +http = require "lapis.nginx.http" + +lapis = require "lapis" + +class About extends lapis.Application + [about: "/about"]: => + @user, err = gh\get_authenticated_user() + + if err + @err = err + + return status: 500, render: "error" + + return render: true diff --git a/static/css/about/main.css b/static/css/about/main.css index cbe625d..3d41ef3 100644 --- a/static/css/about/main.css +++ b/static/css/about/main.css @@ -5,8 +5,6 @@ img.textwrap-right { .well { margin-top:-20px; - background-color:#007FBD; - border:2px solid #0077B2; text-align:center; cursor:pointer; font-size: 25px; @@ -16,8 +14,7 @@ img.textwrap-right { .well:hover { margin-top:-20px; - background-color:#0077B2; - border:2px solid #0077B2; + border:2px solid black; text-align:center; cursor:pointer; font-size: 25px; @@ -98,7 +95,6 @@ img.textwrap-right { background-color: #3D5DE0; border-color: #adadad; width: 33.3%; - } @media (max-width: 767px) { diff --git a/views/about.moon b/views/about.moon index f7d0bc2..d1d09f7 100644 --- a/views/about.moon +++ b/views/about.moon @@ -31,3 +31,5 @@ class About extends Widget div class: "col-md-4 col-xs-4 well", -> i class: "fa fa-thumbs-o-up fa-lg" p @user.following + +