These are chat archives for FreeCodeCamp/Help

26th
Jan 2019
dyon gerwen
@fullstackinprogress_gitlab
Jan 26 00:14

please help me update this code to rxjs 6 with from instead of fromPromise
rxjs code:

public signup(firstName: string, lastName: string, email: string, password: string): Observable<boolean> {
    return Observable.fromPromise(
      this.afAuth.auth.createUserWithEmailAndPassword(email, password)
        .then((user) => {
          const userRef: AngularFirestoreDocument<User> = this.db.doc(`users/${user.uid}`);
          const updatedUser = {
            id: user.uid,
            email: user.email,
            firstName,
            lastName,
            photoUrl: 'https://firebasestorage.googleapis.com/v0/b/chat-4f314.appspot.com/o/default_profile_pic.jpg?alt=media&token=15171a5a-45fa-4e7e-9a4a-522bb330f2ba',
            quote: 'Life is like a box of chocolates, you never know what you are gonna get!',
            bio: 'Bio is under construction...'
          }

          userRef.set(updatedUser);
          return true;
        })
        .catch((err) => false)
    );
  }

my try without succes:(user.uid is not on in the object)

public signup(firstName: string, lastName: string, email: string, password: string): Observable<boolean> {
    return from(
      this.afAuth.auth.createUserWithEmailAndPassword(email, password)
        .then((user) => {
          const userRef: AngularFirestoreDocument<User> = this.db.doc(`users/${user}`);
          const updatedUser = {
            id: user,
            email: user,
            firstName,
            lastName,
            photoUrl: 'https://firebasestorage.googleapis.com/v0/b/chat-4f314.appspot.com/o/default_profile_pic.jpg?alt=media&token=15171a5a-45fa-4e7e-9a4a-522bb330f2ba',
            quote: 'Life is like a box of chocolates, you never know what you are gonna get!',
            bio: 'Bio is under construction...'
          }

          userRef.set(updatedUser);
          return true;
        })
        .catch((err) => false)
    );
  }
Adam Peterson
@Adomelis_twitter
Jan 26 11:55
Hi :) I am working on my Product landing page. Please help. I cannot understand how to make all elements be within the webpage width. Video and Contact form are scattered and the nav link are all scattered in the web site. Here is my pen on Codepen. Thank you :) https://codepen.io/Adampeterson7/pen/YdbxYe?editors=1100
May Kittens Devour Your Soul
@diomed
Jan 26 15:28
@Adomelis_twitter that's an odd way to code
Johnny
@JohnnyBizzel
Jan 26 15:32

@Adomelis_twitter CSS error , should be:

video {
 align:"middle";
}

And looks like you have 3 columns at 50%.

Adam Peterson
@Adomelis_twitter
Jan 26 15:39
Thanks I'm just a beginner. Thanks for feedback. :)
May Kittens Devour Your Soul
@diomed
Jan 26 21:07
@liamdocherty I'm worried about you
closing input is wrong. Input doesn't need </input> tag at all.
you should have learned that in FreeCodeCamp. it teaches it
what else? you're using table. that's also not good
css is made so thaat unless you really need and want to have a table - you run away as far as possible from using tables in design
use rows