add last minute tweaks found while writing docs

This commit is contained in:
cleverbeagle 2017-06-13 08:12:26 -05:00
parent ab22ebc967
commit 3bc98bc3a6
15 changed files with 45 additions and 15 deletions

View file

@ -0,0 +1,10 @@
import React from 'react';
import PropTypes from 'prop-types';
const Icon = ({ icon }) => (<i className={`fa fa-${icon}`} />);
Icon.propTypes = {
icon: PropTypes.string.isRequired,
};
export default Icon;

View file

@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import './InputHint.css';
import './InputHint.scss';
const InputHint = ({ children }) => (
<div className="InputHint">

View file

@ -2,6 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { Meteor } from 'meteor/meteor';
import { Bert } from 'meteor/themeteorchef:bert';
import Icon from '../Icon/Icon';
import './OAuthLoginButton.scss';
@ -30,9 +31,9 @@ const handleLogin = (service, callback) => {
};
const serviceLabel = {
facebook: <span><i className="fa fa-facebook" /> Log In with Facebook</span>,
github: <span><i className="fa fa-github" /> Log In with GitHub</span>,
google: <span><i className="fa fa-google" /> Log In with Google</span>,
facebook: <span><Icon icon="facebook-official" /> Log In with Facebook</span>,
github: <span><Icon icon="github" /> Log In with GitHub</span>,
google: <span><Icon icon="google" /> Log In with Google</span>,
};
const OAuthLoginButton = ({ service, callback }) => (

View file

@ -23,6 +23,7 @@ import NotFound from '../../pages/NotFound/NotFound';
import Footer from '../../components/Footer/Footer';
import Terms from '../../pages/Terms/Terms';
import Privacy from '../../pages/Privacy/Privacy';
import ExamplePage from '../../pages/ExamplePage/ExamplePage';
import './App.scss';
@ -45,6 +46,7 @@ const App = props => (
<Route name="reset-password" path="/reset-password/:token" component={ResetPassword} />
<Route name="terms" path="/terms" component={Terms} />
<Route name="privacy" path="/privacy" component={Privacy} />
<Route name="examplePage" path="/example-page" component={ExamplePage} />
<Route component={NotFound} />
</Switch>
</Grid>

View file

@ -0,0 +1,14 @@
import React from 'react';
import Page from '../Page/Page';
const ExamplePage = () => (
<div className="ExamplePage">
<Page
title="My Example Page"
subtitle="A subtitle for my example page."
page="example-page"
/>
</div>
);
export default ExamplePage;

View file

@ -1,4 +1,5 @@
import React from 'react';
import Icon from '../../components/Icon/Icon';
import './Logout.scss';
@ -11,9 +12,9 @@ const Logout = () => (
<h1>Stay safe out there.</h1>
<p>{'Don\'t forget to like and follow Clever Beagle elsewhere on the web:'}</p>
<ul className="FollowUsElsewhere">
<li><a href="https://facebook.com/cleverbeagle"><i className="fa fa-facebook-official" /></a></li>
<li><a href="https://twitter.com/clvrbgl"><i className="fa fa-twitter" /></a></li>
<li><a href="https://github.com/cleverbeagle"><i className="fa fa-github" /></a></li>
<li><a href="https://facebook.com/cleverbeagle"><Icon icon="facebook-official" /></a></li>
<li><a href="https://twitter.com/clvrbgl"><Icon icon="twitter" /></a></li>
<li><a href="https://github.com/cleverbeagle"><Icon icon="github" /></a></li>
</ul>
</div>
);