Components

Last updated: May 30th, 2018

Login Screen

Main Login Page

Passwordless Login

How it looks

Code

Normal Login

How it looks

Frontend Code for Login Page

Code that controls how the Login Page Looks

How it works

Reset Password

This one will look a little bit different, as we go to a different screen, the Reset Password screen

How it looks

Login Screen link to Reset Password
Frontend Code for Reset Password Page
How the Reset Password Page works

Create an account

How it looks

The input fields
The two buttons
Handling the Inputs
Calling the API
Creating the Account

Home Page

New Post

Example Home Page
Code from Mainpage

New Post: How it works

New Post Box
Code for New Post Header
New Post Box Code for the Body and Footer

Images

Handling Posting Images: How it looks
Handling Posting Images: How it works
Creating the Image Gallery
Using the Image Gallery

Profile

Example Profile Page

Code

Profile Head

How it looks
Code

Edit Profile

How it looks
Code
Profile Head Code: Top Banner
Profile Head Code: Bottom Box

Blog

Example Blog

How it looks

The Blog shows up in both the Profile Page as well as the Home Page. It's main purpose is to display posts

Code

Post

Example Post

How it looks

Post Header

How it looks

This encompasses the User Avatar, Clickable Full name, and the ... menu

Code

Post Body

How it looks

This encompasses the image or picture that is the Post itself

Code

Likes

Comments

Code from Post
CommentGroup: New Comment Box

The part of the Component that is used in Post in order to show the new comment box

CommentGroup: CommentList

The part of the Component that is used in Post in order to show the Comments

Sharing

Code

People

Example People Page

How it looks
Code

FindPeople and UserBoxList Components

Code

UserBox

Code

Friends

Adding a Friend

When someone clicks Add Friend, the code calls dbAddFriendRequest

Canceling a Friend Request

When someone clicks Cancel request, the code calls dbCancelFriendRequest

Accepting a Friend Request

When someone clicks Approve, the code calls dbAcceptFriendRequest, which then calls dbAddFriend

Denying a Friend Request

When someone clicks Deny, the code calls dbDenyFriendRequest

Deleting a Friend

When someone clicks Unfriend, the code calls dbDeleteFriend