Skip to content

warwickbuilds/whenisthenextspacexlaunch.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whenisthenextspacexlaunch.com

🚀 Development Repo and Documentation for When is the next SpaceX launch

Features

  • Next upcoming launch large display panel with countdown timer and links to media
  • List of up coming launches below fold
  • Ken burns effect full screen launch image
  • Theme selection (dark mode)

Technical Functionality

  • Data from the unofficial SpaceX-API - V3
  • Theme set from system mode (dark/light)
  • Browser Support: Any Modern Browser (Not Internet Explorer, or Edge v1)
  • PWA Support (Desktop app install, mobile app install, static file cache)
  • Google Analytics

Development

  • Static Site
  • Vanilla Javascipt (fetch for API calls)
  • Library Addins: Moment(Dates and Times), FontAwesome(Icons), Google Fonts(font styles)
  • Data from public API (SpaceX-API)
  • Cacheing using Service Worker
  • Browser storage using Local Storage
  • Source Control: GitHub
  • Hosting: GitHub Pages with custom domain
  • NPM Modules: (Dev) gh-pages(github pages deployment)

Releases

  • Planned Featues

    • Local storage
    • Only poll api if updates or per period
    • PWA Compatibility and Configuration
    • Use flickr image from response if avilable
    • Covert to use V4 of API

Version 1.6

  • Features

    • Dark mode switch button
    • Various layout updates and changes
  • Fixes

    • Updates titles
    • Various other fixes and mistakes
    • Moved JS and CSS files into folders

Version 1.5

  • Features

    • Allow selection of theme, remember selection on page refresh
    • Award Digital logo now text to support dark mode
  • Fixes

    • No next mission patch use placeholder
    • Updated Title Text for launch times

Version 1.4

  • Features

    • Dark Mode, System detected
    • No patch available use a placeholder
  • Fixes

    • Missing Mission details check (hide)

Version 1.3

  • Features
    • Favicons
      • Chrome
      • Apple
      • Windows Pinned Site (Browser Configuration)
      • Favicon
    • Facebook Metadata
    • Start of PWA Configuration
      • Install as App in Windows

Version 1.2

  • Features

    • Sitemap.xml
    • robots.txt
    • Scrollbar styling
    • Noscript notice
  • Fixes

    • Keywords
    • Single SpaceX-API call rather than 2 as upcoming also contains next launch

Version 1.1

  • Features

    • Mobile optimisted layout
    • Header meta tags
  • Fixes

    • AD Logo clarity

Version 1.0

References

Deploy

Git Commands to update master branch

git add .
git commit -m "updates"
git push -u origin master

Push assets from /dist to gh-pages branch

npm run deploy

Design & Development

Full Page Image inspiration from Brad Traversy: https://www.youtube.com/watch?v=Gx_7GQtSdpc Ken Burns Effect - https://www.youtube.com/watch?v=XiEiVZFUfa8 Flickr - SpaceX https://www.flickr.com/photos/spacex Page Scrolling - https://www.youtube.com/watch?v=oUSvlrDTLi4 Easing - http://gizma.com/easing/ Font-Awesome - https://cdnjs.com/libraries/font-awesome Google-Font - https://htmlhead.dev/ Sitemaps - https://ahrefs.com/blog/how-to-create-a-sitemap/ robots.txt - https://moz.com/learn/seo/robotstxt noscript - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript Favicon Generator - https://realfavicongenerator.net/ Browser Configuration Schema - https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/dn320426(v=vs.85) Apple Web Applications - https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html Google Browser Configuration - https://developers.google.com/web/fundamentals/design-and-ux/browser-customization PWA Setup - https://codelabs.developers.google.com/codelabs/your-first-pwapp/#5 https://medium.com/dev-channel/learn-how-to-build-a-pwa-in-under-5-minutes-c860ad406ed Dark MOde - https://dev.to/dcodeyt/add-dark-mode-to-your-websites-with-css-5bh4

Optimisation Tools TinyPNG.com -

Hosting & Deployment