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

Improve docs homepage #84

Closed
mxstbr opened this issue Aug 28, 2017 · 24 comments
Closed

Improve docs homepage #84

mxstbr opened this issue Aug 28, 2017 · 24 comments

Comments

@mxstbr
Copy link
Member

mxstbr commented Aug 28, 2017

The docs homepage right now mostly duplicates content from the nav and from the homepage:

screen shot 2017-08-28 at 19 56 14

We should figure out a better thing to do with it than just that. Any ideas?

@SaraVieira
Copy link
Member

SaraVieira commented Aug 28, 2017

@mxstbr Maybe add "questions" instead, something like:

Want to do you want to do with styled components?

I want to learn styled-components

This would link to getting started

I want to animate my components

Link to animations

Can I use this in react native ?

Link to react native

You get the idea :p

Watchu think ?

@mxstbr
Copy link
Member Author

mxstbr commented Aug 29, 2017

Hmm, I feel like that just duplicates the content we have anyway. I feel like we have that page and we're not really doing anything useful with it.

What about putting a quick start guide there instead? Can probably just be "Installation" + "Getting started" so that folks can jump right in?

@kitten
Copy link
Member

kitten commented Aug 29, 2017

@mxstbr I agree, I think we should have a generic starting point for all the pages, that "hand holds the user" like @SaraVieira but not duplicate / change the structure.

What about putting a quick start guide there instead? Can probably just be "Installation" + "Getting started" so that folks can jump right in?

I think that will just end up bloating it. Like the homepage already has a small guide to get started. We should be careful not to "litter" content everywhere, but to keep them contained. Otherwise you give the user what he might not have wanted, e.g. "I want to find something in the documentation" => "Here is how to get started"; That might be a good way to anticipate first-timers, but it won't deliver a good overview (What the "Basics" page does) and it won't be good for everyone.

I propose that we rely on the sidebar for extended navigation: Let the sidebar take care of listing all links, sections, pages, etc.

And instead have cards here, that only have the basic pages. A card might contain a title, for instance "Basics", and an explanation: "This section will walk you through everything you need to know to use styled-components. It will teach you all of our concepts and get you started".

This separates the starting point into a really easy "decision tree" like what Sara does: Basics, Advanced, ...; But also doesn't go overboard and changes the current structure.

@morajabi
Copy link
Member

morajabi commented Aug 29, 2017

@philpl @mxstbr I think we need to define some basic rules for the designs so they'll have a consistent feel and look no matter who designs them. For example, let's define some of these:

Not a big deal but a good thing to do :)

Besides, I can design something for the cards section.

@kitten
Copy link
Member

kitten commented Aug 29, 2017

@morajabi I can answer the questions based on what I've done with the current site. And @mxstbr can probably add some comments to changes he'd like. Then we can create some variations and get some feedback via Twitter etc.

Do we like gradients or flat colors?

There's only a single gradient which is used for a single background per page. This is the "brand" gradient. The other two main colours (which also are part of the gradient) are a "gold" (rgb(243,182,97), used for h1), and sth similar to palevioletred (rgb(219,112,147), used for the footer, links, notes and accents in general)

Do we have shadows or not?

The current design doesn't use shadows with the exception of "card-like" components. Currently we only have a single "card-like" component, which are the codeblocks / live edit components.

What are our main colors here?

See above

Edit: Here's the gradient btw linear-gradient(20deg,rgb(219,112,147),#daa357); Notice the 20deg angle, which is crucial to not make it look dull and "compete" with the horizontal text, or vertical layout.

@morajabi
Copy link
Member

morajabi commented Aug 29, 2017

Thanks for answers. So, tell me a bit more about how you want the card grid to look like, so I can design it the right way.

@kitten
Copy link
Member

kitten commented Aug 29, 2017

@morajabi I'm not really sure what we should go for. I'd have to try out some variations myself 😉

Maybe you'd like to just adhere to some general patterns we're already using? I'll paste the CodeBlock styles here, which should be the basis. We can try different colours and styles for the background etc.

  border-radius: ${rem(3)};
  box-shadow: 1px 1px 20px rgba(20, 20, 20, 0.27);
  margin: ${rem(35)} 0;

(The rem utility just converts the px number to rem btw)

@morajabi
Copy link
Member

Thanks, I will start and when done, I'll share them here for your comments.

@morajabi
Copy link
Member

Hey @mxstbr and @philpl, What do you think about this? Open to comments :) Also I didn't know if you wanted to add more cards, but if you want to add more we can tweak this a bit.
https://www.figma.com/file/ZZHoPeTYKNtNqcLYnRsQSVxR/Styled-Components?node-id=6%3A0

@kitten
Copy link
Member

kitten commented Aug 29, 2017

@morajabi That's amazing! Exactly what I had in mind ❤️

I'm wondering whether we should just use a single colour for their heading? It might be unnecessary "beautifying" to use multiple ones and will look weirder as we add more sections, I believe

@morajabi
Copy link
Member

morajabi commented Aug 29, 2017

@philpl Thanks!

I think for the first 3 it'd be fine. Because I think these 3 are the main sections, If we want to add more for example, "Animations" or "With React Native", I think we should use smaller cards (4 in a row) with one single colour for all of them (All primary colour or secondary one because we have an h1 heading here: Documentation)

@mxstbr
Copy link
Member Author

mxstbr commented Aug 29, 2017

Love it! Let's get rid of the "choose your path" sentence and this looks perfect 👌

I don't mind the multiple colors, we can tinker around with that in the future as we add more sections.

@morajabi
Copy link
Member

morajabi commented Aug 29, 2017

@mxstbr I was just kidding about that sentence :))

P.S: It's fun to design this fast! I didn't know it's still fun without wireframes, sketches, etc. 💯

@morajabi
Copy link
Member

morajabi commented Aug 29, 2017

I added some more cards if you want to take a look.

@wking-io
Copy link

wking-io commented Aug 29, 2017

The design look slick @morajabi! I have one note revolving around the title hierarchy:

Ideally in the code the heading 'Documentation' is an h1, but the other headings will be h2s (I assume) so, we would want it to either be a different font weight, color, or font size to show the heading hierarchy.

Since it was decided the colors can stay for iteration one, maybe we can change the font-size to denote that these are not the same importance as the h1 'Documentation. Thoughts?

Just played around with the figma file and I like the look of 28px for the section card title:

screenshot 2017-08-29 16 11 55

maybe even font-weight: 600?

screenshot 2017-08-29 16 13 45

@morajabi
Copy link
Member

@wking-io Thanks! You're right, I decreased the font-size to 28. But I didn't want to change the weight because it's a part of design language. We can change it later anyway.

@kitten
Copy link
Member

kitten commented Aug 30, 2017

@morajabi Optimally we'd want to use our current h2 styling which is:

  • font-weight: 500
  • font-size: ${rem(32)}; (32px)

Btw our line-height is 1.6 consistently, but most headers have some kind of margin.

@morajabi
Copy link
Member

morajabi commented Aug 30, 2017

@philpl Done!

@mckernanin
Copy link
Member

@morajabi need any help here?

@morajabi
Copy link
Member

@mckernanin I think so! It is just a design currently. @kitten Do we still want this?

@kitten
Copy link
Member

kitten commented Apr 25, 2018

@mckernanin @morajabi Yea, we definitely still want this ❤️

@atmasark
Copy link

Joining the party a few years late, but this issue caught my eye. Is there still need for implementing the card design made by @morajabi ? The content isn't technically duplicated anymore as the content is hidden in the sidebar on docs homepage nowadays, but the card design hasn't yet been implemented and that seemed like a neat idea.

@Zhoha28
Copy link

Zhoha28 commented Dec 3, 2020

IMO, the card layout looked super awesome, I see that it has not been implemented yet, but as @atmasark said, it seems like a neat idea to implement the card layout. Is it still needed, if yes, I would definitely like to work on it

@ItzaMi
Copy link

ItzaMi commented Jan 20, 2021

Is it me or does it seems like this issue is no longer valid?
Seems that the chosen solution was to remove the secondary categories from the navbar until a primary one from the nav / secondary one from the page was selected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants