Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: wylieconlon/votespry
base: 1cea082882
...
head fork: wylieconlon/votespry
compare: 58720b5553
  • 2 commits
  • 6 files changed
  • 0 commit comments
  • 1 contributor
8 README.md
View
@@ -83,11 +83,9 @@ You can use any SMTP server for this, such as [Sendgrid](http://sengrid.com).
### Note about Twilio
This project is tricky to test locally because Twilio must have a web-accessible
-URL for its incoming SMS callbacks. That's why there's an alternate way to vote
-by sending an HTTP `GET` to the `/vote/:code/:choiceIndex` route (note: only one
-vote per user is enforced). One possibility is to use a proxy service to forward
-requests at a remote service to your machine.
-
+URL for its incoming SMS callbacks. However, to simulate voting behavior you
+can send fake Twilio [post parameters](http://www.twilio.com/docs/api/rest/sms)
+to the `/SmsResponse` route using `curl`.
Running the app
---------------
24 public/css/style.css
View
@@ -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;
BIN  public/img/graph.png
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 views/css/style.styl
View
@@ -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
23 views/home.jade
View
@@ -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
16 views/layout.jade
View
@@ -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);
+ })();

No commit comments for this range

Something went wrong with that request. Please try again.