Skip to content

Commit

Permalink
Yet again more pages added to the story and more images
Browse files Browse the repository at this point in the history
  • Loading branch information
thepont committed Feb 13, 2016
1 parent 1e5fccd commit ed285a9
Show file tree
Hide file tree
Showing 33 changed files with 28 additions and 38,108 deletions.
Binary file added images/bg1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/car.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/clouds1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/clouds1.xcf
Binary file not shown.
Binary file added images/clouds2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/duck.xcf
Binary file not shown.
Binary file added images/duck1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/duck1.xcf
Binary file not shown.
Binary file added images/duck1small.xcf
Binary file not shown.
Binary file added images/duck2-small.xcf
Binary file not shown.
Binary file added images/duck2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/duck2.xcf
Binary file not shown.
Binary file added images/fedsq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/fg1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/fg2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/flinders.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/marie1.xcf
Binary file not shown.
Binary file added images/melbounesky.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mountain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/rail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/terrible-small.xcf
Binary file not shown.
Binary file added images/terrible.xcf
Binary file not shown.
Binary file added images/trees1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/trees2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 18 additions & 12 deletions src/scroller/client/components/Story.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,15 @@ const PageDetails = {
locationX: 12000,
previous: '/story/duck1',
next: '/story/melbourne'
}
},
melbourne: {
locationX: 12001,
previous: '/story/duck2',
next: '/story/outback'
},
outback: {
locationX: 14500,
previous: '/story/melbourne',
next: '/story/tallouse'
}
}
Expand All @@ -68,7 +73,9 @@ export class Story extends React.Component {
window.addEventListener('scroll', this.handleScroll);
}
render() {
var id = this.props.params.id;
if(this.props.params){
var {id} = this.props.params;
}
var style = {
height: this.props.height,
backgroundColor: 'black'
Expand All @@ -82,7 +89,7 @@ export class Story extends React.Component {
var centerStyle = {
position: 'absolute',

},
}
var skyBlue = {
backgroundColor: '#7EC0EE',
height: '100%',
Expand All @@ -91,9 +98,6 @@ export class Story extends React.Component {

var pageDetails = PageDetails[id] || PageDetails['tallouse'];


console.log('ID', id, pageDetails);

return <div style={style} >
<div style={fixedStyle}>
<div style={skyBlue}>
Expand All @@ -105,15 +109,17 @@ export class Story extends React.Component {
<ScrollLayer zIndex={4} step={-0.228} currentScroll={pageDetails.locationX} width={3228} image={'/images/fg2.png'} startX={0} stopX={PageDetails.grenoble.locationX}/>


<ScrollLayer zIndex={1} step={-0.1} currentScroll={pageDetails.locationX} width={667} image={'/images/duck1.png'} startX={10000} stopX={10300}/>
<ScrollLayer zIndex={0} step={-0.5} currentScroll={pageDetails.locationX} width={3000} image={'/images/clouds1.png'} startX={9601} stopX={12000}/>
<ScrollLayer zIndex={1} step={-0.1} currentScroll={pageDetails.locationX} width={667} image={'/images/duck1.png'} startX={10000} stopX={10300}/>
<ScrollLayer zIndex={3} step={-1.2} currentScroll={pageDetails.locationX} width={3000} image={'/images/clouds2.png'} startX={9601} stopX={12000}/>
<ScrollLayer zIndex={1} step={-0.01} currentScroll={pageDetails.locationX} width={7313} image={'/images/duck2.png'} startX={10301} stopX={12000}/>

<ScrollLayer zIndex={0} step={-1.2} currentScroll={pageDetails.locationX} width={900} image={'/images/melbounesky.png'} startX={12001} stopX={14000}/>
<ScrollLayer zIndex={1} step={-0.5} currentScroll={pageDetails.locationX} width={900} image={'/images/fedsq.png'} startX={12001} stopX={14000}/>
<ScrollLayer zIndex={2} step={-0.1} currentScroll={pageDetails.locationX} width={900} image={'/images/flinders.png'} startX={12001} stopX={14000}/>
<ScrollLayer zIndex={1} step={-0.01} currentScroll={pageDetails.locationX} width={731} image={'/images/duck2.png'} startX={10301} stopX={12000}/>

<ScrollLayer zIndex={0} step={-0.3} currentScroll={pageDetails.locationX} width={900} image={'/images/melbounesky.png'} startX={12001} stopX={14500}/>
<ScrollLayer zIndex={1} step={-0.41} currentScroll={pageDetails.locationX} width={3400} image={'/images/trees2.png'} startX={12001} stopX={14500}/>
<ScrollLayer zIndex={2} step={-0.45} currentScroll={pageDetails.locationX} width={3400} image={'/images/trees1.png'} startX={12001} stopX={14500}/>
<ScrollLayer zIndex={3} step={-0.5} currentScroll={pageDetails.locationX} width={3400} image={'/images/fedsq.png'} startX={12001} stopX={14500}/>
<ScrollLayer zIndex={4} step={-0.54} currentScroll={pageDetails.locationX} width={900} image={'/images/flinders.png'} startX={12001} stopX={14500}/>
<ScrollLayer zIndex={5} step={0.02} currentScroll={pageDetails.locationX} width={3400} image={'/images/car.png'} startX={12001} stopX={14500}/>

</div>

Expand Down
6 changes: 6 additions & 0 deletions src/scroller/client/components/StoryPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React from 'react';
import {Story} from './Story';

export default (props) => {
return <Story height={3000} {...props}/>
}
Binary file added src/scroller/public/images/car.png
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 src/scroller/public/images/fedsq.png
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 src/scroller/public/images/melbounesky.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/scroller/public/images/trees1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/scroller/public/images/trees2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/scroller/public/scroller.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ed285a9

Please sign in to comment.