Repository navigation
Landing page revamp - #3718
Landing page revamp#3718
Conversation
|
I better get you some image assets then - this is looking 💯/💯 |
|
I wasn't sure which font you had in your designs, too. Is it a web font? |
j-f1
left a comment
There was a problem hiding this comment.
Looks great so far! There are a couple of image things we need to figure out, though.
| </div> | ||
| ); | ||
|
|
||
| const bash = string => `~~~bash\n${string}\n~~~`; |
There was a problem hiding this comment.
How difficult would it be to make this a template tag? i.e.
bash`
$ foo
bar
baz
`There was a problem hiding this comment.
Easy enough - pushed a commit that does that, does it add any value?
| return ( | ||
| <a key={i} href={user.infoLink}> | ||
| <img | ||
| src={user.image} |
There was a problem hiding this comment.
Some of these images don’t look very good on a dark background; we should either switch to a light background or get inverted versions of the images.
|
|
||
| const Editor = ({ content = "", image, name }) => ( | ||
| <div style={{ display: "flex", width: "235px", padding: "20px" }}> | ||
| <img src={image} style={{ width: "100px", height: "100px" }} /> |
There was a problem hiding this comment.
We need to find a white Markdown logo for this, since black on dark blue looks bad.
| content: > | ||
| [`prettier-atom`](https://github.com/prettier/prettier-atom), | ||
| content: | | ||
| [`prettier-atom`](https://github.com/prettier/prettier-atom) |
There was a problem hiding this comment.
@j-f1 This won't put them on their own lines, right? (Would need double line break)
There was a problem hiding this comment.
The > on line 3 collapses single newlines, but changing it to a | preserves newlines.
|
Images: Prefer svg vs png? (if png, want Think only one of two are not SVG today, everything else is a vector. Should be easy to replace. |
|
Probably svg? Bit more flexible with resizing. |
|
Cool, I’m mid meeting will maybe be ~2hr |
|
This is awesome! One super wishlist request: would be awesome to be able to click on the logo to toggle the animation on and off |
|
@vjeux Done 😄 |
|
https://ortastuff.s3.amazonaws.com/prettier/prettier-hp.zip should be all the assets I'd love (ideally before shipping) to get the logo to be closer to the center based design, the current version was built to be left aligned which is why it fits oddly I realize it's a bunch of faffing, but only gotta get it right once at this point :) |
|
I assume there's a docosaurus setting for the footer colour, any chance you can make that the same as the header? |
|
Font wise: I used AppleSDGothicNeo which I thought was a default for the macOS e.g. /* # What is prettier?: */
font-family: AppleSDGothicNeo-Bold;
font-size: 32px;
color: #FABE3F;
letter-spacing: 0;But now that I think about it, I imagine probably can look like: body {
font-family: "Apple SD Gothic Neo", "AppleSDGothicNeo" -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
}I'm not too sure of a similar feeling windows font yet, looking |
| }) | ||
| ) | ||
| ); | ||
|
|
There was a problem hiding this comment.
For some reason docusaurus wasn't preprocessing jsx on it. Forgot to raise a bug.
Were you looking for the UI font or just a built-in font? |
Initially I wanted the font currently used in the docs which is..But after looking through the default fonts, I felt like |
|
Great job! IMHO it would be better if the CSS file was generated from the JSON file, especially if we need to tweak the dashes as @orta suggested. Also, I might try to change the transitions into CSS animations, so the animation would play even if there's no JS (or the JS isn't loaded). As for what @vjeux suggested, maybe we could have a constant animation where all the lines "roll" all the way every X seconds. Btw this could be also done without any client-side JS. I don't have the time right now to do a quick PoC to demonstrate what I mean, but will definitely try something tomorrow :) |
| } | ||
| })} | ||
| </MarkdownBlock> | ||
| </li> |
There was a problem hiding this comment.
I'd be really curious to know how many people use prettier as a pre-commit hook and how many instead use ESLint to run prettier. Personally I'm using ESLint because we were already using it and it was already integrated with our code review and CI system. Given the questions we get it seems I'm far from alone.
There was a problem hiding this comment.
Yeah, it's unfortunate we don't have any CSS preprocessing for the website. We'd have to have it as a pre-build step.
That would be cool, but I really like the way you can play around by clicking it! Can we have it both ways? |
* Use the static logo for the moment * Fix the broken JS, from going static, and make overscroll the right color
| var logoWrapper = document.querySelector(".animatedLogoWrapper"); | ||
| // We don't have access to a unique body css attribute for just the homepage | ||
| // so instead it is set on load. It's only really visible on a vertical overscroll | ||
| document.body.style.backgroundColor = "rgb(24, 32, 37)" |
There was a problem hiding this comment.
Can’t you use body { ... } in the CSS to do this?
There was a problem hiding this comment.
The CSS is injected into every page I think, so I couldn't add it inside with the rest of the CSS - I guess a style could be inlined inside the HTML though?
| .getStartedSection ol li { | ||
| margin: 0 0 22px 0 !important; | ||
| min-height: 110px; | ||
| padding-left: 46; |
There was a problem hiding this comment.
Should be 46px. Doesn't render well on windows Firefox otherwise.
|
This is looking awesome, I can't wait for it to ship <3 |
|
I just published the animated logo on npm and opened a pull request on @azz repo to use it on the landing page. It now uses CSS animations instead of transitions, which means it works without JS, and the animation doesn't have to wait the whole page to load before firing. |
|
I originally set it to start animating on page load because otherwise it was really janky (heaps of dropped frames), does this fix the issue? |
|
Any blockers I can help on? |
|
Given @lipis' work in many other PRs we should try get this merged to master as-is, we've been blocked for 2 weeks on npm faffing which isn't really that important. The only difference is in the cool animating logo. I've sent a PR updating this to master ( azz#5 ) which should get the ball rolling again. |
| <img src="/images/github_grey.svg" style={{ height: "100px" }} /> | ||
| </a> | ||
| <div style={{ marginLeft: ".7em", width: "260px" }}> | ||
| <p>More than 50,000 dependent repositories on GitHub</p> |
|
Ok should be good to merge. Any last words? |
|
Boom! 🎆 |
|
@lipis Feel free to PR the 60,000 you mentioned above. |
|
I dont see the animation on Chrome Version 64.0.3282.140 (Official Build) beta (64-bit), neither latest Safari. |
|
@montogeek We don’t quite have that ready to go yet. Hopefully, we’ll have it soon! |


Started working on #3669. Lots to do still, but it is starting to take shape.
🌐Live Preview
cc. @orta @vjeux @sandhose