首页 > web前端 > js教程 > Frontend UI Components

Frontend UI Components

Susan Sarandon
发布: 2024-09-21 06:32:02
原创
463 人浏览过

 Frontend UI Components

iHateReading Custom Repo

For the past month, I've been making a lot of UI components that are real-world web components such as Button, Inputs, Forms, Banners, Galleries

Components made for a few purposes

  • Learn frontend and become better at what I do
  • Improve the ability to write better code in frontend development (I'll explain later what that means)

I am currently tech stack or technology is reactjs along with next.js as the framework and I use Tailwind CSS for styling and GSAP for animation

I can go with any tech stack that's not an issue, so I started with the latest framework and language is reactjs with next.js

Next, I've to choose all the components I should develop that I can personally use as well in my upcoming real-world projects such as payment form, subscribe form, image gallery, buttons, a lot of other UI components, Header components and so on.

iHateReading is a platform by a developer for a developer and for the past 2 years I have been sharing blogs as well newsletters on ihatereading.in.

This is the right time to introduce some new changes or new features that is custom repo or custom code or whatever you want to call it, to bring back what this platform is all about.

Now comes what are these components made up of, all the components are made using the following modules

  1. Reactjs
  2. Tailwind CSS
  3. GSAP for animation
  4. Mantine.dev UI library (if required)

I am trying to go for a headless UI component meaning only functionality will be added without any styling or framework dependency in this way lot of developers can easily copy-paste the code and use it directly to develop fast.

While developing these components if you see the first component I've shared on https://ihatereading.in/customrepo and compare it with the new or latest component, one can easily find the difference.

Less dependencies less javascript and more optimised and reusable code components.

All the credit goes to research and blog I did last year, Why JavaScript reduces website performance? because the browser takes a lot of time to parse JS as compared to CSS. Thereby reducing JS will improve the website performance as well.

In addition, CSS nowadays is becoming so strong that very little JS is required to bring cool animations to the website and a lot of developers are not paying much attention to it that is another motto for using more CSS > less JS.

40 components have been added so far and I am working on more, if you have any idea of what kind of components or forms or tools I can make add them in the comment section I'll certainly follow the lead.

I am actively sharing the components development news on Twitter and LinkedIn as well as pushing the code on ihatereading.in/customrepo

Feel free to check them out, and let me know what more to add and create.

Cheers
Shrey

以上是Frontend UI Components的详细内容。更多信息请关注PHP中文网其他相关文章!

来源:dev.to
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
作者最新文章
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板