Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add styling for speakers overview and details pages #82

Merged
merged 7 commits into from
Feb 19, 2018
Merged

Conversation

lukaszklis
Copy link
Member

@lukaszklis lukaszklis commented Feb 13, 2018

Related to #44.
First part of #60.

TODO:

  • Add a missing background for the speakers page
  • some images are squished (because they're not square?)
  • titles + names: decrease font-size on tablet and small desktop widths (@silkine can you suggest something?)
  • style social links on detail page (@silkine can you suggest something?)

}
.grid-item-speaker:nth-child(2n+2) {
grid-column: span 3 / -4;
margin-top: 14rem;
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure whether this would do the trick for what the design team had in mind… Let’s test it and decide what to do about this.

Copy link
Member

@cramforce cramforce left a comment

Choose a reason for hiding this comment

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

LGTM with some comments/questions

<figure class="ma0 speaker-picture">
<img src="{{ contents.images.speaker[speaker.image.filename].url }}"
alt="Portrait photo of {{ speaker.firstname }} {{ speaker.lastname }}"
data-aspect-ratio="{{ (speaker.image.height / speaker.image.width) * 100 }}%">
Copy link
Member

Choose a reason for hiding this comment

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

This was just my example for what to do if we wanted to make the images responsive. If we go with squares, this can just be removed.

Copy link
Member Author

Choose a reason for hiding this comment

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

True that, will remove it. :)

<ul>
{% if speaker.links.twitter %}
Copy link
Member

Choose a reason for hiding this comment

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

This part isn't designed yet, right?

Copy link
Member Author

@lukaszklis lukaszklis Feb 14, 2018

Choose a reason for hiding this comment

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

No it's not. I’ll try to talk to Silke or Nicolas about this today.

@Kriesse
Copy link
Member

Kriesse commented Feb 16, 2018

design: looks good except some details, added it to the checklist above.

@lukaszklis
Copy link
Member Author

Thanks @Kriesse!

@@ -31,7 +31,7 @@ p, ul, ol, blockquote {
font-size: 1.375rem;
}
@media (--medium) {
font-size: 1.5rem;
//font-size: 1.5rem;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd love to re-discuss this 1.5 rem, which resizes all fonts for screens larger than medium. It seems to be intentionally in order to resize the font. Is it necessary? Design-wise 22 px, in my opinion, work more harmonic with the rest of the content and we're encountering spacing problems on pages like the speaker page...

@silkine
Copy link
Collaborator

silkine commented Feb 18, 2018

Hey y'all
@usefulthink will solve the square images issue. I'm happy with the background now. I tried to find suitable font sizes for all media queries. Have only view-tested the pages on chrome (time issue)

What I like to tackle (or delegate, depending on my next weeks' office workload):

  • medium & large layout of the talk details page (this will be slightly different, sorry for not providing it in the first place. maybe something like: left image, right text, dunno yet though)
  • social link styling on detail page
  • Maltes sentence on speaker overview "More speakers are being announced daily on @jsconfeu" (-> @usefulthink )
  • build imagemagicking cron job to down/upsize images to 440px x 440px, maybe also 'image-optimizing' them in that step? (-> @usefulthink ?)
  • lazy loading speaker images (-> @usefulthink ?)
  • little paragraph layout on startpage for "newses" (-> @usefulthink )

@cramforce
Copy link
Member

Merging this, so we can iterate with smaller change sets.

@cramforce cramforce merged commit 8d7ed77 into master Feb 19, 2018
@cramforce cramforce mentioned this pull request Feb 19, 2018
@lukaszklis lukaszklis deleted the speaker-pages branch February 19, 2018 06:30
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.

5 participants