Giter Site home page Giter Site logo

imranhsayed / frontity-twentynineteen Goto Github PK

View Code? Open in Web Editor NEW
51.0 5.0 15.0 41.56 MB

:art: A Frontity Twentynineteen theme Project

JavaScript 19.93% CSS 80.07%
frontity frontity-theme twentynineteen twentynineteen-theme wordpress react reactjs headless-cms wordpress-headless-theme react-theme

frontity-twentynineteen's Introduction

Twenty Nineteen Frontity Theme Project ๐ŸŽจ

Download counter

๐Ÿ”ฅ A WordPress Twenty Nineteen Theme Project in React for Frontity.

โšก Check out the demo site here.

Tutorial Video

Demo ๐Ÿ“น

Frontity en la consola

Demo 2 ๐Ÿ“น

Speed and performance comparision between the same Twenty Nineteen theme on WordPress (in PHP) vs Frontity (in React).

Frontity en la consola

Installation ๐Ÿ”ง

1. For new projects: clone this project.

  1. git clone https://github.com/imranhsayed/frontity-twentynineteen.

  2. cd frontity-twentynineteen.

  3. npm install && npx frontity dev (from the project's root directory).

  4. Your site will now be available at http://localhost:3000/

2. For new/existing project: use npm.

  1. npm install @frontity/twentynineteen-theme.
  2. Add the package in frontity-settings.js.
  packages: [
    {
      name: "@frontity/twentynineteen-theme",
      state: {
        theme: {
          menu: [
            ["Home", "/"],
            ["Nature", "/category/nature/"],
            ["Travel", "/category/travel/"],
            ["Japan", "/tag/japan/"],
            ["About Us", "/about-us/"]
          ],
          featured: {
            showOnList: true,
            showOnPost: true
          }
        }
      }
    },
  1. Remove your previous theme (mars-theme?) from frontity-settings.js.
  2. npx frontity dev (from project's root directory).
  3. Your site will be available at http://localhost:3000/.

Credits ๐Ÿ’ฎ

Authors

  1. Imran Sayed
  2. Smit Patadiya

Contributors

  1. Shaun Guimond
  2. David Arenas

License ๐Ÿ“œ

License: GPL v2

frontity-twentynineteen's People

Contributors

darerodz avatar dependabot[bot] avatar imranhsayed avatar luisherranz avatar rmartinezduque avatar santosguillamot avatar smit-patadiya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

frontity-twentynineteen's Issues

Error: ./node_modules/react-spinners/ScaleLoader.js

Thanks but I tried to add to exisitng project I found this issue




Error: ./node_modules/react-spinners/ScaleLoader.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: E:\frontity\az-translation\node_modules\react-spinners\ScaleLoader.js: pragma and pragmaFrag cannot be set when runtime is automatic.
> 1 | "use strict";
    | ^
  2 | var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
  3 |     if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  4 |     return cooked;
    at File.buildCodeFrameError (E:\frontity\az-translation\node_modules\@babel\core\lib\transformation\file\file.js:250:12)
    at NodePath.buildCodeFrameError (E:\frontity\az-translation\node_modules\@babel\traverse\lib\path\index.js:138:21)
    at PluginPass.enter (E:\frontity\az-translation\node_modules\@babel\plugin-transform-react-jsx\lib\create-plugin.js:163:28)
    at newFn (E:\frontity\az-translation\node_modules\@babel\traverse\lib\visitors.js:175:21)
    at NodePath._call (E:\frontity\az-translation\node_modules\@babel\traverse\lib\path\context.js:55:20)
    at NodePath.call (E:\frontity\az-translation\node_modules\@babel\traverse\lib\path\context.js:42:17)
    at NodePath.visit (E:\frontity\az-translation\node_modules\@babel\traverse\lib\path\context.js:92:31)
    at TraversalContext.visitQueue (E:\frontity\az-translation\node_modules\@babel\traverse\lib\context.js:116:16)
    at TraversalContext.visitSingle (E:\frontity\az-translation\node_modules\@babel\traverse\lib\context.js:85:19)
    at TraversalContext.visit (E:\frontity\az-translation\node_modules\@babel\traverse\lib\context.js:144:19)
 @ ./node_modules/@frontity/twentynineteen-theme/src/components/loading.js 1:339-386 1:493-499
 @ ./node_modules/@frontity/twentynineteen-theme/src/components/index.js
 @ ./node_modules/@frontity/twentynineteen-theme/src/index.js
 @ ./build/bundling/entry-points/az-translation/client.ts
 @ multi webpack-hot-middleware/client ./build/bundling/entry-points/az-translation/client.ts

If you need help please visit https://community.frontity.org/.

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.