GithubHelp home page GithubHelp logo

natetharp / covid-heroes Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 2.0 90.21 MB

A memorial to those that have lost their lives fighting the COVID-19 pandemic.

Home Page: https://covid-heroes.com

License: MIT License

Ruby 0.11% HTML 1.85% CSS 37.71% JavaScript 60.33%

covid-heroes's Introduction

Hi there 👋

covid-heroes's People

Contributors

brandenbyers avatar dependabot[bot] avatar natetharp avatar

Watchers

 avatar  avatar

covid-heroes's Issues

Add list of countries to By Country page sidebar

Change sidebar to a list of listed countries that anchor link to the respective countries.

<ul class="usa-sidenav">
<li class="usa-sidenav__item"><a href="#afghanistan">Afghanistan</a></li>
<li class="usa-sidenav__item"><a href="#algeria">Algeria</a></li>
<li class="usa-sidenav__item"><a href="#argentina">Argentina</a></li>
...
</ul>

This will require adding an <a> tag to each country heading as well.

<a name="bahamas"></a><h2>Bahamas</h2>

By Country page does not display profiles alphabetically

The Countries themselves are displayed alphabetically, but the profiles within each country are displayed alphabetically by First Name, but they should be displayed alphabetically Last Name.

Currently (in Brazil):
Anita Viana is displayed before Betânia Ramos.

Desired (in Brazil):
Betânia Ramos should be displayed before Anita Viana.

Add Profile info in social tags

The profile pages should not display the generic site info in the Twitter Card and Facebook OG tags. Instead, the image and information for that individual should populate those meta tags.

List profiles chronologically on Home page

On the home page, the profiles should be listed chronologically using the death_date that is in the frontmatter, with the most recent at the top.

Those without a defined death_date should be listed at the bottom under an "Unknown" heading.

Profile should be organized by year, month, and day. Within each day they should be listed alphabetically by last_name.

Reference:
https://stackoverflow.com/questions/19086284/jekyll-liquid-templating-how-to-group-blog-posts-by-year

Add Search ability

Add a search function to the site.

Location:
The search input field can be added to the header.

Specs:

  • The default text for search input should be at least 16px
  • The input type should be search to ensure that it receives the proper iOS keyboard
  • The <input> tag should be nested within a <form> tag to ensure that it receives the proper iOS keyboard
  • Ideally the search function will surface all frontmatter and fulltext of all the profiles, but if that is not possible, frontmatter only would be acceptable

The type of search (live search or query submission) will determine whether it needs a dedicated /search/ page or not.

References:

Add Google Search Schema

Add snippet for Google Search Schema in the hopes that the Search box may appear in Google Search Results.

Reference: https://developers.google.com/search/docs/data-types/sitelinks-searchbox

Example:

<html>
  <head>
    <title>The title of the page</title>
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "WebSite",
      "url": "https://www.example.com/",
      "potentialAction": {
        "@type": "SearchAction",
        "target": "https://query.example.com/search?q={search_term_string}",
        "query-input": "required name=search_term_string"
      }
    }
    </script>
  </head>
  <body>
  </body>
</html>

Paginate Profiles

The individual profile pages should have a Previous and Next link, each displaying the title of the profile that it links to.

Resolve Double Build

At the moment, the site needs to be built twice for content updates to take place. This first build creates the updated active.json data file from Airtable. The second build creates the profile pages from the new active.json file.

This should be simplified or reordered so that the site can be built in just one pass.

Create environment variables

Create environment variables to enable separate build processes for development and for production. This will enable quicker development by only using a partial data set, as opposed to the full data set that will be used in production builds.

Migrate Collection from Markdown to Airtable

Currently the Heroes collection is made up of several hundred individual .md files. Migrating these to Airtable may reduce maintenance effort required and Jekyll build time.

Ideally using the Jekyll + Airtable plugin:

Alternatively pulling down Airtable to a JSON data file and generating pages from that data file may get the job done:

Reference:
https://community.airtable.com/t/how-to-easily-use-airtable-data-in-jekyll/3925

Add new symbol to header and footer

A new symbol has been designed by volunteers from Design to Combat COVID-19. The new symbol needs to be added to the header and the footer of the site.

Add count to By Country page

Add a count for each country in the country heading. The count will be the total number of profiles listed under each respective country.

Current: <h2>Argentina</h2>

Desired: <h2>Argentina (3)</h2>

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.