Skip to content

Instantly share code, notes, and snippets.

@FBosler
FBosler / index.jsx
Created February 9, 2020 18:28
Nav/index.jsx
import React from "react";
import { StyledNav } from "./styles";
const Nav = () => {
return (
<StyledNav>
<StyledNav.Brand href="/">
<img alt="" src="/logo192.png" width="30" height="30" className="d-inline-block align-top" /> Referral
App
</StyledNav.Brand>
@FBosler
FBosler / styles.js
Created February 9, 2020 18:01
ShareButton/styles.js
import styled from "styled-components";
import { AiOutlineLink } from "react-icons/ai";
import {
FacebookShareButton,
TwitterShareButton,
WhatsappShareButton,
LinkedinShareButton,
PinterestShareButton,
@FBosler
FBosler / index.jsx
Created February 9, 2020 17:59
ShareButtons/index.jsx
import React from "react";
import {
FacebookButton,
TwitterButton,
LinkedinButton,
WhatsappButton,
PinterestButton,
RedditButton,
EmailButton,
@FBosler
FBosler / Profile.jsx
Last active February 9, 2020 17:51
Profile/index.jsx
import React, { useState } from "react";
import { Container, Row, Col, Form } from "react-bootstrap";
import { ReferalSymbol, ResponsiveHeader4, MarginedRow } from "./styles";
import MileStones from "../Milestones";
import ShareButtons from "../ShareButtons";
import { DividerRow } from "../../styles";
@FBosler
FBosler / DelegatedAuthList_index.jsx
Last active February 9, 2020 13:46
DelegatedAuthList/index.jsx
import providerData from "../../data/providerData";
import { Col } from "react-bootstrap";
import React from "react";
import { ImageDiv, ColoredDiv, MarginedRow } from "./styles.js";
const DelegatedAuthButton = ({ img, href, color }) => {
return (
<Col xs={2} onClick={() => (window.location = href)} style={{ padding: "5px" }}>
<ColoredDiv color={color}>
@FBosler
FBosler / dataProvider.js
Created February 9, 2020 13:31
dataProvider.js
import AmazonIcon from "./icons/amazon.png";
import FacebookIcon from "./icons/facebook.png";
import GithubIcon from "./icons/github.png";
import GoogleIcon from "./icons/google.png";
import SpotifyIcon from "./icons/spotify.png";
import TwitchIcon from "./icons/twitch.png";
import TwitterIcon from "./icons/twitter.png";
const providerData = [
{
@FBosler
FBosler / BackGroundImage.jsx
Created February 8, 2020 14:12
BackGroundImage.jsx
const URL = "https://cdn.pixabay.com/photo/2014/01/17/19/01/tree-247122_1280.jpg";
<LandingBackground className={"z-depth-5"} url={URL}>
<FullRow>
<PaddedCol xs={{ span: 10, offset: 1 }} sm={{ span: 5, offset: 1 }}>
<ResponsiveHeader2>Grow the community by spreading the message</ResponsiveHeader2>
<ResponsiveParagraph>and get kittens in the process</ResponsiveParagraph>
</PaddedCol>
<PaddedCol xs={{ span: 10, offset: 1 }} sm={{ span: 5, offset: 1 }}>
<VerticalCenterWrapper>
@FBosler
FBosler / BackGroundImage.jsx
Created February 8, 2020 14:09
BackGroundImage.jsx
<LandingBackground className={"z-depth-5"} url={URL}>
<FullRow>
<PaddedCol xs={{ span: 10, offset: 1 }} sm={{ span: 5, offset: 1 }}>
<ResponsiveHeader2>Grow the community by spreading the message</ResponsiveHeader2>
<ResponsiveParagraph>and get kittens in the process</ResponsiveParagraph>
</PaddedCol>
<PaddedCol xs={{ span: 10, offset: 1 }} sm={{ span: 5, offset: 1 }}>
<VerticalCenterWrapper>
<LoginButton className={"z-depth-5"} size="lg">
Join the movement{" "}
@FBosler
FBosler / LandingPageImageStyles.js
Created February 8, 2020 14:09
Styles for LandingPageImage
import styled from "styled-components";
import { device } from "../../styles/styles";
import { Col, Row, Button } from "react-bootstrap";
export const LandingBackground = styled("div")`
background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("${props => props.url}");
background-position: 10% 50%;
background-size: cover;
border-bottom: grey 1px solid;
height: 200px;
@FBosler
FBosler / milestones_index_v2_b.jsx
Created February 6, 2020 07:58
Changes to Milestones component
const Milestones = props => {
const referrals = props.referrals || 0;
return (
<div style={{ padding: "25px" }}>
<Row>
{milestoneList.map(function(item) {
return (
<Col xs={12} sm={6} md={4}>
{Milestone(item.imageLocation, item.lowerThreshold, item.upperThreshold, referrals)}