Skip to content

Latest commit

 

History

History
117 lines (100 loc) · 5.87 KB

NOTES.md

File metadata and controls

117 lines (100 loc) · 5.87 KB

Working notes / dev diary

Changes from the default Glitch in Bio template

  • custom theme/style (dusky-lory.css)
    • used coolors.co to make a palette
    • imported a Google Fonts resource
  • using Gravatar to get my profile image
    • convenient, as it also lets me get resized versions with ?s= URL params
  • fixed head.html to correctly include og and twitter meta tags
    • Twitter Card Validator fails on the default template as-is
    • NOTE: need a minimum of (either og: or twitter:) title and image to work; looks best with description as well
  • added a short bio blurb to settings.json -> para markup in index.html
  • added Stack Overflow, Ko-fi, GitLab icons to social.html footer
  • borrowed Tweet links template, updated to use timelines as well as Tweets and customised params to match theme
  • I decided I wanted a different image for the favicon/homescreen icon than on the page itself, so I added avatarImageAlt to settings
    • and, then added a CSS opacity mouseover effect to fade between them (in avatar.html and style.css so this is independent of theme)
  • excluded .md files from restart in watch.json
  • added a custom domain (andypiper.me) using the support article
    • also, took the opportunity to update the security on my registrar login with 2FA, and to let some old/unneeded domains expire! #cleanup
    • nice thing, Hover includes Glitch on the dashboard for connecting domains, so this was super easy.
      • Glitch docs do not reference Hover as a registrar with direct integration
  • added a new settings value, favicon, and updated the head.html to use this
    • again used the Gravatar URL for this
  • changed the Remix in Glitch button in footer.html so that it remixes this project, rather than the glitch-in-bio template
    • wondering, is this "the done thing?"
      • on one hand, the end developer actually gets to inherit the changes I made
      • on the other hand, I've based this on a template, so maybe that's the best starting point
  • Glitch "Add CoC" button in editor does not add a useful (to my project) CoC, but I would like to apply something relevant
    • turns out that it is the Citizen CoC which is OK, but refers to e.g. events, and needs manual customisation
    • -> added Contributor Covenant as CoC for this project
  • merged updates to the core template 2021-11-30
    • description meta in header
    • new social icons
    • alt text for image links (a11y++, nice)
    • fixed CSS social icons hover
    • added CONTRIBUTORS.md file

TODO / ideas

  • add Tweet timeline
    • make it collapsible?
  • change favicon to match site
  • add Revue and BitBucket social links (edit social template)
  • consider a full Ko-fi button or widget
  • refactor the SVGs out from the social template to make it cleaner
  • social icon for GitLab
  • twemoji plugin (scratchpad below, but as this is, it messes with alignment)
    • nice to have because it means you have the same emoji on all platforms
    • could also just put them in as images in the list items shrug
    • also twemoji are CC-BY-4.0 -> attribution req'd if used
  • podcast / audio player plugin to unfold from the Podcast button? listed in page?
    • could point to latest episode, using the podcast RSS
  • make the avatarImageAlt a mouseover effect?
  • I'd quite like some stats of some kind to gauge vists / what content gets attention
  • check WCAG stuff for a11y changed contrast of palette
  • build more themes
    • check contrast when choosing palette
  • Gravatar improvement: if the user adds an email address to settings, generate the Gravatar URL (it is the MD5 hash of an email address)
  • a corner "(i)" icon with a popover to explain what this is / how it was made

docs

  • update the README.md file so it reflects this remix project, not only the general Glitch in Bio template
  • I don't really need that CHANGELOG.md file since it is from pre-remix
    • deleted it
  • the LICENSE looks like it is specific to vite-plugin-react... (hmm, wonder how best to handle licenses in the context of remixes etc)

(thought, as I continue to poke... this is addictive... need to think about curating a list like this to keep it fresh, relevant, and useful)

I was thinking about embedding YT content etc but want to keep it simple

Digging around in Vite, looks like Vite 2.7 will enable server.fs.deny so that the markdown and other files can avoid being served.

^^^ this was probably my mistake in thinking those files were being served from the app in 2.5/2.6, seems to only let me hit the index page now, which is what I want.

... I finally cracked, and added more social links to the footer; but, now I'm wondering whether I should limit that list?

Code scratchpad

<!-- twemoji -->
<script
  src="https://twemoji.maxcdn.com/v/latest/twemoji.min.js"
  crossorigin="anonymous"
></script>
<!-- render emojis as Twemoji -->
<script>
  window.onload = function() {
    // Parses the document body and
    // inserts <img> tags in place of Unicode Emojis
    twemoji.parse(
      document.body,
      { folder: "svg", ext: ".svg" } // This is to specify to Twemoji to use SVGs and not PNGs
    );
  };
</script>

<!-- CSS configurations to tweak how the Twemojis are displayed -->
<style>
img.emoji {
   transform: scale(0.5);
   height: 0.5em;
   width: 0.5em;
   margin: 0 .05em 0 .1em;
   vertical-align: -0.5em;
   pointer-events: none;
  }
</style>

Original ideas

Sketchnotes