Skip to content

Commit

Permalink
make intro complete
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wachell authored and Michael Wachell committed May 3, 2018
1 parent e2530cc commit 2132d95
Show file tree
Hide file tree
Showing 15 changed files with 222 additions and 56 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file added Assets/coding_things.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions LogicGraveyard.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
// <Route path="/media" component={Media}/>
// <Route path="/development" component={Development}/>
// <Route path="/contact" component={Contact}/>
// {
// images ? images.map((tup, i) => {return (<div key={i}><a href={tup[1]}><img src={tup[0]}/></a></div>)}) : null
// }
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
75 changes: 49 additions & 26 deletions client/public/bundle.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion client/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
<head>
<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=">
<meta name="theme-color" content="#000000">
<title>Michael Wachell</title>
<link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Cairo|Rajdhani" rel="stylesheet">
<link href="/index.css" rel="stylesheet">
<style>
html,
Expand Down
1 change: 1 addition & 0 deletions client/src/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Development from './Development.jsx';
import Intro from './Intro.jsx';
import Media from './Media.jsx';
import Contact from './Contact.jsx';
import './App.scss';

export default class App extends Component {

Expand Down
90 changes: 90 additions & 0 deletions client/src/components/App.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@





@media (max-width: 599px) {
.media-grid {
display: grid;
grid-template-columns: repeat(1, 1fr);
grid-gap: 5vw;
max-width: 599px;
width: 100%;
margin: 0 auto;
img {
width: 100%;
}
}

.container-grid {
display: grid;
grid-template-columns: repeat(1, 1fr);
grid-gap: 5vw;
max-width: 599px;
width: 100%;
margin: 0 auto;
overflow: scroll;


}



}



@media (min-width: 600px) {
.media-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 5vw;
max-width: 600px;
width: 100%;
margin: 0 auto;
align: center;
img {
width: 100%;
}
}

.container-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 5vw;
max-width: 600px;
width: 100%;
margin: 0 auto;
align: center;

}

}



@media (min-width: 1200px) {
.media-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 5vw;
max-width: 1200px;
width: 100%;
margin: 0 auto;
img {
width: 100%;
}
}

.container-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 5vw;
max-width: 1200px;
width: 100%;
margin: 0 auto;
align: center;

}

}
6 changes: 6 additions & 0 deletions client/src/components/Images.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {

first: [['https://i.imgur.com/cF0XUF5.jpg', "http://www.google.com"], ["https://blog.imgur.com/wp-content/uploads/2016/08/orgis.jpg", "http://www.google.com"], ['https://i.imgur.com/cF0XUF5.jpg', "http://www.google.com"], ["https://blog.imgur.com/wp-content/uploads/2016/08/orgis.jpg", "http://www.google.com"], ["https://blog.imgur.com/wp-content/uploads/2016/08/orgis.jpg", "http://www.google.com"]]


}
43 changes: 31 additions & 12 deletions client/src/components/Intro.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,21 @@ import ReactDOM from 'react-dom'
import {Parallax} from 'react-spring'
import './Intro.scss'
import Copy from './text.js'
import Images from './Images.js'
import './App.scss'
import Dep from '../../../Assets/coding_things.png'

const Page = ({
offset,
caption,
first,
second,
gradient,
images,
onClick
}) => (<React.Fragment>
}) => { return (
<React.Fragment>

<Parallax.Layer offset={offset} speed={0.2} onClick={onClick}>
<div className="slopeBegin"/>
</Parallax.Layer>
Expand All @@ -20,22 +26,34 @@ const Page = ({
<div className={`slopeEnd ${gradient}`}/>
</Parallax.Layer>

<Parallax.Layer className="text number" offset={offset} speed={0.3}>

</Parallax.Layer>

<Parallax.Layer className="text header" offset={offset} speed={0.4}>
<span>

<div>
<p style={{
fontSize: "calc(8vw + 10%)"
}}>{caption}</p>
<div className={`stripe white`}/>
<p>{first}</p>
<p>{second}</p>
</div>
<div>

</div>

</Parallax.Layer>


<Parallax.Layer className="image-container" offset={offset} speed={0.8} onClick={onClick}>
{
images ? (<div className="images"><img width="100%" src={images}/></div>) : null
}


</span>
</Parallax.Layer>
</React.Fragment>)

</React.Fragment>

)}

export default class Intro extends Component {

Expand All @@ -49,10 +67,11 @@ export default class Intro extends Component {
}

render() {
return (<Parallax className="container" ref="parallax" pages={3} horizontal="horizontal" scrolling={true}>
<Page offset={0} gradient="teal" caption="Michael is..." first="Michael is a polymath" second="dolor sit" onClick={() => this.scroll(1)}/>
<Page offset={1} gradient="greyf" caption="Media" first="a" second="adipiscing elit" onClick={() => this.scroll(2)}/>
<Page offset={2} gradient="black" caption="Repos" first="Morbi quis" second="est dignissim" onClick={() => this.scroll(0)}/>
return (<Parallax className="container" ref="parallax" pages={4} horizontal="horizontal" scrolling={true}>
<Page offset={0} gradient="teal" images={Dep} caption="Hi!" first="My name is Michael..." second="" onClick={() => this.scroll(1)}/>
<Page offset={1} gradient="greyf" caption="I am a media polymath" first="" second="" onClick={() => this.scroll(2)}/>
<Page offset={2} gradient="black" caption="Web" first="I create using these tools" second="" onClick={() => this.scroll(3)}/>
<Page offset={3} gradient="teal" caption="Sight & Sound" first="These tools, too" second="" onClick={() => this.scroll(0)}/>
</Parallax>)
}
}
23 changes: 12 additions & 11 deletions client/src/components/Intro.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}

.header {
margin-left: 350px;
margin-left: 4vw;
font-size: calc(15px + 20%);
color: white;
}
Expand Down Expand Up @@ -64,14 +64,15 @@
background: linear-gradient(to right, #a0c5cf 0%, #e6eceb 100%);
}

.media-grid {
display: grid;
grid-template-columns: repeat(3, 2fr);
grid-gap: 8px;
max-width: 1200px;
width: 100%;
margin: 0 auto;
img {
width: 10vw;
}

.images {
margin-left: 50%;
width: 45%;
height: auto;
display: block;
}

.image-container{
width: 300px;
height: auto;
}
26 changes: 25 additions & 1 deletion client/src/components/Media.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import ReactDom from 'react-dom';
import './Media.scss';

import './App.scss'

import {Component} from 'react'

Expand All @@ -24,6 +24,30 @@ export default class Media extends Component {
</div>
<div>
<img src="https://i.imgur.com/VhBmLIk.jpg" />
</div>
<div>
<img src="https://i.imgur.com/VhBmLIk.jpg" />
</div>
<div>
<img src="https://i.imgur.com/VhBmLIk.jpg" />
</div>
<div>
<img src="https://i.imgur.com/VhBmLIk.jpg" />
</div>
<div>
<img src="https://i.imgur.com/VhBmLIk.jpg" />
</div>
<div>
<img src="https://i.imgur.com/VhBmLIk.jpg" />
</div>
<div>
<img src="https://i.imgur.com/VhBmLIk.jpg" />
</div>
<div>
<img src="https://i.imgur.com/VhBmLIk.jpg" />
</div>
<div>
<img src="https://i.imgur.com/VhBmLIk.jpg" />
</div>


Expand Down
4 changes: 2 additions & 2 deletions client/src/components/Media.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.media-grid {
display: grid;
grid-template-columns: repeat(3, 2fr);
grid-gap: 8px;
grid-template-columns: repeat(3, 200px);
grid-gap: 5vw;
max-width: 1200px;
width: 100%;
margin: 0 auto;
Expand Down
4 changes: 1 addition & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ module.exports = {
test: /\.scss$/,
loaders: ['style-loader', 'css-loader', 'sass-loader']
},
devServer: {
historyApiFallback: true
}, {
{
test: /\.(png|jpg|gif)$/,
use: [
{
Expand Down

0 comments on commit 2132d95

Please sign in to comment.