Giter Site home page Giter Site logo

shamshirz / elm-pages-starter-beta Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.21 MB

Static site alternative using https://github.com/dillonkearns/elm-pages

Home Page: https://sham-elm-starter-beta.netlify.app/

JavaScript 0.85% CSS 1.32% Elm 97.83%
elm-pages elm static-site blog jamstack

elm-pages-starter-beta's Introduction

Aaron's Elm-Pages Demo Netlify Status (πŸ‘ˆ click me)

elm-pages Compelling Features

  • Elm type safety plus even more!
  • Missing Env variables as compiler warning
  • Build time API data as compiler warning
  • SEO as compiler warning

Goals and Results

I had elm & Netlify experience, but not elm-pages or elm-ui.

Dev Experience

  • npm start == elm-pages develop
  • npm run build == elm-pages-beta # AKA prod artifact, this is the new part
  • npm run serve - host static files from ☝️ without watch
Development Example for others trying out `elm-pages`

How

I cloned DKs repo and checked out his Template Modules branch

Getting Started Example

Started a new page test.md and followed the compiler

  • frontmatter error on published: "2020-12-30" needed quotes around date
  • author needed, add
    • Problem with the value at json.author: "Aaron Votre"

  • author image doesn't exist
    • , avatar = Pages.images.author.aaron (does not have aaron field)

    • Slightly harder to find because that file is generated from the image/X directory
  • built, but my page stinks
  • Wondering how to add custom things inline
    • example - inject a bit of elm defined UI into my markdown
    • discovered in MarkdownRenderer.elm you can add custom tags and then it basically gets built like react with uppercase tags
    • <BOX> example and this article on the elm markdown rendered

Steps I took

  • βœ… Browser title (1hr, several revisions)
  • βœ… Remove extra blog posts (tiny)
  • βœ… Create landing page (med)
  • βœ… Update header links (small)
  • βœ… Code syntax highlighting (3hr, include elm lib for it, tried embedded JS…failed)
  • βœ… Missing monokai styling in deployed version
  • βœ… Favicon (2hr, cloudinary + understanding beta build)
  • βœ… Spotify Page
    • βœ… Load Data (~3hr)
    • βœ… Style Data (2hr, learned elm-ui)
    • βœ… Write content (big)
      • βœ… First Draft
      • βœ… 2nd Version
      • βœ… Get Feedback
      • βœ… Final Edit
  • βœ… release on github

Resources

elm-pages-starter-beta's People

Contributors

shamshirz avatar

Watchers

 avatar

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.