Giter VIP home page Giter VIP logo

java-mod-8-building-app-lab-1's Introduction

Application Building Lab 1

Instructions

Following the same process we did for Level 1 and Level 2 components, add all the components into their target location using their respective selection. A couple of things to remember:

  1. Use Bootstrap-based layout to position the component where it should be in its parent component
  2. When a component is inside another container div, its "100%" or "12 columns" of layout are inside that container's space
  3. Use the Bootstrap's column layout to position the sender's messages to the left of the conversation history panel and to position the user's messages to the right of the conversation history panel

You should end up with an application that looks like this:

All the components in their basic layout

Take some time to do this on your own. We'll include the solution here, as we will be building on it as we progress in this section.

Solution

ere is your updated application-component.component.html view:

<div class="container">
  <div class="row">
    <div class="col-12 border p-3">
      <app-conversation-control-component></app-conversation-control-component>
    </div>
  </div>
</div>

<div class="container">
  <div class="row">
    <div class="col-12 border p-3">
      <app-conversation-history-component></app-conversation-history-component>
    </div>
  </div>
</div>

<div class="container">
  <div class="row">
    <div class="col-12 border p-3">
      <app-contact-list-component></app-contact-list-component>
    </div>
  </div>
</div>

Here is your updated conversation-history-component.component.html view:

<p>conversation-history-component works!</p>

<div class="container">
  <div class="row">
    <div class="col-12 p-3">List of users in this thread</div>
  </div>
  <div class="row">
    <div class="col-12 border p-3">
      <app-conversation-thread-component></app-conversation-thread-component>
    </div>
  </div>
</div>

<div class="container">
  <div class="row">
    <div class="col-12 border p-3">
      <app-send-message-component></app-send-message-component>
    </div>
  </div>
</div>

Note: we added a new row in the first container to have the text that indicates what users are in the current thread

Here is your updated conversation-thread-component.component.html view:

<p>conversation-thread-component works!</p>

<div class="container">
  <div class="row">
    <div class="col-9 border p-3">
      <app-sender-message-component></app-sender-message-component>
    </div>
  </div>
  <div class="row">
    <div class="col-9 border p-3">
      <app-sender-message-component></app-sender-message-component>
    </div>
  </div>
</div>

<div class="container">
  <div class="row">
    <div class="col-3 border p-3"></div>
    <div class="col-9 border p-3">
      <app-user-message-component></app-user-message-component>
    </div>
  </div>
</div>

Note: we added the app-sender-message-component twice to give a visual indication that corresponds to the wireframe of the application

Here is your updated contact-list-component.component.html view:

<p>contact-list-component works!</p>

<div class="row">
  <div class="col-12 border p-3">
    <app-contact-component></app-contact-component>
  </div>
</div>

<div class="row">
  <div class="col-12 border p-3">
    <app-contact-component></app-contact-component>
  </div>
</div>

Note: we also added the contact-component twice to give an idea of what multiple contacts would look like

java-mod-8-building-app-lab-1's People

Contributors

alveem avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.