Code Monkey home page Code Monkey logo

tankstellen-finder's Introduction

Semantic UI React logo

react-semantic-boilerplate

NOTE: This project is not officially associated with Semantic UI and/or Facebook in any way. It is just a helpful boilerplate arranged by me.

Introduction

This is a boilerplate project that intends to provide an easy way to setup Create React App with a customizable version of Semantic UI, as this process is usually clumsy and full of little inconveniences.

It is based on the Webpack 3 example provided by the Semantic UI folks, with a bunch of opinionated changes.

What's included

✔️ Direct module imports to reduce bundle size
✔️ Hot module reloading
✔️ SEO optimizations (incl. Open Graph, Twitter and Google)
✔️ The beautiful Inter UI font
✔️ Semantic UI React (duh!)
✔️ Tachyons for easy layouting

How to use

Installation

First clone the repository to your computer by running
git clone https://github.com/pretzelhands/react-semantic-boilerplate.git

Then you need to install the required dependencies with
yarn install (npm: npm install)

And after that you are ready to go!

Basic usage

You can now use the same commands as with any other Create React App! They are as follows:

yarn start (npm: npm run start)
yarn build (npm: npm run build)

They function exactly the same way as you're used to, but include Semantic UI compilation on-the-fly and hot module reloading.

Customizing Semantic UI

To customize Semantic UI you can find the appropriate files in src/styling/theme. To understand the file structure provided in that folder, please read the Customization Guide provided by Semantic UI.

The theme files are pre-filled with all available variables so you can just set them and forget them. As you save those files Webpack will automatically rec-compile your files.

Customize the SEO optimizations

This boilerplate includes all tags to make your app look great when you share it on Facebook, Twitter, or wherever else. For this purpose I included various meta tags which you can customize as follows:

  • Rename .env.example to .env
  • Update the variables you see in .env - these are used for the base url for loading the assets, the page title, the meta description, the theme color for Android and the correct site for Twitter.
  • After that generate the necessary files on realfavicongenerator.net and copy the files to the public/assets directory
  • Make custom images for twitter-card.png, open-graph.png and social.png - They are all provided in the recommended sizes.

And you're done! Your application/site is now optimized for sharing on social media and other places! 🎉

Contributing

Contributions in any form are welcome! If you find a bug, please file an issue. All contributors are asked to abide by the rules of the Contributor Covenant.

Updates

This repo will be kept up-to-date in accordance with the stable releases of React, Create React App, Semantic UI and Semantic UI React insofar they are compatible.

If major changes happen to the Webpack 3 example of the Semantic UI React repository, I will reflect them in this repository.

License

This project is licensed under the ISC license. See the LICENSE file for more details.

tankstellen-finder's People

Contributors

andr-pash avatar

Watchers

James Cloos avatar  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.