Skip to content

Commit

Permalink
howto expanded, design tweaked, screenshots added
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidkahl committed Mar 14, 2012
1 parent f378f08 commit bce29b9
Show file tree
Hide file tree
Showing 18 changed files with 125 additions and 23 deletions.
7 changes: 7 additions & 0 deletions main.coffee
Expand Up @@ -106,6 +106,13 @@ app.get '/concept', (req, res) ->
throw err if err
res.end md data

app.get '/howto', (req, res) ->
res.render 'howto', {
locals: {
title: 'Spark.'
}
}

app.get '/random', (req, res) ->
scene.findAllIds (err, ids) ->
if err
Expand Down
Binary file added public/img/scene-buttons.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/scene-display.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/scene-new.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/story-edit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/story-show-loggedIn.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/story-show-visitor.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/thumb.scene-buttons.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/thumb.scene-display.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/thumb.scene-new.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/thumb.story-edit.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/thumb.story-show-loggedIn.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/thumb.story-show-visitor.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions public/less/bootstrap.css
Expand Up @@ -3754,3 +3754,9 @@ footer {
padding-top: 75px;
padding-bottom: 50px;
}
.storyDisplay pre {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.thumbnail {
margin-bottom: 10px;
}
9 changes: 9 additions & 0 deletions public/less/utilities.less
Expand Up @@ -112,4 +112,13 @@ footer {
width:100%;
padding-top:75px;
padding-bottom:50px;
}
.storyDisplay pre {
font-family: @baseFontFamily;
}
.thumbnail {
margin-bottom:10px;
}

.howtoRow {
}
77 changes: 77 additions & 0 deletions views/howto.jade
@@ -0,0 +1,77 @@
.row.howtoRow
.span12
.hero-unit
h1 Welcome to Spark.
p This article will provide you with a concise overview of the functionality that Spark provides.

.row.howtoRow
.span2
a.thumbnail.howtoImage(href="/img/scene-display.png")
img(src="/img/thumb.scene-display.jpg", alt="How a Scene is displayed in Spark.")

a.thumbnail.howtoImage(href="/img/scene-buttons.png")
img(src="/img/thumb.scene-buttons.jpg", alt="How a Scene can be edited or deleted in Spark.")

a.thumbnail.howtoImage(href="/img/scene-new.png")
img(src="/img/thumb.scene-new.jpg", alt="How a new Scene can be added in Spark.")

.span10
.well
h1 Scenes
small will inspire you. This is a fact.
h3 What they are
p Scenes are images, collected and referenced from the vast oceans of imagination which reside on the internet in the form of concept art communities, imageboards and artists blogs. Spark uses a referencing-only-policy, so no Scene is actually hosted on this platform. Only hyperlinks to the images are stored in Sparks database, along with information on the original artist and a link to the website on the internet where the image was originally found. This serves the purpose of giving the author both credit and a chance to be discovered by the users of Spark.
h3 How can you add them
p Once you are
a(href="#loggingIn") logged in
|, you can visit the
a(href="/new") page to add a Scene
| and submit the hyperlinks to the image URL, original website and the name of the artist. You can also add a description to the image that will be shown alongside it.
h3 How you can edit and delete them
p If you are
a(href="#loggingIn") logged in
|, you can easily edit a Scene just like how you could when you initially created it. Just click the "Edit Scene" button on the Scenes page.
p Deleting a scene can be accomplished from the Scenes page as well, provided you are logged in.
p
strong Editing and deleting a Scene are only allowed to the person who originally added it to Spark.
h3 Where you can find them
p There are many marvellous graphic communities all over the internet, like CGTalk or Conceptart.org.

.row.howtoRow
.span10
.well
h1 Stories
small are where you can shine.
h3 What they are
p Stories are what they are supposed to be. Narratives, thoughts, literary sketches. They can range from a few short words describing an event to a full-length story with characters that come to life. Stories are what you make of them. Surprise us.
h3 How you can add them
p Once you are
a(href="#loggingIn") logged in
|, you can add your own Story to whatever Scene you would like. Write ahead, but be aware: Spark does not support revisioning yet. What you delete will, for now, be gone for good.
h3 How you can edit and delete them
p If logged in, you can edit the complete text and title of your Stories and, if you really think you should, delete them. Please remember: every thought expressed in a story can be the stroke of lightning that ignites another visitors imagination. Don't throw away a chance of bringing joy to another imagineer just because you might not like what you wrote. It's all good.
.span2
a.thumbnail.howtoImage(href="/img/story-show-visitor.png")
img(src="/img/thumb.story-show-visitor.jpg", alt="How a Story looks to a visitor who is not logged in.")
a.thumbnail.howtoImage(href="/img/story-show-loggedIn.png")
img(src="/img/thumb.story-show-loggedIn.jpg", alt="How a Story looks to a logged in user.")
a.thumbnail.howtoImage(href="/img/story-edit.png")
img(src="/img/thumb.story-edit.jpg", alt="How a new Story can be edited or deleted in Spark.")
.row.howtoRow
.span6
.well
a(name="loggingIn")
h1 Logging in
small is fairly easy.
p Right now, you can easily get the privilege of being able to create Scenes and add Stories to Scenes by logging in with your Twitter account. Spark will add other authentication possibilities later on, but right now, there is Twitter. And while you're at it, I'm there too as
a(href="http://www.twitter.com/arvidkahldev") @arvidkahldev
|. Works great for instant feedback.
.span6
.well
h1 Provide feedback
small - it helps!
p If you find errors, unexpected behavior or things that seem questionnable or insulting to you, do not hesitate to contact me at
a(href="mailto:mail@arvidkahl.de") mail@arvidkahl.de
|. Twitter works too.
script
$(function(){$('.howtoImage').lightBox({overlayOpacity:0.5});});
44 changes: 23 additions & 21 deletions views/layout.jade
Expand Up @@ -35,7 +35,8 @@ html
a(href='/howto')
//i.icon-info-sign.icon-white
//|
span HowTo
span How does it work?

p.navbar-text.pull-right.highlightLogin
- if (everyauth.loggedIn)
span= "Logged in as "
Expand All @@ -45,23 +46,23 @@ html
- else
a(href= "/auth/twitter")= "Login with Twitter"
div.container
- if (typeof(flashError) != "undefined" || (typeof(flashInfo) != "undefined"))
div.row.notices
.span12
- if (typeof(flashError) != "undefined")
- if (flashError != '')
.alert.alert-error
a.close(data-dismiss='alert')= "x"
strong Oops!
- for singleFlash in flashError
span= singleFlash
- if (typeof(flashInfo) != "undefined")
- if (flashInfo != '')
.alert.alert-success
a.close(data-dismiss='alert')= "x"
strong Fantastic!
- for singleFlash in flashInfo
span= singleFlash
- if (typeof(flashError) != "undefined" || (typeof(flashInfo) != "undefined"))
div.row.notices
.span12
- if (typeof(flashError) != "undefined")
- if (flashError != '')
.alert.alert-error
a.close(data-dismiss='alert')= "x"
strong Oops!
- for singleFlash in flashError
span= singleFlash
- if (typeof(flashInfo) != "undefined")
- if (flashInfo != '')
.alert.alert-success
a.close(data-dismiss='alert')= "x"
strong Fantastic!
- for singleFlash in flashInfo
span= singleFlash
!=body
footer
p ©
Expand All @@ -85,9 +86,10 @@ html
|, which is just plain awesome. It's using
a(href="http://www.iriscouch.com/") IrisCouch
| to host the Scenes and Stories.
br
| You can find the code of Spark on
a(href="https://www.github.com/arvidkahl/node-spark")="github.com/arvidkahl/node-spark"

p You can find the code that runs Spark on
strong
a(href="https://www.github.com/arvidkahl/node-spark")="GitHub.com"
|.
script
$(function(){
Expand Down
5 changes: 3 additions & 2 deletions views/single.jade
Expand Up @@ -68,10 +68,11 @@ div.row
form(method="post", action='/'+id+'/delete/'+story._id)
input.btn.btn-danger.btn-mini(type='submit', value='Delete your Story')
div.alert.alert-info(id=story._id+'_alert',onclick=switcheroo) Click here to edit this Story.
div(id=story._id+'_text')
div.storyDisplay(id=story._id+'_text')
h4= story.title
h6.storyUserName written by #{story.createUserName}
p.story= story.story
//p.storyDisplay
pre= story.story


- if (everyauth.loggedIn)
Expand Down

0 comments on commit bce29b9

Please sign in to comment.