Git Product home page Git Product logo

manabu's Introduction

๐Ÿฒ Manabu ๐Ÿฒ

A gamified e-learning platform

Run this project

  • Clone the repository & install it's dependencies using yarn
  • Run it using yarn run dev

Layout Logic

Manabu has an unique Layout that is shared throughout all its pages. For a more clean code experience, each page should import both the Layout component and the corresponding Page Layout component.

import {Layout, PageLayout} from 'components';

const page = (props) => (
    <Layout>
        <PageLayout />
    </Layout>
);

Components & Breakpoints Sizes

Manabu uses Grommet basic UI theme settings such as Breakpoints for quick component creation. Each component receives responsiveSize as a prop which indicates the actual view-port size. This prop is handled by the actual page where the component is being rendered from in pages this value comes as props.viewportSize. With this configuration you can not only manage the display behavior in each component, but also which components should render in that page.

responsiveSize

responsiveSize can be used to modify component behavior around different view-port sizes. The sizes can be: 'small','medium' or 'large'. If needed, more breakpoints can be added to the customTheme helper under global.breakpoints.[custom size] and global.deviceBreakpoints.[device name].
Please note that both properties are required in customTheme

myComponent.jsx

myComponent.propTypes={
responsiveSize: PropTypes.string.isRequired,
...
};

page.js

page.propTypes={
viewportSize: PropTypes.string.isRequired,
...
};

Want to contribute?

You can open an issue with your questions or features proposals! Contribution guides are on their way!

manabu's People

Contributors

gonzarascon avatar dependabot-preview[bot] avatar dependabot[bot] 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.