Skip to content

Commit

Permalink
Reset styles to match @thefoxis' initial sketch
Browse files Browse the repository at this point in the history
The point of this repo is to take the PNG that @thefoxis posted at:

gratipay/inside.gratipay.com#16 (comment)

And to iterate on it in code. This commit makes the page look pretty
nearly like that initial sketch. I left off the "New / Top / Top"
section because I want to move away from that entirely, and I didn't
bother to make it absolutely pixel-perfect because it was a sketch in
the first place.
  • Loading branch information
chadwhitacre committed Mar 12, 2014
1 parent 1753964 commit 012245e
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 49 deletions.
81 changes: 49 additions & 32 deletions scss/playground.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
$green: #2A8F79;
$brown: #614C3E;
$green: #339966;
$brown: #AB4926;
$white: #FFFFFF;
$gold: #FFC300;
$gray: #515151;
$light-gray: #D7D7D7;

$font: "Whitney SSm A", "Whitney SSm B", serif;

body {
font-family: "Ideal Sans SSm A", "Ideal Sans SSm B", serif;
font-family: $font;
font-weight: 200;
font-size: 16px;
line-height: 100%;
}

section {
padding: 20px;
}

a {
Expand All @@ -25,8 +28,9 @@ button {
color: $green;
border-radius: 4px;
background: white;
font-family: "Ideal Sans SSm A", "Ideal Sans SSm B", serif;
font-family: $font;
font-size: 16px;
font-weight: 500;
padding: 9px 20px;
margin: 0;

Expand All @@ -45,33 +49,39 @@ button {
display: block;
max-width: 1000px;
margin: 0 auto;
line-height: 100px;
}

li {
float: left;
display: inline;
list-style: none;
padding-right: 30px;
line-height: 48px;
font-size: 14px;
color: $gray;

img {
height: 48px;
display: inline;
}

a {
color: $gray;
letter-spacing: -1px;
}

&:first-child a {
font-size: 27px;
font-weight: 700;
color: black;
background: url("/assets/heart-coin.svg") left center no-repeat;
background-size: 27px;
padding-left: 32px;
padding-right: 30px;
}

&:last-child {
float: right;
padding-right: 100px;
}
}
}

.splash {
background: url("/assets/texture.jpg") no-repeat center;
ackground: url("/assets/texture.jpg") no-repeat center;
clear: both;
text-align: center;
padding-top: 100px;
Expand All @@ -81,50 +91,57 @@ button {
border-style: solid none;

.every-week {
font-size: 48px;
font-size: 42px;
margin-bottom: 48px;
}

.inspiring {
font-size: 24px;
letter-spacing: -1px;
}

button {
font-size: 30px;
border-radius: 6px;
border-width: 3px;
padding: 14px 24px;
padding: 14px 28px;
letter-spacing: -1px;

&.receive {
&.give {
border-color: $brown;
background: $brown;
color: $gold;
color: $white;
cursor: pointer;

&:hover {
background: $gold;
background: $white;
color: $brown;
cursor: pointer;
}
}

&.give {
background: $green;
color: $white;
cursor: pointer;
margin-left: 30px;
&.receive {
border-color: $green;
background: $white;
color: $green;
margin-left: 20px;

&:hover {
background: $white;
color: $green;
cursor: pointer;
background: $green;
color: $white;
}
}
}
}

.stats {
padding: 10px;
padding: 15px;
text-align: center;
border-bottom: 1px solid $light-gray;
font-size: 16px;
color: $gray;

.star {
font-size: 22px;
position: relative;
bottom: -1px;
}
}


Expand Down
27 changes: 13 additions & 14 deletions www/assets/gittip.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions www/assets/heart-coin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified www/favicon.ico
Binary file not shown.
8 changes: 5 additions & 3 deletions www/index.spt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div id="body">
<section class="head">
<ul>
<li><a href=""><img src="/assets/gittip.svg"></a></li>
<li><a href="">Gittip</a></li>
<li><a href="">About</a></li>
<li><a href="">FAQ</a></li>
<li><a href="">Blog</a></li>
Expand All @@ -33,11 +33,13 @@
<section class="splash">
<div class="every-week">Give money to inspiring people <b>every week</b></div>

<button class="receive">I want to receive</button><button class="give">I want to give</button>
<button class="give">I want to give</button><button
class="receive">I want to receive</button>

</section>
<section class="stats">
&#10029; <b>2,700</b> users exchanging <b>$12,200</b> per week.
<span class="star">&#10029;</span>
<b>2,700</b> users exchanging <b>$12,200</b> per week.
<a href="">See the stats &#9657;</a>
</section>
<section class="else">
Expand Down

0 comments on commit 012245e

Please sign in to comment.