GithubHelp home page GithubHelp logo

Comments (11)

oliverturner avatar oliverturner commented on July 1, 2024 1

I guess the person I'd love to hear from most as far as motivation is concerned is @geelen :)

from styled-components-website.

mxstbr avatar mxstbr commented on July 1, 2024

We definitely need a big section about why you would do any of this!

from styled-components-website.

kitten avatar kitten commented on July 1, 2024

@mxstbr Maybe we can rewrite your talk here into a short raison d'être? The transcript is already there :P https://pusher.com/sessions/meetup/reactivate-london/from-css-preprocessors-to-styled-components

from styled-components-website.

oliverturner avatar oliverturner commented on July 1, 2024

A first pass:

Styled Components takes the big idea of CSS Modules - automated isolation - and extends it, making React the glue layer between mark-up and presentation. Extracting structural nodes from "smart" views leads to cleaner architecture as a natural by-product.

You get to write modern, expressive, idiomatic CSS because, uniquely among CSS-in-JS solutions, Styled Components recognises the power of the language instead of trying to reinvent it.

from styled-components-website.

kitten avatar kitten commented on July 1, 2024

@mxstbr @oliverturner I wrote an initial "Motivation" section, based on the talk at Reactivate. Maybe you guys want to iterate on this? https://github.com/styled-components/styled-components-website/blob/master/components/basics/motivation.js

from styled-components-website.

geelen avatar geelen commented on July 1, 2024

Yeah I should definitely write up a few things, but there's not much chance I'll get to that in the next two weeks, sorry.

As for the homepage, I don't mind the split view with live coding possibilities, but visually it's a bit heavy at the moment. I'd leave the original code snippet photo there for the moment, or pick a demo that's a bit less prominent (maybe a couple of buttons, no white background, etc.)

Love that fkn gradient though! Makes me want a mimosa so bad.

from styled-components-website.

kitten avatar kitten commented on July 1, 2024

@geelen I think you're right about the homepage liveedit example. What if we use the current styled-component website's code in a simple CodeBlock?

localhost-3000- 2

from styled-components-website.

geelen avatar geelen commented on July 1, 2024

Yeah that works well

from styled-components-website.

mxstbr avatar mxstbr commented on July 1, 2024

I feel like the code block should be tighter there, in the sense that there's a lot of wasted black space?

from styled-components-website.

kitten avatar kitten commented on July 1, 2024

@mxstbr True that, I'll change the width of the container on the homepage

from styled-components-website.

kitten avatar kitten commented on July 1, 2024

Let's close this for now in favour of more potential issues in the future :)

from styled-components-website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.