Skip to content

Instantly share code, notes, and snippets.

Avatar

wilson junior wilsonjuniordeveloper

View GitHub Profile
View index.js
import React, {useState} from 'react';
import {Container, Input, Button, Title} from './styles'
import firebase from '../data/Firebase';
export default function Login() {
const [email, setEmail] = useState('');
const [pass, setPass] = useState('');
View styles.js
import styled from "styled-components";
export const Container = styled.div`
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
`;
View Firebase.js
import firebase from ‘firebase’;
const config = {
apiKey: "AIzfhrwkKhDBFHbntnKhTahHjkNK6FG875dsdfSB6y",
authDomain: "teste-76g33.firebaseapp.com",
databaseURL: "https://teste-76g33.firebaseio.com",
projectId: "tste6g33",
storageBucket: "",
messagingSenderId: "547432956432"
};
firebase.initializeApp(config);
View styles.js
import styled from "styled-components";
export const Container = styled.div`
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
`;
View gist:e4bba539546c0f40a9a975a7e344aa64
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import Login from './container/Login'
import Cadastre from './container/Cadastre'
import Started from './screen/Started'
import State from './container/State'
import './css/doc.css'
import {
BrowserRouter as Router,
View gist:38cac305e2170c9489868947a77a741a
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import Login from './container/Login'
import Cadastre from './container/Cadastre'
import Started from './screen/Started'
import State from './container/State'
import './css/doc.css'
import {
BrowserRouter as Router,
View gist:58a7614b852836bc68c13a039c2a9212
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import Login from './container/Login'
import Cadastre from './container/Cadastre'
import Started from './screen/Started'
import State from './container/State'
import './css/doc.css'
import {
BrowserRouter as Router,