Skip to content

dnywh/68

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

68

Solicited unsolicited advice from Kevin Kelly, served one at a time.

Running locally

You'll need something like Live Server to allow the cross-origin resources to load:

live-server

Making style changes? You'll need Sass installed. Then run:

sass --watch css/sass/index.scss css/style.css

Credits

Content

Advice comes (with permission) from Kevin Kelly's 68 Bits of Unsolicited Advice.

Type

PT Root UI

Copyright (c) 2018, Paratype Inc (https://paratype.com), Copyright (c) 2018, Paratype Ltd, with Reserved Font Name "PT Root UI".

Interaction

Shake.js is used for Magic 8-Ball Mode.

Dynamic text formatting

I made resizeText.js for recalculating font-size and line-height based on the length of incoming strings. Existing libraries and packages like Fitty didn't play nice for some reason.

My brother Noah explained what a monotonically decreasing function is and how to use it to acheive the "longer the string, the smaller the font-size" (and vice versa) effect. I also used fpillet's gist for scaling values between two ranges.

Everything else

These resources helped me along the way:

About

Kevin Kelly's 68 Bits of Unsolicited Advice, one at a time

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published