Skip to content

[NORMAL 25-07-2022] Developing Creative Tim Website Using Angular Framework#1

Open
karmatenzi wants to merge 7 commits intomasterfrom
feature/angular-assignment
Open

[NORMAL 25-07-2022] Developing Creative Tim Website Using Angular Framework#1
karmatenzi wants to merge 7 commits intomasterfrom
feature/angular-assignment

Conversation

@karmatenzi
Copy link
Copy Markdown
Owner

No description provided.

@karmatenzi karmatenzi requested a review from sangayt1997 July 22, 2022 12:03
@sangayt1997
Copy link
Copy Markdown
Collaborator

@karmatenzi , add the screenshot when you have finalise your code

@sangayt1997
Copy link
Copy Markdown
Collaborator

sangayt1997 commented Jul 25, 2022

@karmatenzi
To be followed:

  • Have utilities, overwrite and variables SCSS,
  • avoid using br tag instead try to used utilities helper class and flex layout
  • Follow BEM properly with appropriate class name
  • If you want to overwrite the packages class name in the particular components try to wrap with the defined class and overwrite styling or else overwrite in the overwrite styling SCSS file.
  • For new html files you should have the particular screenshot so that reviewer can review the particular component properly.
  • Try to name the image assets with underscore "_".
  • Code refactor needed in the Readme file like ng have to replace with yarn now and as a developer we have to do proper documentation so that other developer will understand well before they start in the new project(It's just the information).

<div fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="start center">
<button mat-icon-button>
<mat-icon
matTooltip="Edit Task"
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

<div fxLayout="row" fxLayoutAlign="space-evenly center" fxLayoutGap="18px">
<mat-form-field fxFlex="50">
<mat-label>First Name</mat-label>
<input matInput>
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

<td mat-cell *matCellDef="let element"> {{element.name}} </td>
</ng-container>

<!-- Weight Column -->
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

<td mat-cell *matCellDef="let element"> {{element.position}} </td>
</ng-container>

<!-- Name Column -->
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using *ngFor to pass the data from the array could have reduce the line of code

<div fxFlex="33">
<mat-card fxLayout="column" fxLayoutAlign="center center" class="profile card--shadow">
<mat-card-header class="profile__header">
<div mat-card-avatar class="profile__image"></div>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rather used the image tag and pass the image src here and width and height, when you pass the in the div you are passing as background image not as avatar image


&__image {
background-image: url('https://demos.creative-tim.com/material-dashboard-angular2/assets/img/faces/marc.jpg');
background-size: cover;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check the above comment for this styling

<mat-divider></mat-divider>
<div class="sidebar__content card--color mt-20 font-size-18">
<a mat-list-item routerLinkActive="list-item-active" routerLink="/" class="card--color">
<mat-icon>dashboard</mat-icon>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could have used the angular material List component with icons

}
.button--design{
border: none;
font-weight: 300;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this two will have the separate utilities

@karmatenzi karmatenzi requested a review from Sonam-Choden August 2, 2022 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants