Giter Club home page Giter Club logo

monorail's Introduction

marchbox.com

Dumplings, pixels, & the mouse

monorail's People

Contributors

marchbox avatar dependabot[bot] avatar

Stargazers

Roman Hossain Shaon avatar  avatar

Watchers

 avatar

monorail's Issues

Improve dark mode

Tree and train colors should be more realistic, e.g. tree should have dark green color, train car bodies should have dark colors but their outlines should have bright colors to match their corresponding light colors.

Related: #18

Deploy strategy

Use marchbox.dev as staging and marchbox.com as production.

Maybe also explore Netlify Identity to protect the staging.

Adjust monorail position more smartly

When animation mode is "scroll", currently the monorail position always makes sure the active car is center aligned based on the viewport, even when the viewport width is big enough to contain all cars. Should update the centerActiveCar() method to be more smart, and center align the entire monorail when all cars are visible.

`arrive` class should always be added

Regardless of animation mode. Use case: loading the page in landscape orientation (animation mode = transform) then rotate to portrait, without arrive class, monorail doesn't have scroll snap.

Drawings should be organized into collections (tags)

URLs should follow Articles:

  • /drawings/project/<tag>
  • /drawings/<tag>/<title-slug>

Subtasks:

  • Update URL patterns
  • Redirect existing ones to /drawings/happiest-page/
  • Add project name to individual drawing pages

Footer links + contact page

Little icon + text links:

  • Subscribe
  • Contact
  • Twitter

Use Netlify Form + Functions (processing form submissions and sending emails to myself) for contact form instead of a plain email.

Better monorail code organization

Monorail CSS code are currently in:

  • .nav
  • .monorail
  • .monorail-*
  • inside SVG assets

Should encapsulate all into the land-monorail component.

Implement comment system

Workflow:

  1. Use Netlify Forms to collect comment submissions
    • Use Ajax form for better UX but make sure non-JS works, too
    • Should mention that all comments become public upon approval. If they want to contact me directly, go to the Contact link.
  2. Use Netlify Functions to set up a Scheduled Background Function:
    • This function checks all the verified comment submissions
    • Uses https://github.com/octokit/octokit.js to create a pull request to send comments to GitHub
    • Run this function at 9 AM everyday
  3. Me review the pull request, approve to merge into mainstreet
  4. Netlify rebuild, comments display
  • Make some fun idea with avatar?

Monorail animation is still janky

A few things to try:

  • Wait for land-inlinesvg to be defined and loaded before defining other custom elements
  • Wait for land-monorail to hydrate before kicking in the arrival animation

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.