Greetings! This is my dev portfolio. Let me acquaintance you with my works ;)
Trying to KISS, while using latest and greatest core web technologies e.g. Web Components, SVG Sprites, ESNext, etc.
Use simplest html elements as components and combine them in static pages with simple script.
How is works ?
Make html tamplate with any tags that ends with '-x': <my_tag-x />. Traverse components dir and replace this tags with content of files that named coresponding to this tags. Do this for each page. End result: static pages.
DX is satisfying, because tend to modular approch with simple components, trying to reapeat modern frameworks e.g. React.
- Build static website without using any secondary libraries in production only core web technologies.
- DX of modern frameworks like next (at least some), components approach.
- No config delpoyment, just throw
dist
folder to any static server.
- At the moment have to use tailwindcss for proper classes, because components with same classnames brake code.
- Flat components encapsulation: at this moment, you can't include component inside another component
- Currently optimzeCSS() function is not working properly.
- Do NOT use same class and id names.
- Use Next.js on custom subdomain
/next
- Use components inside components
- Fix optimzeCSS() - may take very much time, probably rebuilding from ground up.
- Use css classes selectors to make css modules scope, and css tag selectors for global scope.
- Use css classes inside
<style></style>
block inside each component, all related css classes will be replaced withks-<hash>
.
npm run build
- build static pages according to explanation above using custom JS script- Deploy anywhere on static hosting