Giter VIP home page Giter VIP logo

sttm-web's People

Contributors

akalustat avatar bogas04 avatar dependabot[bot] avatar ekas avatar gauravjeetsingh avatar gurjit03 avatar gurpreet-verimi avatar hamsbrar avatar harpreetkhalsagtbit avatar imgbot[bot] avatar imgbotapp avatar inderpreet99 avatar inderpreetsingh avatar lbk003 avatar learnwithgurpreet avatar maneetpaul avatar manjots avatar mysmilingturban avatar navdeepsingh avatar navdeepsinghkhalsa avatar plug-n-play avatar prebhdevsingh avatar rajkambo avatar saintsoldierx avatar sikhnerd avatar tarunsingh5 avatar tsingh777 avatar turbanpanda avatar yadvirkaur 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

Watchers

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

sttm-web's Issues

large margin in default search results

When you do a default search, there is a large margin between url and source, seems like 2 lines extra.. lets bring writer/source up to be next line from url

Add social share features

maybe have something that when a line in a shabad is hovered over, fb/twitter icons appear to the right and basically post a link to the shabad with the line (unicode)+current display (ie translation) shared in text

Lazy-load results

Return 10 results for searches with a Load More button when relevant to dynamically add 10 more

Embed option

Allow user to embed Panktee(s) or Shabad to their website.
Use blockquote with Unicode followed by async script to style and add display option toggles

See Twitter embed code

<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">Now that the mad shopping is over let's focus on <a href="https://twitter.com/hashtag/GivingTuesday?src=hash ">#GivingTuesday</a><br>Help Khalis connect Sangat with Gurbani thru tech. <a href="https://t.co/J6LOqD1uKI">https://t.co/J6LOqD1uKI </a></p>โ€” Khalis Foundation (@khalisfound) <a href="https://twitter.com/khalisfound/status/803660024325107712">November 29, 2016</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

Make production ready

  • Transpile ES2015 to ES5 using Babel
  • Add promises and fetch polyfills
  • Minify CSS/JS
  • JPEGify images

make drop downs look more like google

Should be blue text with down arrow, no border. Buttons are also a bit strange looking.

Dark gray check boxes on search results should become grouped drop downs (ie transliteration drop down, font drop down (unicode/ascii), translation drop down). These would be blue text drop downs just like on google search results.

no checkboxes, just use highlighted/selected options when drop down clicked.

options should persist via cookies

Let me know your thoughts

use .php

For compatibility with production deploy scripts and future work, please rename html files to php

add ang viewer

I feel we should have a way to view one entire ang of any source. The API does support it so it shouldn't be that hard, I guess the renderShabad method should just work.

Add meta data to shabad page

Same data as displayed in search results page, "Granth", "Ang", "Writer", "Raag" with clickable links.

Ang link would be blocked by #40.

Use an API wrapper

This from SikhJS might be useful to create one.

export const API_URL = `https://api.gurbaninow.com/`;

export const TYPES = [
  'Initials from beginning (Gurmukhi)',
  'Initials from anywhere (Gurmukhi)',
  'Full word (Gurakhar)',
  'Full word (English)',
];

export const SOURCES = {
  all: 'All Sources',
  G: 'Guru Granth Sahib Ji',
  D: 'Dasam Granth Sahib',
  B: 'Bhai Gurdas Ji Vaaran',
  N: 'Bhai Nand Lal Ji Vaaran',
  A: 'Amrit Keertan',
  U: 'Uggardanti',
};

export const buildApiUrl = options => {
  const {
    q = false,
    source = false,
    type = false,
    writer = false,
    raag = false,
    ang = false,
    results = false,
    id = false,
    hukam = false,
    akhar = false,
    lipi = false,
  } = options;

  let url = API_URL;

  if (q !== false) {
    url += `search/${q}/?`;
    if (source) url += `source=${source}&`;
    if (type) url += `searchtype=${type}&`;
    if (writer) url += `writer=${writer}&`;
    if (raag) url += `raag=${raag}&`;
    if (ang) url += `ang=${ang}&`;
    if (results) url += `results=${results}&`;
  } else if (id !== false) { 
    url += `shabad/${id}`;
  } else if (ang !== false) {
    url += `ang/${ang}/`;
    if (source) url += `source=${source}`;
  } else if (hukam !== false) {
    url += `hukamnama`;
  } else if (akhar !== false && lipi !== false) {
    url += `akhar/${lipi}`;
  } else {
    throw new Error('Invalid options sent');
  }
  return url;
}

Mobile issues (android, firefox)

screenshot_20161217-185711

Logo should always be on left of search (maybe search bar should resize width so that logo, search bar, and button can always be in same row and not flow down.

left margin on shabad is needed.

Update format options UI to match Search Tools of Google

Ang 123 | Raag Suhi | Bhagat Kabeer | Format Options
-----------------------------------------------^-----------
  Unicode | English Transliteration | Punjabi Translation...
-----------------------------------------------------------

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.