Skip to content

Instantly share code, notes, and snippets.

View ryanjyost's full-sized avatar

Ryan Yost ryanjyost

View GitHub Profile
@ryanjyost
ryanjyost / Landing.js
Last active January 24, 2017 04:32
rainy-day-fund/src/components/Landing.js
//src/components/Landing.js
import React from 'react';
import { Link } from 'react-router';
import { Grid, Jumbotron, Button } from 'react-bootstrap';
const Landing = () => {
return (
<Grid id="Landing" className="container-fluid">
<Jumbotron id="landing-jumbotron">
@ryanjyost
ryanjyost / WhatIsARainyDayFund.js
Last active January 24, 2017 04:42
rainy-day-fund/src/components/WhatIsARainyDayFund.js
//src/components/WhatIsARainyDayFund
import React, { Component } from 'react';
import { Link } from 'react-router'
import { Button } from 'react-bootstrap';
const WhatIsARainyDayFund = () => {
return (
<div id="WhatIsARainyDayFund">
<h1>What is a Rainy Day Fund?</h1>
@ryanjyost
ryanjyost / MenuBar.js
Last active January 24, 2017 04:48
rainy-day-fund/src/components/MenuBar.js
//src/components/MenuBar.js
import React from 'react';
import {Link} from 'react-router'
import { ButtonGroup, Button } from 'react-bootstrap';
const Menubar = () => {
return (
<ButtonGroup id="menu" justified>
<Button className="menu-btn" href="#">
@ryanjyost
ryanjyost / App.js
Last active January 26, 2017 04:47
rainy-day-fund/src/components/App.js
//src/components/App.js
import React from 'react';
import { Grid, Row } from 'react-bootstrap';
import MenuBar from './MenuBar';
const App = ({children}) => {
return (
<Grid id='App'>
<Row id='MenuBar'><MenuBar/></Row>
<Row>{children}</Row>
@ryanjyost
ryanjyost / Pre-Redux: Assumptions.js
Last active January 24, 2017 04:59
Pre-Redux: rainy-day-fund/src/components/Assumptions.js
//src/components/Assumptions.js
import React from 'react';
import {Link} from 'react-router'
import { FormGroup, Row, ControlLabel, FormControl, Button, InputGroup } from 'react-bootstrap';
import {formatDollarValues} from '../helpers'
const Assumptions = () => {
return (
<div id="Assumptions">
@ryanjyost
ryanjyost / Pre-Redux: Expenses.js
Last active January 24, 2017 05:02
Pre-Redux: src/rainy-day-fund/src/Expenses.js
//src/components/Expenses.js
import React from 'react';
import { Link } from 'react-router'
import { Button } from 'react-bootstrap';
import Expense from './Expense'
import TotalExpenses from './TotalExpenses'
const Expenses = () => {
@ryanjyost
ryanjyost / Pre-Redux: Expense.js
Last active January 22, 2017 20:46
Pre-Redux: rainy-day-fund/src/components/Expense.js
//src/components/Expense.js
import React from 'react';
import {FormControl, InputGroup } from 'react-bootstrap';
import {formatDollarValues} from '../helpers'
const Expense = () => {
return (
<li className="expense-item">
@ryanjyost
ryanjyost / Pre-Redux: TotalExpenses.js
Created January 11, 2017 04:33
Pre-Redux: rainy-day-fund/src/components/TotalExpenses.js
//src/components/TotalExpenses.js
import React from 'react';
import {formatDollarValues} from '../helpers'
const TotalExpenses = () => {
return (
<div id="TotalExpenses">
<h3>Total Monthly Expenses</h3>
{' '}
@ryanjyost
ryanjyost / Pre-Redux: SavingsPlan.js
Last active January 11, 2017 04:39
Pre-Redux: rainy-day-fund/src/components/SavingsPlan.js
//src/components/SavingsPlan.js
import React from 'react';
import { FormControl, InputGroup } from 'react-bootstrap';
import {formatDollarValues} from '../helpers'
const SavingsPlan = () => {
return (
@ryanjyost
ryanjyost / router.js
Last active January 15, 2017 21:41
rainy-day-fund/src/components/router.js
//src/router.js
import React from 'react'
import { Router, Route, hashHistory, IndexRoute } from 'react-router'
import App from './components/App'
import Landing from './components/Landing'
import WhatIsARainyDayFund from './components/WhatIsARainyDayFund'
import Assumptions from './components/Assumptions'
import Expenses from './components/Expenses'