Skip to content

Instantly share code, notes, and snippets.

View airgead73's full-sized avatar

Dan M. airgead73

  • San Diego, CA
View GitHub Profile
@airgead73
airgead73 / ApiSearch.js
Created January 20, 2018 10:00
Api search component
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import API from '../../providers/litlist_provider';
import ResultsPlace from './ApiResultsPlaces';
import ResultsProducts from './ApiResultsProducts';
import Container from '../../components/Containers/Container';
class ApiSearch extends Component {
constructor(props){
super(props);
@airgead73
airgead73 / App.js
Last active January 17, 2018 07:38
Original client files
import React, { Component } from 'react';
import { Navbar, Button } from 'react-bootstrap';
import './App.css';
class App extends Component {
goTo(route) {
this.props.history.replace(`/${route}`)
}
login() {
@airgead73
airgead73 / stickyfooter.css
Last active January 11, 2018 18:02
CSS for sticky footer
/*
Margin-bottom on <body> should be same as height on <footer>
*/
html {
position: relative;
min-height: 100%;
}
body {
margin-bottom: 60px;