Skip to content

Commit

Permalink
Deploy Clean Up
Browse files Browse the repository at this point in the history
  • Loading branch information
timg512372 committed Jan 18, 2019
1 parent a48f28a commit f6611c6
Show file tree
Hide file tree
Showing 17 changed files with 1,398 additions and 719 deletions.
10 changes: 7 additions & 3 deletions components/BioModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const BioModal = props => {
<Transition onEnter={modalEnter} timeout={0} in={props.show} onExit={modalExit}>
<div
style={{
height: '60vh',
width: '60vw',
height: '70vh',
width: '70vw',
marginTop: 150 + window.scrollY + 'px',
backgroundColor: 'white',
borderRadius: '20px',
Expand All @@ -49,6 +49,7 @@ const BioModal = props => {
display: 'flex',
alignItems: 'center',
flexDirection: 'column',
justifyContent: 'flex-start',
zIndex: 300
}}
onClick={event => event.preventDefault()}
Expand All @@ -60,7 +61,10 @@ const BioModal = props => {
faculty
horizontal
/>
<h6 style={{ marginTop: '6vh' }}> {props.person.bio} </h6>
<h6 style={{ marginTop: '4vh', fontSize: '2vh' }}>
&emsp;&ensp;
{props.person.bio}{' '}
</h6>
</div>
</Transition>
</div>
Expand Down
12 changes: 10 additions & 2 deletions components/Person.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { Image, Transformation } from 'cloudinary-react';
import Button from 'grommet/components/Button';

const Person = props => {
return (
Expand All @@ -8,7 +9,8 @@ const Person = props => {
display: 'flex',
flexDirection: props.horizontal ? 'row' : 'column',
alignItems: 'center',
margin: '1%'
margin: '1%',
...props.style
}}
onClick={props.onClick}
>
Expand Down Expand Up @@ -37,7 +39,13 @@ const Person = props => {
>
{props.name}
</h4>
{props.faculty ? <h5> Faculty Advisor </h5> : null}
{props.faculty ? <h5 style={{ marginTop: '-10px' }}> Faculty Advisor </h5> : null}
{props.faculty && !props.horizontal ? (
<Button plain={true} onClick={props.onClick} style={{ marginTop: '-15px' }}>
{' '}
View Bio{' '}
</Button>
) : null}
</div>
</div>
);
Expand Down
48 changes: 0 additions & 48 deletions database.json

This file was deleted.

42 changes: 0 additions & 42 deletions devserver.js

This file was deleted.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@
"react-dropzone": "^8.0.3",
"react-parallax": "^2.0.1",
"react-particles-js": "^2.4.2",
"react-player": "^1.8.0",
"react-pose": "^4.0.2",
"react-redux": "^5.1.0",
"react-scroll-parallax": "^1.3.5",
"react-simple-dropdown": "^3.2.3",
"react-simple-popover": "^0.2.4",
"react-transition-group": "^2.5.0",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0"
"redux-thunk": "^2.3.0",
"video-react": "^0.13.1"
},
"devDependencies": {
"babel-eslint": "^8.2.5",
Expand All @@ -50,8 +52,8 @@
"eslint-plugin-react": "^7.9.1"
},
"scripts": {
"dev": "node devserver.js NODE_ENV=development",
"dev": "NODE_ENV=development node server.js",
"build": "next build",
"start": " node server.js NODE_ENV=production "
"start": "NODE_ENV=production node server.js "
}
}
31 changes: 30 additions & 1 deletion pages/Contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { getGroup } from '../redux/actions';
import { Image, Transformation } from 'cloudinary-react';
import * as types from '../redux/types.js';
import NextSeo from 'next-seo';
import { Player } from 'video-react';
import ReactPlayer from 'react-player';

import FormField from 'grommet/components/FormField';
import Button from 'grommet/components/Button';
Expand Down Expand Up @@ -77,8 +79,13 @@ class Contact extends Component {
return <Button label="Submit" accent style={{ margin: '20px 45% 0% 45%', width: '10%' }} />;
}

componentDidMount() {
//this.refs.player.controls = false;
//console.log(this.refs.player.getState());
}

render() {
console.log(this.state.message);
//console.log(this.state.message);
return (
<div style={{ margin: '0% 15% 0% 15%' }}>
<NextSeo
Expand Down Expand Up @@ -157,6 +164,28 @@ class Contact extends Component {
/> */}
</form>
{this.renderButtons()}
{/* <Player
playsInline
poster="/static/video.jpg"
src="https://media.w3.org/2010/05/sintel/trailer_hd.mp4"
width={50}
fluid={false}
preload="auto"
muted={true}
autoPlay={true}
ref="player"
/> */}
{/* <ReactPlayer
url="https://www.youtube.com/watch?v=ysz5S6PUM-U"
playing
controls={false}
muted
config={{
youtube: {
playerVars: { showinfo: 0, controls: 0 }
}
}}
/> */}
</div>
);
}
Expand Down
5 changes: 3 additions & 2 deletions pages/Gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@ class Gallery extends Component {
if (count >= (this.state.page - 1) * 20 && count < this.state.page * 20) {
return (
<div
key={src}
onClick={() => this.setState({ selectedImage: src })}
style={{ margin: '1vw' }}
onMouseOver={() => console.log('mouse over')}
onMouseOut={() => console.log('mouse down')}
// onMouseOver={() => console.log('mouse over')}
// onMouseOut={() => console.log('mouse down')}
>
<Image
cloudName="sageprosthetics"
Expand Down
5 changes: 3 additions & 2 deletions pages/Group.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class Group extends Component {
const teachers = this.props.faculty.map(teacher => {
return (
<Person
key={teacher.name}
src={teacher.src}
name={teacher.name}
faculty
Expand All @@ -131,7 +132,7 @@ class Group extends Component {

try {
const students = this.props.group.map(student => {
return <Person src={student.src} name={student.name} />;
return <Person src={student.src} name={student.name} key={student.name} />;
});

return students;
Expand All @@ -141,7 +142,7 @@ class Group extends Component {
};

render() {
console.log(this.state);
//console.log(this.state);
return (
<div style={{ margin: '0% 15% 0% 15%' }}>
<NextSeo
Expand Down
4 changes: 2 additions & 2 deletions pages/Hand.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ class Hand extends Component {
.map(design => {
const bulletpoints = Object.keys(design).map(key => {
if (!isNaN(parseInt(key))) {
return <li> {design[key]} </li>;
return <li key={key}> {design[key]} </li>;
}
});

return (
<div style={{ margin: '1vw' }}>
<div style={{ margin: '1vw' }} key={design.name}>
<Card
heading={design.name}
description={<ul> {bulletpoints} </ul>}
Expand Down
Loading

0 comments on commit f6611c6

Please sign in to comment.