-
Notifications
You must be signed in to change notification settings - Fork 61
feat(teams page): Design a teams page #202
Conversation
|
@ladyleet this is my first ever PR to an open source repo, so please help me out if I'm doing something wrong! |
|
Awesome, welcome @fredrik-lundin! |
|
Thanks @fredrik-lundin 😄 |
should have been removed in previous merge
yarn-error.log
Outdated
| @@ -0,0 +1,7574 @@ | |||
| Arguments: | |||
| C:\Program Files\nodejs\node.exe C:\Users\fredrikl\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please delete this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
.angular-cli.json
Outdated
| "styles": [ | ||
| "styles.scss" | ||
| "styles.scss", | ||
| "../node_modules/font-awesome/scss/font-awesome.scss" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use import in styles.scss like https://github.com/ReactiveX/rxjs-docs/blob/master/src/styles.scss#L1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I'm getting build errors when I try to import it like this:
@import '~font-awesome/scss/font-awesome';
Any tips on how I should import it using this technique?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sumitarora Got it, using this: https://stackoverflow.com/a/34366930/2521893
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both of these work it's not able to resolve the fonts which is why it's failing.
@import '~font-awesome/css/font-awesome.min.css';
@import './../node_modules/font-awesome/css/font-awesome.min.css';
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to work after these changes, doesn't it? fc9ca53
$fa-font-path: "~font-awesome/fonts";
@import "~font-awesome/scss/font-awesome";
package.json
Outdated
| "@angular/router": "5.0.2", | ||
| "@types/hammerjs": "2.0.35", | ||
| "core-js": "2.4.1", | ||
| "font-awesome": "4.7.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we use https://material.io/icons/ ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The material icon set doesn't include any icons for social providers, such as linkedIn and Github, which I'm using on the team member cards
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahha ok thanks 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both of these work it's not able to resolve the fonts which is why it's failing.
@import '~font-awesome/css/font-awesome.min.css';
@import './../node_modules/font-awesome/css/font-awesome.min.css';
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also just for social icons, we are importing an entire icon set. Is there a subset that we can utilize ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ashwin-sureshkumar it looks like only the woff2 file is being pulled in anyway, so maybe it isn't a major issue for now. Could it possibly be fixed/replaced in another pr? Open an issue for looking into it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fredrik-lundin I agree let's deal with that in later PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. If there is a bit more research needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, this is an awfully big file to pull in for a single icon. We may need to look further at this before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@btroncone , @sumitarora , @ashwin-sureshkumar please have a look at my latest commits. I removed FA and replaced it with a custom subset generated by https://icomoon.io/app. Much smaller footprint 👍
|
whoa y'all way to go on the hustle! thanks! |
package.json
Outdated
| "@angular/router": "5.0.2", | ||
| "@types/hammerjs": "2.0.35", | ||
| "core-js": "2.4.1", | ||
| "font-awesome": "4.7.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also just for social icons, we are importing an entire icon set. Is there a subset that we can utilize ?
| @@ -0,0 +1,9 @@ | |||
| <a *ngIf="!!githubUrl" mat-button [href]="githubUrl"> | |||
| <mat-icon [ngStyle]="{'color': '#6f066f'}" fontSet="fa" fontIcon="fa-github"></mat-icon> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move the colors into scss and use classes. @knittingcodemonkey - please validate accessibility on the colors used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 3 ngIf - just a thought if this can be done without ngIf by handling the transformation in js.
| <app-social-sharing | ||
| [githubUrl]="member.githubUrl" | ||
| [twitterUrl]="member.twitterUrl" | ||
| [linkedinUrl]="member.linkedinUrl"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
email is missing here but its part of the member interface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed - removed that unused property from the model
|
@fredrik-lundin - Amazing job ! Welcome to open source ! |
knitcodemonkey
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please darken the linkedin icon color, and move styles to scss, please. This is great work!
| <mat-icon [ngStyle]="{'color': '#4073d4'}" fontSet="fa" fontIcon="fa-twitter"></mat-icon> | ||
| </a> | ||
| <a *ngIf="!!linkedinUrl" mat-button [href]="linkedinUrl"> | ||
| <mat-icon [ngStyle]="{'color': '#4288b3'}" fontSet="fa" fontIcon="fa-linkedin"></mat-icon> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other icon colors have a high contrast, but the LinkedIn icon is too light. Can we darken it to #3D7CA4?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in e889fac
+ use darker color for linkedIn, for accessability
|
Rebased from updated upstream again. Let me know if there is anything else you want fixed before it's ready to go! :) |
|
@sumitarora @ashwin-sureshkumar are we still waiting on more changes or does all look good to go? |
|
LGTM ! Except right now all the team members is filled with dummy data. So we need a real list compiled to go in. May be another PR or we can tackle it here. @ladyleet Suggestion is to do it a different PR. |
|
@ashwin-sureshkumar yeah let's do it with a new PR later. |
|
oh pls tell me travis is not borked again |
|
looks great thx @fredrik-lundin ! so happy the rxjs docs was your first OSS contribution! :) |

Initial design and implementation of a Teams page #14