Skip to content

Nagell/cta

Repository files navigation

Animated CTA Project

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.

buttons

For this one open the demo and use mobile view in chrome dev tools. It's very satisfying, if you ask me ;)

Tech-Stack

Comment on container queries

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.

Recommended IDE Setup

Type Support For .vue Imports in TS

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:

  1. 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 select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

Next Steps

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published