Git Product home page Git Product logo

francisca-mancini's Introduction

Francisca-Mancini

New shopify Website with DVTK.
Hosted on Heroku

Next.js

We're using Next.js to get a full server-side rendered app. See the config file at ./next.config.js or check the documentation.

Installation

$ yarn

Run dev server

$ yarn dev

Build for production

$ yarn build

Run production server

$ yarn start

Run storybook styleguide

$ yarn run storybook

Storefront API

We're using Shopify's storefront API to get/send data to the shop, using GraphQL and Apollo.

Tailwind.css

We're using Tailwind style system here to help us reduce the final stylesheet. Use it with CSSModules to compose existing classNames.

Example:

.element {
  composes: global(text-black) /* color: black; */ global(bg-white) /* background-color: white; */ global(p-2) /* padding: 20px; */;
}

See ./tailwind.config.js for the project's styleguide or check the documentation.

Component structure

We're dividing components in 3 category:

Atoms

Single UI elements, like <Heading /> that would display titles or <Spacing /> that would manage spacings.

Molecules

Complex components that are made of multiple Atoms.

Organisms

Components that fetch data and are made of Atoms and Molecules, they are mostly page specific but can be re-used across the app.

Storybook

Everytime we build a new Atom or Molecule (not needed for Organisms) we create a story for that component. It makes it easier to keep track of each component and its props.

In the same component's folder just add a ComponentName.stories.js.

See storybook documentation

Contact

[email protected]

francisca-mancini's People

Contributors

maximebonhomme avatar

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.