GithubHelp home page GithubHelp logo

cardstack's People

Contributors

kajeczko avatar lukaszklekowski avatar mkowczarek avatar owoc avatar pjanocha avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cardstack's Issues

Amagi banner improvements (in sample content)

Add h2 (same as title of any other article) above image in Amagi article.

Get rid of div and p, use figure with img and figcaption inside.

Move text box to bottom of image.

In aside, get rid of <p>s inside <li>s. Should be only img, maybe followed by br, and plain text.

In aside, list items should be arranged veritcally on smaller screens (same width limit that collapses the menu).

Add chapters to video.js

The current video.js player is pretty barebones:

barebones_player

Let's add chapter navigation. We want the video.js player to show chapters and buttons to jump between chapters, similar to this:

chapters_mockup

Chapters can be hardcoded for now. The new JavaScript code can be placed after line 106 in video-player.php or uploaded as a separate file.

Video.js docs should be helpful.

Calculate schedule_end instead of relying on WebToffee's value

When checking if a sub is expiring, the date is read from $sub->data["schedule_end"], which is earlier than PayPal's in rare cases. The production site is currently configured in such a way that this is harmless, but in the long run a better way to get the expiry date would be this:

  1. check $sub->data["schedule_end"]
  2. read start date from $sub->data and compute the end of the billing cycle containing $sub->data["schedule_end"]
  3. if second result is later in time than first by more than a tiny amount (24h? - to be checked), use second result, otherwise use first

Create alternate password reset page

Implement as a page template.

If currently logged in user is not an administrator, print a blank page.

Otherwise, show an input field that will accept a username or email of another user and generate and print a password reset link for that user. The link must be exactly the same as what WordPress' built-in password reset would generate and send via email.

This is meant as backup measure for when someone's inbox refuses to receive password reset emails.

Add metadata for previews

Print something like this (in the head element?):

        print '<meta property="og:title" content="' . get_the_title() . '"/>';
        print '<meta property="og:image" content="hardcoded_url_or_featured_image"/>

Add prettier fonts

Headings should use Source Sans Pro Regular.
Normal text should use Open Sans Regular.
Links in normal text should use Open Sans Semibold.

Reuse or delete the groundwork laid in commit 9a262c2

Add appropriate credit to theme's readme.

Automatically reload player if link expires

If the video link expires before playback can even start (slow connection, old cached page), or during playback (if user pauses film and returns much later), the player cannot recover and must be relaunched. What needs to be added:

  • if playback hasn't started 4 seconds after player is loaded, print a warning to javascript console
  • fetch the current page again via XMLHttpRequest, extract new token from response body, log it to console
  • reinitialize video.js player with new token

We'll expand on it later.

Make logo clickable

The titular logo at the top of the page should be a clickable link to the homepage.

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.