Skip to content
Browse files

Updated layout and added analytics

  • Loading branch information...
1 parent 2ff7f03 commit 58720b55534be11b4213940a5d12e4a2670efa03 @wylieconlon committed Apr 17, 2012
Showing with 75 additions and 12 deletions.
  1. +23 −1 public/css/style.css
  2. BIN public/img/graph.png
  3. +23 −1 views/css/style.styl
  4. +14 −9 views/home.jade
  5. +15 −1 views/layout.jade
View
24 public/css/style.css
@@ -54,6 +54,13 @@ p:last-child {
box-shadow: 0 1px 5px rgba(0,0,0,0.20);
clear: both;
}
+footer {
+ margin-top: 1em;
+}
+footer,
+footer a {
+ color: #666;
+}
#chart {
width: 100%;
height: 400px;
@@ -142,9 +149,24 @@ input[type="submit"].danger {
input[type="submit"][disabled] {
background: #ccc;
}
+#home #sampleGraph {
+ position: relative;
+ float: right;
+ top: -40px;
+}
#newPoll {
- font-size: 1em;
+ display: block;
+ width: 300px;
+ margin: 0 auto;
+ margin-top: 20px;
text-align: center;
+ -webkit-box-shadow: 0 1px 5px rgba(0,0,0,0.20);
+ -moz-box-shadow: 0 1px 5px rgba(0,0,0,0.20);
+ box-shadow: 0 1px 5px rgba(0,0,0,0.20);
+}
+#newPoll h3 {
+ font-size: 1.5em;
+ margin-bottom: 0;
}
#headerNew {
-webkit-border-radius: 5px;
View
BIN public/img/graph.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
24 views/css/style.styl
@@ -76,6 +76,12 @@ p:last-child
box-shadow 0 1px 5px rgba(0,0,0, .2)
clear both
+footer
+ margin-top 1em
+
+ &, a
+ color #666
+
#chart
width 100%
height 400px
@@ -133,10 +139,26 @@ input[type="submit"]
.btn.inactive, input[type="submit"][disabled]
background #ccc
+#home
+ #sampleGraph
+ position relative
+ float right
+ top -40px
+
#newPoll
- font-size 1em
+ display block
+ width 300px
+ margin 0 auto
+ margin-top 20px
+
text-align center
+ box-shadow 0 1px 5px rgba(0,0,0,.2)
+
+ h3
+ font-size 1.5em
+ margin-bottom 0
+
#headerNew
border-radius 5px
padding 5px
View
23 views/home.jade
@@ -1,11 +1,16 @@
-h2 Real-time SMS polling
+#home
+ h2 Real-time SMS polling
+
+ img#sampleGraph(src='/img/graph.png')
+
+ p
+ | Within 30 seconds, you'll have a new VoteSpry SMS poll created and
+ | ready to go.
+ p
+ | It's that easy.
-p
- | VoteSpry lets you put up a poll and start collecting
- | feedback instantly. No registration required.
+ br
-br
-
-a.btn#newPoll(href='/new')
- h3 Create a poll instantly
- p No signup required
+ a.btn#newPoll(href='/new')
+ h3 Create a poll instantly
+ p No signup required
View
16 views/layout.jade
@@ -1,4 +1,3 @@
-!!!
html
head
block head
@@ -23,3 +22,18 @@ html
#content!= body
+ footer
+ a(href='http://wylieconlon.com') Made by Wylie
+ | •
+ a(href='https://github.com/wylieconlon/votespry') View source
+
+ script(type="text/javascript")
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-3815703-6']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();

0 comments on commit 58720b5

Please sign in to comment.
Something went wrong with that request. Please try again.