This is a test project with a tiny self-made component library (compliant with atomic design) and an animated svg image.
The animation itself was made using SVGator, however it had to be manually reworked and optimized for the web.
I encourage you to check it out: raw / blob
as well as the the pretty good effect I was able to achieve for buttons in mobile view.
For this one open the demo and use mobile view in chrome dev tools. It's very satisfying, if you ask me ;)
- Vue 3
- Vite
- TypeScript
- TailwindCSS
- TailwindCSS Container Queries
- container-query-polyfill - for those browsers which do not yet support them
- PostCSS
Since this is a very new feature, I decided to use polyfill for it. Although it works, it is far from perfect.
The locally hosted version works fine, but the deployed one has some issues on Firefox.
In the meantime (at the time of writing), it looks like the Firefox team is also working on this feature and will release it next month.
- VS Code + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
Click to open and read more
TypeScript cannot handle type information for .vue
imports by default, so we replace the tsc
CLI with vue-tsc
for type checking.
In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue
types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant.
You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensions
from VSCode's command palette - Find
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Window
from the command palette.
- if more icons will be added, a conversion to an icon font should be considered
- with more components an implementation of Storybook would improve the review process