From 6a9de8bedc77a068fde0a82d574518bdb27e9222 Mon Sep 17 00:00:00 2001 From: Gwen Friedman Date: Sat, 29 Feb 2020 15:32:52 -0500 Subject: [PATCH] made more responsive --- src/App.js | 3 +- src/Components/Home.css | 66 ++-- src/Components/Home.js | 507 ++++++++++--------------- src/Components/Home2.js | 174 --------- src/Components/InfoPages/Hashbrowwn.js | 104 ++++- src/Components/InfoPages/info.css | 25 +- src/Components/Nav.js | 6 +- 7 files changed, 340 insertions(+), 545 deletions(-) delete mode 100644 src/Components/Home2.js diff --git a/src/App.js b/src/App.js index a7b430e..b43dd0f 100644 --- a/src/App.js +++ b/src/App.js @@ -1,7 +1,6 @@ import React from 'react'; import './App.css'; import Home from './Components/Home.js'; -import Home2 from './Components/Home2.js'; import Navigation from './Components/Nav.js'; import Hashbrowwn from './Components/InfoPages/Hashbrowwn'; import 'bootstrap/dist/css/bootstrap.min.css'; @@ -15,7 +14,7 @@ function App() {
+ component={Home}/>
-// {/*Most Recent Project*/} -// -//
-// {/*replace image here*/} -// Hashbrowwn balloon -//
-//
-//
-//

Most Recent Project

-//
-// -// {/*Replace Name here*/} -//

HASHBROWWN Balloon

-// -// {/*Replace Description here*/} -//

High-Altitude Solar-Heated Balloon Research -// Observatory -// With -// Wind Navigation

-//
-//
-//
-// -//

-// -// -// {/*PROJECTS SECTION*/} -// -// {/*MECHANICAL*/} -//
-//
-// -// -// -//
-// -// {/*replace header name here*/} -//

Mechanical Projects

-// -// -// {/*copy and paste this to add a new section, update image, text, and link*/} -//
-// Emissions simulation -//
-//
-// {/*Replace Name here*/} -//

Emissions Simulation

-// -// {/*Replace Description here*/} -//

-// A simulation that takes physical input of users driving toy cars -// along a model roadway and changes the imagery displayed on the -// roadway’s backdrop in real time. -//

-//
-//
-//
-// -//
-// Ballista -//
-//
-// {/*Replace Name here*/} -//

Ballista

-// -// {/*Replace Description here*/} -//

-// A physics final project with the objective of transferring torsional -// energy into ballistic kinetic energy. -//

-//
-//
-//
-//
-// -// -// {/*ELECTRICAL*/} -//
-//
-// -// -// -//
-// {/*replace header name here*/} -//

Electrical Projects

-// -// -// {/*copy and paste this to add a new section, update image, text, and link*/} -//
-// Hashbrowwn balloon -//
-//
-// {/*Replace Name here*/} -//

HASHBROWWN BALLOON

-// -// {/*Replace Description here*/} -//

High-Altitude Solar-Heated Balloon Research -// Observatory -// With Wind Navigation

-//
-//
-//
-//
-// -// -// {/*MATERIALS*/} -//
-//
-// -// -// -//
-// {/*replace header name here*/} -//

Materials Projects

-// -// -// {/*copy and paste this to add a new section, update image, text, and link*/} -//
-// Hashbrowwn balloon -//
-//
-// {/*Replace Name here*/} -//

HASHBROWWN BALLOON

-// -// {/*Replace Description here*/} -//

High-Altitude Solar-Heated Balloon Research -// Observatory -// With Wind Navigation

-//
-//
-//
-//
-//
-// -// ); -// } -// } +// import {Link} from "react-router-dom"; +import {HashLink as Link} from 'react-router-hash-link'; +import Nav from "react-bootstrap/Nav"; -export class Home extends React.Component { - - constructor() { - super(); - this.state = { - width: window.innerWidth, - }; - } - - componentWillMount() { - window.addEventListener('resize', this.handleWindowSizeChange); - console.log(window.innerWidth); - } - - - -// make sure to remove the listener -// when the component is not mounted anymore - componentWillUnmount() { - window.removeEventListener('resize', this.handleWindowSizeChange); - } - - handleWindowSizeChange = () => { - this.setState({ width: window.innerWidth }); - }; +export class Home extends React.Component { render() { - const {width} = this.state; - const isMobile = width <= 990; + return ( +
+ + {/*Most Recent Project*/} + +
+ {/*replace image here*/} + Hashbrowwn balloon + +
+ +
+
+
+
+

Most Recent Project

+
+ + {/*Replace Name here*/} +

HASHBROWWN Balloon

+

High-Altitude Solar-Heated Balloon Research + Observatory With Wind Navigation

+
+
+
+
+
- if (isMobile) { - return ( -
- -
- Hashbrowwn balloon -
-
-
+
+
+
+

Most Recent Project

{/*Replace Name here*/} -

HASHBROWWN Balloon

- - {/*Replace Description here*/} -

High-Altitude Solar-Heated Balloon Research - Observatory - With - Wind Navigation

+

HASHBROWWN Balloon

+

High-Altitude Solar-Heated Balloon Research + Observatory With Wind Navigation

-
- +
+ - {/*MECHANICAL*/} -
- - - -
+ +

+ + + + {/*PROJECTS SECTION*/} + + {/*MECHANICAL*/} +
+
+ + + +
- {/*replace header name here*/} -

Mechanical Projects

+ {/*replace header name here*/} +

Mechanical Projects

-
- Hashbrowwn balloon -
-
+
+ {/*replace image here*/} + Emissions Simulation + +
+ +
+
+
+ {/*Replace Name here*/} +

Emissions Simulation

+

+ A simulation that takes physical input of users driving toy cars + along a model roadway and changes the imagery displayed on the + roadway’s backdrop in real time. +

+
+
+
+
+
+
+
+
{/*Replace Name here*/} -

Emissions Simulation

- - {/*Replace Description here*/} -

+

Emissions Simulation

+

A simulation that takes physical input of users driving toy cars along a model roadway and changes the imagery displayed on the roadway’s backdrop in real time. @@ -235,150 +115,155 @@ export class Home extends React.Component {

-
- ) - - } else { - return ( -
- {/*Most Recent Project*/} -
+
{/*replace image here*/} - Hashbrowwn balloon -
-
-
-

Most Recent Project

+ Ballista + +
+ +
+
+
+ {/*Replace Name here*/} +

Ballista

+

+ A physics final project with the objective of transferring torsional + energy into ballistic kinetic energy. +

+
+
+
+
+
+
+
{/*Replace Name here*/} -

HASHBROWWN Balloon

- - {/*Replace Description here*/} -

High-Altitude Solar-Heated Balloon Research - Observatory - With - Wind Navigation

+

Ballista

+

+ A physics final project with the objective of transferring torsional + energy into ballistic kinetic energy. +

-

- - - {/*PROJECTS SECTION*/} - - {/*MECHANICAL*/} -
-
- - - -
+
- {/*replace header name here*/} -

Mechanical Projects

+ {/*ELECTRICAL*/} +
+
+ + + +
+ {/*replace header name here*/} +

Electrical Projects

- {/*copy and paste this to add a new section, update image, text, and link*/} -
- Emissions simulation -
-
- {/*Replace Name here*/} -

Emissions Simulation

- {/*Replace Description here*/} -

- A simulation that takes physical input of users driving toy cars - along a model roadway and changes the imagery displayed on the - roadway’s backdrop in real time. -

+ {/*copy and paste this to add a new section, update image, text, and link*/} + +
+ {/*replace image here*/} + Emissions Simulation + +
+ +
+
+
+ {/*Replace Name here*/} +

Emissions Simulation

+

+ A simulation that takes physical input of users driving toy cars + along a model roadway and changes the imagery displayed on the + roadway’s backdrop in real time. +

+
+
-
- Ballista -
-
+
+
+
{/*Replace Name here*/} -

Ballista

- - {/*Replace Description here*/} -

- A physics final project with the objective of transferring torsional - energy into ballistic kinetic energy. +

Emissions Simulation

+

+ A simulation that takes physical input of users driving toy cars + along a model roadway and changes the imagery displayed on the + roadway’s backdrop in real time.

-
+ +
- {/*ELECTRICAL*/} -
-
- - - -
- {/*replace header name here*/} -

Electrical Projects

+ {/*MATERIALS*/} +
+
+ + + +
+ {/*replace header name here*/} +

Materials Projects

- {/*copy and paste this to add a new section, update image, text, and link*/} -
- Hashbrowwn balloon -
-
- {/*Replace Name here*/} -

HASHBROWWN BALLOON

- - {/*Replace Description here*/} -

High-Altitude Solar-Heated Balloon Research - Observatory - With Wind Navigation

+ {/*copy and paste this to add a new section, update image, text, and link*/} + +
+ {/*replace image here*/} + Emissions Simulation + +
+ +
+
+
+ {/*Replace Name here*/} +

Emissions Simulation

+

+ A simulation that takes physical input of users driving toy cars + along a model roadway and changes the imagery displayed on the + roadway’s backdrop in real time. +

+
+
-
- - - {/*MATERIALS*/} -
-
- - - -
- {/*replace header name here*/} -

Materials Projects

- - {/*copy and paste this to add a new section, update image, text, and link*/} -
- Hashbrowwn balloon -
-
+
+
+
{/*Replace Name here*/} -

HASHBROWWN BALLOON

- - {/*Replace Description here*/} -

High-Altitude Solar-Heated Balloon Research - Observatory - With Wind Navigation

+

Emissions Simulation

+

+ A simulation that takes physical input of users driving toy cars + along a model roadway and changes the imagery displayed on the + roadway’s backdrop in real time. +

-
-
+ + +
- ); - } + ); } } + export default Home; \ No newline at end of file diff --git a/src/Components/Home2.js b/src/Components/Home2.js deleted file mode 100644 index 157cf52..0000000 --- a/src/Components/Home2.js +++ /dev/null @@ -1,174 +0,0 @@ -import React from 'react'; -import './Home.css'; - -// import new image here -import balloon from '../images/balloon.jpg'; -import emissions from '../images/emissions.png'; -import ballista from '../images/ballista.jpg'; - -import {Link} from "react-router-dom"; - -export class Home2 extends React.Component { - render() { - return ( -
- - {/*Most Recent Project*/} - -
- {/*replace image here*/} - Hashbrowwn balloon - -
- -
-
-
-
-

Most Recent Project

-
- - {/*Replace Name here*/} -

HASHBROWWN Balloon

-

High-Altitude Solar-Heated Balloon Research - Observatory With Wind Navigation

-
-
-
-
-
- -
-
-
-
-

Most Recent Project

-
- - {/*Replace Name here*/} -

HASHBROWWN Balloon

-

High-Altitude Solar-Heated Balloon Research - Observatory With Wind Navigation

-
-
-
- -

- - - {/*PROJECTS SECTION*/} - - {/*MECHANICAL*/} -
-
- - - -
- - {/*replace header name here*/} -

Mechanical Projects

- - - {/*copy and paste this to add a new section, update image, text, and link*/} -
- Emissions simulation -
-
- {/*Replace Name here*/} -

Emissions Simulation

- - {/*Replace Description here*/} -

- A simulation that takes physical input of users driving toy cars - along a model roadway and changes the imagery displayed on the - roadway’s backdrop in real time. -

-
-
-
- -
- Ballista -
-
- {/*Replace Name here*/} -

Ballista

- - {/*Replace Description here*/} -

- A physics final project with the objective of transferring torsional - energy into ballistic kinetic energy. -

-
-
-
-
- - - {/*ELECTRICAL*/} -
-
- - - -
- {/*replace header name here*/} -

Electrical Projects

- - - {/*copy and paste this to add a new section, update image, text, and link*/} -
- Hashbrowwn balloon -
-
- {/*Replace Name here*/} -

HASHBROWWN BALLOON

- - {/*Replace Description here*/} -

High-Altitude Solar-Heated Balloon Research - Observatory - With Wind Navigation

-
-
-
-
- - - {/*MATERIALS*/} -
-
- - - -
- {/*replace header name here*/} -

Materials Projects

- - - {/*copy and paste this to add a new section, update image, text, and link*/} -
- Hashbrowwn balloon -
-
- {/*Replace Name here*/} -

HASHBROWWN BALLOON

- - {/*Replace Description here*/} -

High-Altitude Solar-Heated Balloon Research - Observatory - With Wind Navigation

-
-
-
-
-
- - ); - } -} - -export default Home2; \ No newline at end of file diff --git a/src/Components/InfoPages/Hashbrowwn.js b/src/Components/InfoPages/Hashbrowwn.js index f9687a9..2219204 100644 --- a/src/Components/InfoPages/Hashbrowwn.js +++ b/src/Components/InfoPages/Hashbrowwn.js @@ -8,16 +8,37 @@ import balloon3 from '../../images/balloon3.jpg'; function Hashbrowwn() { return ( -
+

HASHBROWWN Balloon

-
+
{/*replace image here*/} - Hashbrowwn balloon -
-
- {/*Replace Description here*/} -

+ Hashbrowwn balloon + +

+ +
+
+
+ {/*Replace Name here*/} +

+ This project spanned two summers and included every part of the design process, + from materials testing and selection to fabrication and field testing. The materials + we used to build the balloon included 6um mylar, 12um aluminized mylar, 1mm black polyester + felt, 0.5 mil polyethylene, VHB adhesive transfer, Kapton tape, and 850 tape. +

+
+
+
+
+
+ +
+
+
+ {/*Replace Name here*/} +

This project spanned two summers and included every part of the design process, from materials testing and selection to fabrication and field testing. The materials we used to build the balloon included 6um mylar, 12um aluminized mylar, 1mm black polyester @@ -28,27 +49,72 @@ function Hashbrowwn() {

-
-
-
- {/*Replace Description here*/} -

+

+ {/*replace image here*/} +
+ +
+
+
+ {/*Replace Name here*/} +

+ The balloons structure consisted of one large carbon fiber ring around the lower + circumference of the cylindrical mylar envelope. +

+
+
+
+
+ Hashbrowwn balloon +
+ +
+
+
+ {/*Replace Name here*/} +

The balloons structure consisted of one large carbon fiber ring around the lower circumference of the cylindrical mylar envelope.

- Hashbrowwn balloon + +
-
+
{/*replace image here*/} - Hashbrowwn balloon -
-
- {/*Replace Description here*/} -

+ Hashbrowwn balloon + +

+ +
+
+
+ {/*Replace Name here*/} +

+ The 5kg payload suspended beneath the balloon from the bottom ring included custom circuit + boards capable of remotely controlling the balloon, communicating with our ground station, + mapping the balloons position, and recording video. It was also necessary that our payload + had an emergency release mechanism. We tested our balloons small-scale and large-scale, + both in arenas and on test fields. By doing this, we could see how the prototypes scaled + based on our materials and methods. The largest balloon we built had an 8 meter diameter + with a height of 12 meters. +

+
+
+
+
+
+ +
+
+
+ {/*Replace Name here*/} +

The 5kg payload suspended beneath the balloon from the bottom ring included custom circuit boards capable of remotely controlling the balloon, communicating with our ground station, mapping the balloons position, and recording video. It was also necessary that our payload diff --git a/src/Components/InfoPages/info.css b/src/Components/InfoPages/info.css index b6e7fbe..b4b1df5 100644 --- a/src/Components/InfoPages/info.css +++ b/src/Components/InfoPages/info.css @@ -47,12 +47,33 @@ img { } .balloon3 { - height: 304px; - width: 375px; transform: rotate(90deg); } .balloon-3 { width: 900px; +} + +.project { + margin-top: 100px; +} + +.card-text-mobile { + margin-top: 75px; +} + +.card-mobile { + height: 300px; +} + +.card-left { + margin-right: -200px; + height: 450px; + z-index: -1; +} + +.card-body-left { + margin-left: 50px; + margin-right: 200px; } \ No newline at end of file diff --git a/src/Components/Nav.js b/src/Components/Nav.js index 0ada4b3..92e270d 100644 --- a/src/Components/Nav.js +++ b/src/Components/Nav.js @@ -8,12 +8,12 @@ import Nav from "react-bootstrap/Nav"; function Navigation() { return ( - - + +

Noah Taylor

- +