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

New post header (hero image) #415

Closed
MoOx opened this issue May 15, 2015 · 20 comments
Closed

New post header (hero image) #415

MoOx opened this issue May 15, 2015 · 20 comments

Comments

@MoOx
Copy link
Member

MoOx commented May 15, 2015

I tried a new header this morning & posted on gitter chan, but I gues most of you didn't see it

without image
with image

Notes:

  • You will be able to control the text color (light or dark) with a flag
  • maybe we should put meta below the image
  • I plan to add another layout where image is before all texts (including title)

Any thoughts ?

@kud
Copy link
Collaborator

kud commented May 15, 2015

Really cool. It gives some "life" to the website.

@magsout
Copy link
Collaborator

magsout commented May 15, 2015

like it, very good job

@bloodyowl
Copy link
Member

maybe we should use a canvas & calculate the best text color for contrast at runtime by reducing the canvas to 1px & reading the dominant color?

@MoOx
Copy link
Member Author

MoOx commented May 15, 2015

It might be a good enhancement indeed. But simple flags for now allow server side rendering. That said, we might handle that with a metalsmith plugin that read the image content.

@MoOx
Copy link
Member Author

MoOx commented May 15, 2015

Version light avec gradient custom

screen shot 2015-05-15 at 22 41 54

header:
  light: true
  linearGradient: 160deg, rgb(250, 250, 250), rgba(214, 194, 162, 0.6)
  image: true
  credit: http://freebiesxpress.com/gallery/macbook-air-table-direct-stock-photo/

Ça vous parait correcte ?

j'hésite sur le light, p-e juste text: "light" ? Quoique non c'est pas mieux.
Pour info les gradient sont préfixé -webkit aussi.

si .credit présent, on consider que image est ok

@magsout
Copy link
Collaborator

magsout commented May 15, 2015

Ca rend plutot pas mal, peut-etre un peu plus grossir la partie auteur pour qu'elle soit un peu plus lisible.

@MoOx
Copy link
Member Author

MoOx commented May 16, 2015

En regardant medium, je remarque qu'ils mettent ces infos dans le footer là où il y a la bio. On pourrait peut etre faire ça, et passer le temps en bulle sur le coté qui s'update au scroll ?

@MoOx
Copy link
Member Author

MoOx commented May 16, 2015

What about something like that ?

screen shot 2015-05-16 at 20 54 27

@MoOx
Copy link
Member Author

MoOx commented May 16, 2015

AND WHAT ABOUT A COMPLETE FUCKING CHANGE

screen shot 2015-05-16 at 20 58 07

@magsout
Copy link
Collaborator

magsout commented May 16, 2015

Je préfère avec le Header rouge. Même si le fond en blanc rend pas mal.

Avec les infos auteurs et Time comme ca, c'est une bonne idée. Je laisserai limite que le titre avec l'image. Les Tags à la fin peut-être ou en dessous de la partie InfoAuteur.

@MoOx
Copy link
Member Author

MoOx commented May 16, 2015

Je vais faire ça.

Plus je regarde le header blanc, plus j'aime. On pourra voir ça après coup.

@magsout
Copy link
Collaborator

magsout commented May 16, 2015

Plus je regarde le header blanc, plus j'aime. On pourra voir ça après coup.

Je me disais pareil. Le blanc à un style classe, net.

Pour le rouge c'est peut-être aussi biaisé par les icônes SVG en noir qui rendent le tout un peu moins beau et terminé.

@MoOx
Copy link
Member Author

MoOx commented May 16, 2015

Tu les verrais de quel couleur ?

@magsout
Copy link
Collaborator

magsout commented May 16, 2015

Comme avant, comme les liens

@MoOx
Copy link
Member Author

MoOx commented May 16, 2015

Ok, faut qu'on gère #374 d'abord :)

@magsout
Copy link
Collaborator

magsout commented May 16, 2015

Yep mais je suis largué avec webpack :(

@MoOx
Copy link
Member Author

MoOx commented May 16, 2015

C'est mon prochain post. Puis là de toute façon je pense que je vais le faire sans webpack. Ca fait overkill.

@magsout
Copy link
Collaborator

magsout commented May 16, 2015

capture d ecran 2015-05-17 a 00 36 55

Ca le fait comme ça je trouve. Bien joué 👍

@Nyalab
Copy link
Collaborator

Nyalab commented May 18, 2015

:shipit:

@lionelB
Copy link
Collaborator

lionelB commented May 18, 2015

la classe :)

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

No branches or pull requests

6 participants