Giter Site home page Giter Site logo

quickgl's Introduction

Quickgl

Quickgl is project for empowering LVGL with React. Our goal is using LVGL and reactjs to quickly build UI in embeded devices.

Simulate

currently you can compile code to wasm, and simulate, I create a repo for this. you can create this

by jsx

// App.tsx
import React, {useEffect, useState} from 'react';
import styles from './index.lv.css';

export default function App() {
  const [cnt, setCnt] = useState(0);


  return (
    <obj className={styles.s1} onClicked={() => setCnt(cnt + 1)}>
      {/* <obj className={styles.s3}></obj> */}
      <obj className={styles.s3}>
        {`1hello${cnt}\nsecond`}
      </obj>
      <obj className={styles.s2}>{`2hello${cnt}`}</obj>
    </obj>
  );
}

and css

/* index.lv.css */
.s1 {
  left: 100px;
  top: 0px;
  width: 500px;
  height: 300px;
  display: flex;
  flex-direction: column;
  padding-top: 0px;
  border-color: rgb(226, 226, 208);
  border-width: 5px;
}

.s2 {
  left: 50%;
  transform: translate(50px, 50px);
}

.s3 {
  height: 100px;
  background-color: salmon;
}

Framework

quickgl's People

Contributors

lee88688 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.