0.2.6 • Published 5 months ago

hero-protagonist v0.2.6

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

little terminal cv

Try it yourself, would be more fun than a gif. Navigation and item selection it's done trough the arrow keys and enter, respectively. The mouse also works.

npx hero-protagonist

Requirements

  • node =< 18
  • npm

    npm.io npm.io

I wanted to do one using the ideas behind this three.js terminal renderer, but I'm working in another project rn

For DRY and improving the code I could:

  • Make a Controller class which dependency injects the slides (which, luckily, their layout it's defined at declaration time, via parent and size / positions) and encapsulate the current 'slide' count and their traversal
    • Construct the on/off switch for curr,prev slides dynamically
    • Add an addException method, for slides who need a more complex transition than hiding the previous and next ones, and showing the current.
  • Make a little 'size/position' function who returns an object with top,left, width, heigth properties, an deconstruct it into the blessed objects.
  • To depend less on fixed positions should I add all elements into a layout element. So the next/lang buttons don't get detached on maximize windows, like it does right now.
0.2.6

5 months ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago