Open kof opened 7 years ago
I think we can show a landing page and move the current documentation to /docs
I can help with design. But need help with texts
We can use this as main screen http://cssinjs.org/404/ :)))) But with function values
@kof great idea. but how about design/prototype or something stuff which needs for work?
I am an awful designer, need help here.
@kof if you have a free time to discuss it, let's do it
Sure, ping me on gitter or twitter!
also @typical000 I can do the wording
I have planned to do some design in those days)))
Finally I had some time to make something :)
Dont know why, but I decided to make some original, 'vertical' design. Maybe because im tired by standart landings... Maybe it looks like a piece of shit... So dont judje strictly. :) All screens are adapted to 1920x1280px 24" monitor sizes. For 13"-15" will be less air around widgets :)
Home screen https://www.dropbox.com/s/s2pnue6zl57ctnc/landing_home_dark.jpg?dl=0 (or with white right part - https://www.dropbox.com/s/i69rwi30bflcojf/landing_home_light.jpg?dl=0) Left JSS logo can be static or with some dynamic like here - http://cssinjs.org/404/ 'Discover' more button scrolls down to first section 'See docs' redirects to full documentation
Benefits https://www.dropbox.com/s/vjt6jfwukqp43ve/landing_benefits.jpg?dl=0 After scrolling down from home screen left side will contract and content will be replaced with some pretty animation and stay fixed. It will change only when current section that is in viewport will change
Who is using https://www.dropbox.com/s/xqktzbbkjc6yc78/landing_who-is-using.jpg?dl=0
Anyway - in the next few days I'll try to make a more standard version of design
@typical000 heey, I like this
To me, it looks beautiful!
@typical000 ping me please on twitter if you have a free time. I want to discuss with you some cases about design
@kof Need to think what we need to describe and show in "theming", "ssr" and "migration strategies" sections. Because design will be determined by content :)
And some additional general questions:
I agree with idea to move docs to "docs/" subfolder and place landing as main. But what about development? We'll use separated and independent webpack builds for landing and docs, or use the same webpack config but split anything in 2 separated entry points?
What about texts? We can't use on landing MD files like on documentation site. Because there are too many places where we must put separated text keys (blocks).
Translations and internationalization. Did you thinked about translating landing to different languages? We can do EN, DEU, IT (yea, I know it and worked may years ago as interpreter :)) and RU translations. Maybe it will be a big plus in popularization of cssinjs?
SEO optimization. Meybe we need to optimize our future langins for it? It will be good if we search JSS and find this landing page :) But I have no experience in it :(
And what about "examples" section? What examples we'll show? Maybe we don't need pure examples and we can сut it and show only
Added more 2 examples
Testimonials section (if we can get them :)) https://www.dropbox.com/s/l4zkh2jnn36lu4n/landing_testimonials.jpg?dl=0
Examples (As described above, renamed them) https://www.dropbox.com/s/qig57v7xkl1cq0h/landing_examples.jpg?dl=0
What if we use embedded https://codesandbox.io/ (scroll down for examples) at the very first screen. On top of it we could use tabs in order to show sandboxes with different wrappers like styled-jss react-jss etc.
I am thinking that examples should be the first section after the teaser.
I was also looking again at styled-components landing page. I think it is too much text. On the landing we don't have to write tutorials. We have to make teasers and very briefly explain the benefits and use code playgrounds. Everything else should be on the docs pages.
Added new example with more 'regular' design https://www.dropbox.com/s/cdegwc6wztwidl6/design_landing_v2.jpg?dl=0
@typical000 I like it better than others variant
Another update. https://www.dropbox.com/s/cdegwc6wztwidl6/design_landing_v2.jpg?dl=0 - added ssr, theming and animation sections + footer
Menu (will be fixed, not visible on first section): https://www.dropbox.com/s/r37tito4a4z8irh/design_landing_v2_menu.jpg?dl=0
psd source: https://www.dropbox.com/s/22y1jk8dg5132wy/design_landing_v2.psd?dl=0
Just talked to @philpl, he brought me into thinking about one big problem: people who use react-jss and styled-jss don't care about core jss api. We have to structure the landing and the documentation in a way that allows user to go top-down.
Top-down means higher level API's first (react-jss/styled-jss), then JSON API, then core JSS api.
Also we need a getting started page similar to SC' landing, though I think it is too much text for landing after we put all the examples first, it should be a separate page on the docs page.
After long silence, what is done: (cssinjs repo was forked and setuped gh-pages in my personal repo)
What must be done before launch:
@typical000 looks amazing already :heart: just noticed that you're using codesandbox for the examples. I can only recommend you to take a look at https://github.com/FormidableLabs/react-live :wink:
Maybe changing those would also help to decrease the noise of the page. Some of the examples feel rather "busy" due to the CodeSandbox interface and because they look like windows (since they're just frames) taking up almost the entirety of the window. Hope that helps :+1:
Lets take a look at react-live. The benefit of codesandbox is that it is a complete DX, many already know how to use it and you can do everything.
Maybe we can find a trick to not instantiate a full editor until user clicks into it? Or alternatively use react-live and provide a link to codesandbox for a full experience.
Or alternatively use react-live and provide a link to codesandbox for a full experience
@kof I'd consider this optimal for most examples that require "more playing around" from the user :smile: the benefit of integrating this stuff into your site is definitely startup time, responsiveness, design control, etc. A link to codesandbox then would be ace!
Or alternatively use react-live and provide a link to codesandbox for a full experience
@philpl good solution! Never seen before and I'll use it in my next projec! But I see some bad parts in our case (as I think):
We must take in sync on landing and what we show to user on codesandbox. And this was the main point so we made ajax loading of documentation from github :) Using only codesandbox it's a win because we can share links everywhere (in gitter, docs site, landing) and we'll be sure that is the same example. But it's a fail due to codesandbox bootstrap time (especially if you quickly scroll to bottom of page - all start bootstrapping and it's a mess :))
As I see we can't write inside react-live import statements. Or not? So, our examples will be like "cutted" without saying to user what he must import. And all will be imported in landings code Another point - in examples we use things, that are not used in landing (e.g. styled-jss). So we must install it and import in landing.
Actually I will ask on codesandbox repo if we can have a light preview and only load the rest on click. Sort of a lazy option.
Hey all! Not sure if this is what you're looking for, but StackBlitz has the ability to run embeds on-click instead of on page load - for ex: https://stackblitz.com/edit/jss-example?ctl=1&embed=1&file=index.js (full project from here)
Happy to help you get this set up for your docs if desired!
@EricSimons the embed itself would be an iframe with loading remote document, right?
Another reanimation post :)
Seems like codesandbox solved internal problems with bootstrapping inside iframe when we embed code on out pages. Now sandbox is loading but preview is available only by click check example here: https://typical000.github.io/cssinjs/
Still waiting for help with:
Because without this 2 points anything else is ready. Or we need to make any other additional work here?
@kof maybe transfer all the changes from my forked repo to centerl repo in some branch like "next" ? So anyone who wants from core team can make changes without creating pullrequest?
yeah, next branch would be good.
Iframes is still not ideal, ideal would be using components of sandbox directly. Right now scrolling seems very heavy.
This is another blocking issue https://github.com/cssinjs/jss/issues/647
Done, all code now is in new 'next' branch: https://github.com/cssinjs/cssinjs/tree/next
Going to revisit this soon.
Famous last words ... because of all the maintenance work and v10 work, I didn't have enough time.
I just saw this https://www.strml.net ... thanks @tlakomy for sharing this, I could totally imagine this being an interactive intro/landing page for JSS.
We definitely need a landing page. We need to highlight the values without making people read the entire documentation. Also we need to integrate react-jss and styled-jss and evtl. prejss into it.
Points