GithubHelp home page GithubHelp logo

gibreelabdullah / hadith-hub Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 2.0 35.43 MB

HadithHub - A Multi Language collection of Hadith

Home Page: https://www.hadithhub.com/

License: GNU Affero General Public License v3.0

JavaScript 0.80% Svelte 50.78% Dockerfile 0.55% TypeScript 47.10% HTML 0.28% CSS 0.49%
hadith islam

hadith-hub's Introduction

ReadMeSupportPalestine

FROM THE RIVER TO THE SEA, PALESTINE WILL BE FREE

HADITH HUB (حديث حب)

With the name of Allah, the All-Merciful, the Very-Merciful.

All praise and thanks are due to Allah, the Master and King of existence, the All-Merciful, Beneficent, who has power over all things. May peace and blessings be upon His final Messenger, Sayyidina Muhammad ﷺ, and his Family, and his Companions. About

HadithHub.com started in October 2022. It aims to make it easy for anyone to read, study, and learn the ahadith of Sayyidina Rasulullah ﷺ. This project is open source.

This repo is the frontend of the hadithhub.com, the data is in the hadith-api repo. We will be grateful if you contribute in this project to make it better.

It would be a grave injustice to omit the mention of Fawaz Ahmed who made the enormous effort in collecting Ahadith in multiple languages and their gradings by multiple scholars. This project wouldn't be possible without his efforts. May Allah ﷻ reward him immensely.

Credits

Fawaz Ahmed : For collecting all the Ahadith data. A complete list of sources of the data can be found here.

Contributors - UI : Contributors who helped in creating the website.

Contributors - Data : Contributors who helped in collecting hadith/gradings or correcting them.

Svelte : A front-end, open-source JavaScript framework for making interactive webpages.

Skeleton : A fully featured UI Toolkit for svelte.

html-to-image : A javascript library to convert html to image, essentially allowing us to download screenshots of Ahadith.

Prerequisites

npm should be installed in the system.


Contribution Guide

There are 3 repositories of interest.

  1. Hadith Hub (This Repo) - It is the frontend of the application written in Svelte.

  2. hadith-api Branch name '2' - It holds all the data. All the json files in the repo act as APIs and the raw files are are served to the website whenever requested.

  3. hadith-search-api - For the search functionailty, this is deployed to a server. Currently rethinking this implementation to make it more robust and cost effective.

You may raise a PR, give suggestions, raise issues for any of them.


To run the project

  1. Clone the reposiory.

  2. run npm install to install dependencies

  3. run npm run dev to run the application in dev mode.

  4. Goto http://localhost:5173 in your browser.

hadith-hub's People

Contributors

g00df3lla avatar gibreelabdullah avatar thecashewtrader avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hadith-hub's Issues

Move `/[book]` page to `/[book]` and `/[book]:[bookHadith]`

Currently, in the book page, we are manually checking for a : and splitting, rendering different versions of the page. If we split the route into two: /[book] and /[book]:[bookHadith], it would vastly simplify the pages, in addition to allowing for easier implementation of <title> tags, OpenGraph embeds, etc.

Can you add a max-width for hadith for ultrawide monitors?

The page is too stretched and hard to read when viewing on monitors that are larger than the standard size. 3440x1440p is what I use and the content is too wide. It would be better if you add a container with a max-width of say 1300px. If you want I can look into this for you.

"Copied" text bug

Currently, on clicking "Copy Permalink", the text for all buttons changes to "Copied".

Reproduction:

I looked into the code and SvelteKit docs, but can't seem to find the root cause.

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.