Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.

Conversation

@fredrik-lundin
Copy link
Contributor

Initial design and implementation of a Teams page #14

@fredrik-lundin
Copy link
Contributor Author

@ladyleet this is my first ever PR to an open source repo, so please help me out if I'm doing something wrong!

@btroncone
Copy link
Collaborator

Awesome, welcome @fredrik-lundin!

@sumitarora
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please delete this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

"styles": [
"styles.scss"
"styles.scss",
"../node_modules/font-awesome/scss/font-awesome.scss"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

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?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I will check

Copy link
Contributor Author

@fredrik-lundin fredrik-lundin Dec 13, 2017

Choose a reason for hiding this comment

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

Copy link
Collaborator

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';

Copy link
Contributor Author

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",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ahha ok thanks 👍

Copy link
Collaborator

@sumitarora sumitarora Dec 13, 2017

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';

Copy link
Collaborator

@ashwin-sureshkumar ashwin-sureshkumar Dec 13, 2017

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 ?

Copy link
Contributor Author

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?

image

Copy link
Collaborator

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

Copy link
Collaborator

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

Copy link
Collaborator

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.

Copy link
Contributor Author

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 👍

@ladyleet
Copy link
Member

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",
Copy link
Collaborator

@ashwin-sureshkumar ashwin-sureshkumar Dec 13, 2017

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>
Copy link
Collaborator

@ashwin-sureshkumar ashwin-sureshkumar Dec 13, 2017

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

Copy link
Collaborator

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">
Copy link
Collaborator

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.

Copy link
Contributor Author

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

@ashwin-sureshkumar
Copy link
Collaborator

@fredrik-lundin - Amazing job ! Welcome to open source !

Copy link
Contributor

@knitcodemonkey knitcodemonkey left a 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>
Copy link
Contributor

@knitcodemonkey knitcodemonkey Dec 13, 2017

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in e889fac

@fredrik-lundin
Copy link
Contributor Author

Rebased from updated upstream again. Let me know if there is anything else you want fixed before it's ready to go! :)

@ladyleet
Copy link
Member

@sumitarora @ashwin-sureshkumar are we still waiting on more changes or does all look good to go?

@ashwin-sureshkumar
Copy link
Collaborator

ashwin-sureshkumar commented Dec 18, 2017

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.

@sumitarora sumitarora closed this Dec 19, 2017
@sumitarora sumitarora reopened this Dec 19, 2017
@ladyleet
Copy link
Member

@ashwin-sureshkumar yeah let's do it with a new PR later.

@ladyleet
Copy link
Member

oh pls tell me travis is not borked again

@ladyleet ladyleet merged commit 802f7cb into ReactiveX:master Dec 29, 2017
@ladyleet
Copy link
Member

looks great thx @fredrik-lundin ! so happy the rxjs docs was your first OSS contribution! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants