From aa5e8b56646d47231bd4ddf38b72a51fd07d7cb0 Mon Sep 17 00:00:00 2001 From: "R. Tyler Croy" Date: Thu, 12 Apr 2012 22:58:38 -0700 Subject: [PATCH] STUPID HOME PAGE --- css/despair.css | 14 ++++++++++++++ views/index.haml | 20 ++++++++++---------- views/user.haml | 2 +- 3 files changed, 25 insertions(+), 11 deletions(-) diff --git a/css/despair.css b/css/despair.css index befb2ea..832ce7c 100644 --- a/css/despair.css +++ b/css/despair.css @@ -1,5 +1,19 @@ +.logo { + background-image: url('/images/crappy-logo.png'); + background-repeat: no-repeat; + width: 630px; + height: 430px; + overflow: hidden; +} +.logo input { + font-size: 18px; + color: #333; + /* this is stupid and ugly */ + margin-top: 250px; +} + .project_tile { padding: 10px; clear: both; diff --git a/views/index.haml b/views/index.haml index f7c2b68..7b550c5 100644 --- a/views/index.haml +++ b/views/index.haml @@ -1,16 +1,16 @@ %html %head + %link{:media => 'screen', + :rel => 'stylesheet', + :href => '/css/despair.css'} %title Git of Despair %body - - if Resin.development? - %div{:style => 'float: right;'} - %button{:onclick => 'smalltalk.Browser._open(); return false;'} - Run Amber IDE + %center + %div.logo + %form{:onsubmit => 'window.location=this.repo.value; return false;'} + %input{:type => 'text', + :name => 'repo', + :size => 50, + :placeholder => 'Enter a username or username/reponame'} - - %h2 - Git of Despair - - - = embed_amber diff --git a/views/user.haml b/views/user.haml index 970a24a..17c42ea 100644 --- a/views/user.haml +++ b/views/user.haml @@ -9,7 +9,7 @@ - else window.despair_repo = null; %link{:media => 'screen', - :rel => 'stylesheet', + :rel => 'stylesheet', :href => '/css/despair.css'} %body - if Resin.development?