diff --git a/src/components/App.css b/src/components/App.css index 613646a..c33c05b 100644 --- a/src/components/App.css +++ b/src/components/App.css @@ -1,5 +1,4 @@ .calculator { - z-index: 1; position: absolute; top: 60px; right: 0; diff --git a/src/components/Burst.css b/src/components/Burst.css index 64bda24..1868cd0 100644 --- a/src/components/Burst.css +++ b/src/components/Burst.css @@ -71,3 +71,9 @@ font-size: 17px; font-family: Arial, Helvetica, sans-serif; } + +.Burst-header { + display: flex; + justify-content: center; + align-items: center; +} diff --git a/src/components/Burst.js b/src/components/Burst.js index a6a6656..b43238e 100644 --- a/src/components/Burst.js +++ b/src/components/Burst.js @@ -3,6 +3,7 @@ import classNames from 'classnames'; import { getCalcState, setCalcState } from '../lib/calc-helpers'; import { getBurstErrors } from '../lib/input-helpers'; import './Burst.css'; +import InfoIcon from './InfoIcon'; class Burst extends Component { constructor(props) { @@ -84,11 +85,18 @@ class Burst extends Component { render() { const { idx, min, max, step, errors } = this.state; const { expanded } = this.props; + const burstInfo = `Burst allows you to generate multiple snapshots + of your graph at one time. Enter the relevant info in the input fields + and hit capture to watch the magic happen.`; if (!expanded) return
; return (
+
+

Burst

+ +
Slider Index
); + const folderText = `The folder allows you to save your graphs so you + can come back to them at a later time.`; + return (
+
+

Folder

+ +
Name
+ info icon +
+

{this.props.infoText}

+ +

More Info

+
+
+
+ ); + } +} diff --git a/src/components/Preview.css b/src/components/Preview.css index b1ebff5..e3e84d5 100644 --- a/src/components/Preview.css +++ b/src/components/Preview.css @@ -9,6 +9,7 @@ transition: 0.2s transform; margin-bottom: 0; overflow: scroll; + color: #fff; } .Preview-expanded { @@ -65,6 +66,12 @@ color: #fff; } +.Preview-header { + display: flex; + justify-content: center; + align-items: center; +} + @keyframes fade-in { 0% { opacity: 0; diff --git a/src/components/Preview.js b/src/components/Preview.js index 1097512..1d88ccf 100644 --- a/src/components/Preview.js +++ b/src/components/Preview.js @@ -1,6 +1,7 @@ import React, { Component } from 'react'; import classNames from 'classnames'; import Frame from './Frame'; +import InfoIcon from './InfoIcon'; import GenerateGifFormContainer from '../containers/GenerateGifFormContainer'; import './Preview.css'; @@ -89,12 +90,20 @@ class Preview extends Component { if (!expanded) return
; + const previewText = `Preview allows you to preview your future GIF by + scrubbing through snapshots with the slider or + previewing your GIF with the play/pause button.`; + return (
+
+

Preview

+ +
Download Successful
) : null} - {!frameIDs.length ? ( + {!numFrames ? (
No frames have been captured. Use the camera or burst tools to add some! diff --git a/src/components/Settings.css b/src/components/Settings.css index f446ce1..1c51cf8 100644 --- a/src/components/Settings.css +++ b/src/components/Settings.css @@ -48,3 +48,9 @@ font-size: 1em; outline: none !important; } + +.Settings-header { + display: flex; + justify-content: center; + align-items: center; +} diff --git a/src/components/Settings.js b/src/components/Settings.js index 74a43d0..6e22274 100644 --- a/src/components/Settings.js +++ b/src/components/Settings.js @@ -2,6 +2,7 @@ import React, { Component } from 'react'; import classNames from 'classnames'; import { isPositiveInteger, isProperBound } from '../lib/input-helpers'; import './Settings.css'; +import InfoIcon from './InfoIcon'; class Settings extends Component { constructor(props) { @@ -43,10 +44,16 @@ class Settings extends Component { if (!expanded) return
; + const settingsText = `The settings panel allows you to set your desired image dimensions + as well as the interval between frames in the generated GIF.`; return (
+
+

Settings

+ +
Image Width
info(white) \ No newline at end of file