Skip to content

Instantly share code, notes, and snippets.

View hamedbaatour's full-sized avatar
🎯
Focusing

Hamed Baatour hamedbaatour

🎯
Focusing
View GitHub Profile
import {Injectable} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {filter, first, map} from 'rxjs/operators';
@Injectable({
providedIn: 'root'
})
export class TwitterService {
constructor(public http: HttpClient) {
import {Component, OnInit} from '@angular/core';
import {FbService} from '../../services/fb/fb.service';
import {Router} from '@angular/router';
import {first} from 'rxjs/operators';
@Component({
selector: 'app-signup',
templateUrl: './signup.component.html',
styleUrls: ['./signup.component.css']
})
<div class="main__container">
<div class="signup-card">
<main class="signup-content">
<span class="signup-header">Signup</span>
<!-- signup form -->
<form class="signup-form" (ngSubmit)="signup($event)" #authform="ngForm">
<input ngModel type="email" autofocus placeholder="Email" name="email" class="signup-input" required>
<input ngModel type="password" placeholder="Password" name="password" class="signup-input" minlength="6"
.main__container {
min-height: 90vh;
width: 90vw;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
.signup-card {
<div class="main__container">
<div class="login-card">
<main class="login-content">
<span class="login-header">Login</span>
<!-- login form -->
<form class="login-form" (ngSubmit)="login($event)" #authform="ngForm">
<input ngModel type="email" autofocus placeholder="Email" name="email" class="login-input" required>
<input ngModel type="password" placeholder="Password" name="password" class="login-input" minlength="6"
import {Component, OnInit} from '@angular/core';
import {FbService} from '../../services/fb/fb.service';
import {first, tap} from 'rxjs/operators';
import {Router} from '@angular/router';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.css']
})
.main__container {
min-height: 90vh;
width: 90vw;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
.login-card {
.error-wrapper {
position: fixed;
left: 50%;
bottom: 0;
transform: translate(-50%, 5rem);
width: 70%;
background-color: crimson;
color: white;
height: 4rem;
border-radius: 0.25rem 0.25rem 0 0;
TWITTER_CONSUMER_KEY=xxxxxxxxxxxxxxxxxxxxxxxxx
TWITTER_CONSUMER_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWITTER_ACCESS_TOKEN_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWITTER_ACCESS_TOKEN_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
const functions = require('firebase-functions');
// environment variables
require("dotenv").config();
/**⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘
* @Twitter
* ⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘⌘
**/