hero-protagonist
v0.2.5
Published
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.
Downloads
24
Readme
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
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.