Coder Social home page Coder Social logo

quran / common-components Goto Github PK

View Code? Open in Web Editor NEW
41.0 41.0 19.0 2.92 MB

Common components to be used across Quran.com, Quranicaudio.com and Salah.com

Home Page: https://quran.github.io/common-components

JavaScript 99.41% Shell 0.21% HTML 0.39%
quran storybook

common-components's People

Contributors

ahmedre avatar ar5had avatar mmahalwy avatar naveed-ahmad avatar thabti 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

Watchers

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

common-components's Issues

Popup component

Quran.com showing video and foot note in popup, next maybe we'll use popup for tafsir as well.

Sister sites

We need to allow users to navigate to sister sites. Thinking of something like Google and LinkedIn:
image
image

question about salah.com

would it be possible to curl salah.com and get back a nicely formatted salah table similar to how you can curl wttr.in
if there is already a nice way to do this that would be cool too.

image

Common sites component

There should be a component to drop into any of our sites that links to other sister sites. Not sure if it's a dropdown or a list or what. I like the way Google has it

image

Components

@mmahalwy I started moving the button we use on quranicaudio over. Let me know if you have any specific components you have in mind. What would be cool in the future we we can have an Ayah Component that can render ayah's and call our api to retrieve the data.

Might not need `lib` folder

I know the lib folder was the compiled code but since we will just import the components directly from other projects, no need, no?

For example

import Button from '@quran/common-components/src/components/Button;

Thoughts?

Drawer Component Throws Error on Body Click

Hi,

I am running a local build of the quran.com-frontend. While working, I found the following error that
occurs on each body click.

screen shot 2017-07-29 at 7 49 05 pm

In the Drawer Component, the event handler for clicks on the body tries to call
the contains method on a Styled Component.

I have seen the API reference for Styled Components, and have not come across any contains method.

some errors

@mmahalwy

I am trying to make the npm pipe line work, however I am running in to path errors. We will have to keep everything contained. I will see what I can do about scss variables however images and such have to be contained to specific components, so we don't have to worry about paths. Unless you have any ideas.

/Users/sab/workspace/apps/audio.quran.com/node_modules/loader-runner/lib/LoaderRunner.js:109
                        throw e;
                        ^

Error: Module build failed:
@import '../../styles/variables.scss';
^
      File to import not found or unreadable: ../../styles/variables.scss
Parent style sheet: stdin

Tab title

Tab title could be a component or any html tag, see following use case:

<Tab title={ 
   <LocaleFormattedMessage
      id="surah.index.heading"
      defaultMessage="SURAHS (CHAPTERS)"
    />
 }>
</Tab>

Menu component

Similar to this:

image

So that the dropdown also looks more like it:
image

Navbar component

  • Links to other sites
  • Allow to add links/dropdowns to left or right side

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.