5.9: Layout and Styling Member Profiles

Adding the Left Panel

In member-detail.component.html, add the following layout:

We'll improve the way the dates display later on.

In member-detail.component.scss, add the following styles:

.container {
    margin-top: 1rem;
}

.btn {
    flex-grow: 1;
}

.card {
    width: 23rem;
}

.card-image-top {
    width: 100%;
    height: 100%;
}

.card-header {
    font-size: 2rem;
    font-weight: bold;
}

.card-body {
    padding: 0 25px;
}

Adding the Right Panel

For the right panel, we'll use a tabbed panel with the ngx-bootstrap library we added to our project earlier.

First, we need to import it into our app.module.ts file:

We'll add the next panel inside of the empty <div class="col-sm-8"> from the last section.

To customize the styling of the ngx-bootstrap tabs, we'll have to do it in our main styles.scss file.

Last updated