GithubHelp home page GithubHelp logo

louispino / tailwind-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from krabecb/tailwind-starter

0.0 0.0 0.0 5.29 MB

An Introduction To App Design Using Tailwind Classes

Home Page: https://tailwindcss.com/

JavaScript 58.20% CSS 2.25% HTML 39.55%

tailwind-starter's Introduction

🎨An Introduction To App Design Using Tailwind Classes

The App

We'll be taking a look at Three Strikes Bowling Alley Shop's React application. Components we will focus on for this walkthrough are:

  • index.css -> Tailwind directives at highest level for styling
  • App.js -> Render Card and Header components
  • Card.js
  • Header.js

Initial State Data

Here is the initial state data we'll apply style to:

[
    {
      title: "Rogue Blade",
      image: RogueImage,
      price: "250",
      description: "Trusted over the years by professional bowlers. All the serious bowlers prefer Rogue."
    },
    {
      title: "Eleven",
      image: ElevenImage,
      price: "180",
      description: "Simple yet effective. A sleeper that will keep you in the lead."
    }
]

Initial Setup

React

  • Import images in App
  • useState hook with initial state data
  • Map over state data to create Card components
  • App renders Card and Header components

Tailwind Installation process

  • Install Tailwind CSS
  • Configure template paths
  • Add Tailwind directives to CSS

We Do

  • Review how Tailwind directives affect default styling
  • Review tailwind.config.js
  • Use Tailwind classes to style the App, Card, and Header components

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.