Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Add of partner page #53

Merged
merged 7 commits into from Oct 30, 2017
Merged

Add of partner page #53

merged 7 commits into from Oct 30, 2017

Conversation

anishaswain
Copy link
Contributor

@anishaswain anishaswain commented Apr 30, 2017

Fixes issue #30

Features

  • Responsive in for all screen width
  • Gives a list of all organization, partner with HospitalRun

demo

cc: @tangollama @jglovier

@ghost
Copy link

ghost commented Apr 30, 2017

Your pull request doesn't follow our guidelines. Please fix the following:

  • Pull request title must start with uppercase (?)
  • Pull request title must be in imperative, present tense (e.g. "add", "fix", "change") (?)

Click here for details.

Thank you! 🙏

This comment was made by GitMagic – Magically enforcing your contribution guidelines.

@anishaswain anishaswain changed the title addition of partner page Addition of partner page Apr 30, 2017
@ghost
Copy link

ghost commented Apr 30, 2017

This pull request still violates some of our guidelines:

  • Pull request title must be in imperative, present tense (e.g. "add", "fix", "change") (?)

Click here for details.

@anishaswain anishaswain changed the title Addition of partner page Adding of partner page Apr 30, 2017
@anishaswain anishaswain changed the title Adding of partner page Add of partner page Apr 30, 2017
@ghost
Copy link

ghost commented Apr 30, 2017

Thank you, the title and description now looks good! :bowtie:

@anishaswain anishaswain mentioned this pull request Apr 30, 2017
@tangollama tangollama self-assigned this Apr 30, 2017
Copy link
Member

@jglovier jglovier left a comment

Choose a reason for hiding this comment

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

Thanks for getting this going @anisha1234! Left a few inline comments below:

{% include partners-list.html %}
</section>
<center class="partner-heading">
<h1>Hopefully Soon</h1>
Copy link
Member

Choose a reason for hiding this comment

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

Please remove this list from the page. I know @tangollama included those on his list in the issue, but we shouldn't display orgs that aren't actually partners on this page.

@@ -0,0 +1,30 @@
<center class='each-partner'>
<div class="partner-post">
<img src="../img/cure-logo.png" class="partner-logo" >
Copy link
Member

Choose a reason for hiding this comment

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

Each of these image elements needs an alt tag describing the image for accessibility. Also, they should have a width attribute to prevent the layout from jumping around as images load for users with slower connections.

}
.partner-logo{
width: 200px;
height: 8vw;
Copy link
Member

Choose a reason for hiding this comment

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

The use of a defined width but a relative height on these two lines above is causing the proportions of the logos to rendered as skewed. Instead, you could simply remove these properties and set a width attribute only directly on the img elements in the markup.

@media screen and (min-width: 280px) {
.each-partner {
width: 100%;
background-color: #273647;
Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer to see these not boxed in, and using the one color versions of the logos. However, if that's going to be challenging because of logo availability, let's just use a white background here #ffffff.

Copy link
Member

Choose a reason for hiding this comment

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

Also, if we're going to use the boxes, please use border-radius on them for consistency with other image/box elements we use on the site.

</div>
<h3 class="partner-name">Cure International</h3>
</center>
<center class='each-partner'>
Copy link
Member

Choose a reason for hiding this comment

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

The <center> should not be used, as it was a presentational element and has been deprecated from the HTML spec.

.partner-logo{
width: 200px;
height: 8vw;
padding: 1%;
Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer to stick with consistent units in our CSS, so for padding and margin let's keep these all as px units, rather than percentage values or vw.

@anishaswain
Copy link
Contributor Author

@jglovier Thanks for your review. It is really helpful .I will start working on the suggested changes as soon as possible.

@jglovier jglovier mentioned this pull request May 8, 2017
7 tasks
@anishaswain
Copy link
Contributor Author

@jglovier @tangollama Sorry for the delay. I have worked on the suggested changes and made required modifications. Kindly review the PR once again and let me know if it requires improvements.
screenshot from 2017-10-23 23-56-17

Copy link
Member

@jglovier jglovier left a comment

Choose a reason for hiding this comment

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

Thanks for making some changes @anisha1234. I've reviewed the code and have a few more changes to request please, mostly around the images again.

I realized that some of the images you have are themselves skewed, or not the original logo. For example, the CURE logo is squished horizontally, as is the eHealth Africa logo, and the New Relic logo. Also, The GitHub logo is also squished, and per GitHub branding guidelines should not include the octocat along with the wordmark.

Could you please resolve these issues with the partner logos?

@@ -0,0 +1,30 @@
<div style="text-align:center" class='each-partner'>
<div class="partner-post">
<img src="../img/cure-logo.png" alt="Cure International logo" class="partner-logo">
Copy link
Member

Choose a reason for hiding this comment

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

These image tags are still missing an inline width attribute.

</div>
<div style="text-align:center" class='each-partner'>
<div class="partner-post">
<img src="../img/eHealth.png" alt="eHealthAfrica logo" class="partner-logo" >
Copy link
Member

Choose a reason for hiding this comment

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

...same here. Needs width attribute.

</div>
<div style="text-align:center" class='each-partner'>
<div class="partner-post">
<img src="../img/msbp.png" alt="Microsoft's Bizspark logo" class="partner-logo" >
Copy link
Member

Choose a reason for hiding this comment

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

...same here. Needs width attribute.

</div>
<div style="text-align:center" class='each-partner center'>
<div class="partner-post">
<img src="../img/newrelic.png" alt="New Relic logo" class="partner-logo" >
Copy link
Member

Choose a reason for hiding this comment

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

...same here. Needs width attribute.

</div>
<div style="text-align:center" class='each-partner center'>
<div class="partner-post">
<img src="../img/ember.svg" alt="Ember Sherpa logo" class="partner-logo" >
Copy link
Member

Choose a reason for hiding this comment

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

...same here. Needs width attribute.

}
.partner-logo{
width: 200px;
height: 100px;
Copy link
Member

Choose a reason for hiding this comment

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

Please remove the height attribute from this line, and set the width in the line above to max-width: 100%; instead. That will make it responsive within the container.

@anishaswain
Copy link
Contributor Author

@jglovier I have made the modifications. Kindly verify if it needs further modifications.
screenshot from 2017-10-25 12-54-00

Copy link
Member

@jglovier jglovier left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for attending to all the changes @anisha1234!! 👏 ❤️ ⚡

@jglovier jglovier merged commit 24bb381 into HospitalRun:master Oct 30, 2017
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.

None yet

3 participants