Тёмный

Tailwind & JavaScript Project - Products Filtering UI 

Traversy Media
Подписаться 2,2 млн
Просмотров 25 тыс.
50% 1

In this project, we will create a product list using Tailwind CSS, and we will add filtering and add-to-cart functionality with JavaScript.
Code:
codepen.io/bradtraversy/pen/o...
20 Projects Course:
www.traversymedia.com/20-Vani...
Vanilla Projects Repo:
github.com/bradtraversy/vanil...
Blog Post:
www.traversymedia.com/blog/pr...
0:00 - Intro
2:02 - Start The HTML
4:35 - Navbar / Search Area
9:00 - Main Products & Categories Area
14:26 - Hardcode HTML Items
19:30 - Start The JavaScript
20:25 - Select DOM Elements & Init
22:42 - Loop Over Products & Create Elements
27:53 - Refactor To Function
29:22 - Update Cart Item Count
35:23 - Filter Products

Наука

Опубликовано:

 

16 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 45   
@codingman8056
@codingman8056 3 месяца назад
Just for the note, I'm not beginner in web development, quite experienced, but i still love your work on VanillaJS. Thanks for supporting multiple technologies for years
@tubeloupe8444
@tubeloupe8444 3 месяца назад
2.2M Subscribers 968 Videos No clickbait or OMG drama... But a 5 second, off-hand remark about "Case Preserving Multiple Cursors"? PRICELESS!
@andreea34
@andreea34 3 месяца назад
LOL Yeeess!! I looked it up as soon as he mentioned it. Saves sooooo much time! 😆
@AndrewKwabula
@AndrewKwabula 3 месяца назад
Brad is one of the few Developers I am always keen to learn from. Each time a new technology comes, I usually wonder how he will tackle it. The man has range in his understanding of the web.
@cesarjaramillo9455
@cesarjaramillo9455 3 месяца назад
Hey Brad, I just finished your recent Next14 course. Good stuff, thanks!!
@Olympian97
@Olympian97 3 месяца назад
Just completed! Thanks Brad! Given your new video on React 19, it could be cool to see a version of this project in React 19 when it releases that explores some of the new changes / features.
@Iam_swenky
@Iam_swenky 3 месяца назад
Thank you Brad. 🥂
@archamedis
@archamedis 3 месяца назад
Just finished your React course and wanted to practice my skills by making a filter component with pills and search for a large async list. This’ll come in handy if I get stuck/need inspiration. Thanks Brad!
@DavidRagnar1
@DavidRagnar1 3 месяца назад
Awesome stuff! Would loved to see this in Vue
@pfkellogg
@pfkellogg 3 месяца назад
Thanks again very much.
@AbdullahAbid-qi5mq
@AbdullahAbid-qi5mq 3 месяца назад
Thank-you very much.
@altered3742
@altered3742 Месяц назад
Would love to see a React version with a backend data store. Thanks for the fast-paced tutorials. Always learn a lot.
@sovereignlivingsoul
@sovereignlivingsoul 3 месяца назад
thanks Brad, very timely, i need something like this to display my coin hunting finds, i don't use frameworks so i will have to use vanilla CSS.
@vinayvardhanyt2415
@vinayvardhanyt2415 3 месяца назад
Thank you
@arisjacko1582
@arisjacko1582 14 дней назад
Brad I would love a follow up of this in React!
@slacle
@slacle 3 месяца назад
A Svelte 5 (after it's released) version of this would be awesome :)
@tarekt8571
@tarekt8571 3 месяца назад
We need a new redux toolkit course with build website, please. thanks for all works brad
@PhilanJames
@PhilanJames 3 месяца назад
Would be great to see in SolidJS.
@vinoopb
@vinoopb 3 месяца назад
Hi Brad, thanks for this video. Is this also added to the udemy projects course?
@mesafintminwagaw2110
@mesafintminwagaw2110 3 месяца назад
great project thanks!! can you make this project with MERN stack project also with ts
@havecodesoft
@havecodesoft 3 месяца назад
Please make this kind of project using laravel and React using inertia.js. there are no more free resources doing that specially laravel and react. love your tuts btw.
@Alique_VSI
@Alique_VSI 3 месяца назад
Yes we are interested lets build it using react or nextjs please sir
@sharadrao4893
@sharadrao4893 3 месяца назад
Love to learn same project in react
@harihoodibaba
@harihoodibaba 3 месяца назад
Thanks for this video. I learned JS mostly from your videos. Am wondering If this is the time to move to new Gen ai, and learn NLP LLM etc.. Please advise..
@harihoodibaba
@harihoodibaba 3 месяца назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-xkGhNqVa1Vs.htmlsi=zNRNjaKf6s_OCxkb Sorry got the answer from you already. Thanks
@webphame
@webphame 3 месяца назад
Hey there brad , can you make it real world website like connect it with database . we as beginners just follow along the projects and dont get the idea how things actually work.
@ermacasd6190
@ermacasd6190 3 месяца назад
with react it would be perfect
@abenetbeyene3398
@abenetbeyene3398 3 месяца назад
Please do with React projects
@top5-vid814
@top5-vid814 3 месяца назад
u rock buddy
@top5-vid814
@top5-vid814 3 месяца назад
Please do the react or node js version
@hamishmoocow2070
@hamishmoocow2070 Месяц назад
Is there a simple way to allow for each product to have multiple categories like tags?
@buddafi
@buddafi 3 месяца назад
Is there a coupon for this course? ;)
@MutantBikers
@MutantBikers 3 месяца назад
Do it in react
@danish7335
@danish7335 3 месяца назад
it will be easy
@mohammadfazlerabbi7712
@mohammadfazlerabbi7712 3 месяца назад
Lets's say i am using tailwind css. So why do i need to add extra classList.add()? I could just directly paste any tailwind component in the div.innerHTML or write my own like Hey right?
@andreea34
@andreea34 3 месяца назад
@mohammadfazlerabbi7712 Yes, of course you could write your own component instead, but in that case you will need to write some extra CSS rules to style your custom classes. Brad is adding existing Tailwind classes in order to avoid writing extra CSS :) But, yes, you can insert custom code as needed. Remember there is always more than one way to do things in JavaScript.
@mohammadfazlerabbi7712
@mohammadfazlerabbi7712 3 месяца назад
@@andreea34 yeah i got your point Thanks 😀
@umairulislam9048
@umairulislam9048 3 месяца назад
I didn't understand why we are adding the "add" class to the counter button. Can anyone explain ??
@andreea34
@andreea34 3 месяца назад
@umairulislam9048 The class "added" is used to keep track of which buttons have already been clicked on (or which products have already been "added to card"). Since buttons are elements that can't store information about user events, they need to be tagged in some way when the user clicks on them. This tag can then be used in a conditional JS statement to check if the buttons have already been clicked on. This essentially turns the buttons into checkboxes from a JS point of view, if that makes sense (checked/unchecked). Of course, it's not necessary to use the class name "added" to check the button status, you could use one of the existing Tailwind classes on the button if you prefer (like the bg-red-600 class for example), or you could use a custom HTML property instead, like data-added-to-cart="true", etc. But using a class name is the simplest way to do this. Hope all that makes sense!
@umairulislam9048
@umairulislam9048 3 месяца назад
@@andreea34 Thanks I got it
@afriend8961
@afriend8961 3 месяца назад
Is that a VS Code Theme or custom? =).
@TheNarancia
@TheNarancia 3 месяца назад
Should be github dark theme
@devoni_com
@devoni_com 3 месяца назад
Hello sir, I want to learn the web from scratch, but I do not know how to contact you
@BMikel
@BMikel 3 месяца назад
Please create the same but with Vue js
@Legacylanes_moto
@Legacylanes_moto 3 месяца назад
Really tired with all the frameworks.. nothing beats a simple project without any of the bs 💩
Далее
10 Tailwind Classes I Wish I Knew Earlier
13:31
Просмотров 163 тыс.
Just try to use a cool gadget 😍
00:33
Просмотров 66 млн
Vue 3 & Composition API - Full Project
1:09:15
Просмотров 118 тыс.
Why Hasn't Anyone Built This? I’m Doing It
27:19
Просмотров 2 тыс.
Flexbox Crash Course 2024
46:54
Просмотров 417 тыс.
100+ Web Development Things you Should Know
13:18
Просмотров 1,4 млн
JavaScript Higher Order Functions & Arrays
34:56
Просмотров 978 тыс.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
Просмотров 905 тыс.
The Importance of Specialization in Coding
7:13
Просмотров 175 тыс.
Web Development In 2024 - A Practical Guide
2:43:32
Просмотров 349 тыс.
ТОП-5 культовых телефонов‼️
1:00