Tailwind & JavaScript Project - Products Filtering UI

  Рет қаралды 22,283

Traversy Media

Traversy Media

Күн бұрын

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

Пікірлер: 44
@codingman8056
@codingman8056 2 ай бұрын
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 2 ай бұрын
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 Ай бұрын
LOL Yeeess!! I looked it up as soon as he mentioned it. Saves sooooo much time! 😆
@AndrewKwabula
@AndrewKwabula 2 ай бұрын
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 2 ай бұрын
Hey Brad, I just finished your recent Next14 course. Good stuff, thanks!!
@altered3742
@altered3742 14 күн бұрын
Would love to see a React version with a backend data store. Thanks for the fast-paced tutorials. Always learn a lot.
@Olympian97
@Olympian97 Ай бұрын
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 2 ай бұрын
Thank you Brad. 🥂
@archamedis
@archamedis Ай бұрын
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 2 ай бұрын
Awesome stuff! Would loved to see this in Vue
@pfkellogg
@pfkellogg 2 ай бұрын
Thanks again very much.
@sovereignlivingsoul
@sovereignlivingsoul 2 ай бұрын
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.
@AbdullahAbid-qi5mq
@AbdullahAbid-qi5mq 2 ай бұрын
Thank-you very much.
@vinayvardhanyt2415
@vinayvardhanyt2415 Ай бұрын
Thank you
@slacle
@slacle 2 ай бұрын
A Svelte 5 (after it's released) version of this would be awesome :)
@vinoopb
@vinoopb 2 ай бұрын
Hi Brad, thanks for this video. Is this also added to the udemy projects course?
@PhilanJames
@PhilanJames 2 ай бұрын
Would be great to see in SolidJS.
@tarekt8571
@tarekt8571 2 ай бұрын
We need a new redux toolkit course with build website, please. thanks for all works brad
@mesafintminwagaw2110
@mesafintminwagaw2110 Ай бұрын
great project thanks!! can you make this project with MERN stack project also with ts
@hamishmoocow2070
@hamishmoocow2070 Күн бұрын
Is there a simple way to allow for each product to have multiple categories like tags?
@buddafi
@buddafi 2 ай бұрын
Is there a coupon for this course? ;)
@havecodesoft
@havecodesoft 2 ай бұрын
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.
@harihoodibaba
@harihoodibaba 2 ай бұрын
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 2 ай бұрын
kzbin.info/www/bejne/rpyqmYGni8ZkjNUsi=zNRNjaKf6s_OCxkb Sorry got the answer from you already. Thanks
@webphame
@webphame Ай бұрын
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.
@Alique_VSI
@Alique_VSI Ай бұрын
Yes we are interested lets build it using react or nextjs please sir
@sharadrao4893
@sharadrao4893 2 ай бұрын
Love to learn same project in react
@abenetbeyene3398
@abenetbeyene3398 2 ай бұрын
Please do with React projects
@top5-vid814
@top5-vid814 2 ай бұрын
u rock buddy
@top5-vid814
@top5-vid814 2 ай бұрын
Please do the react or node js version
@ermacasd6190
@ermacasd6190 2 ай бұрын
with react it would be perfect
@umairulislam9048
@umairulislam9048 2 ай бұрын
I didn't understand why we are adding the "add" class to the counter button. Can anyone explain ??
@andreea34
@andreea34 Ай бұрын
@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 Ай бұрын
@@andreea34 Thanks I got it
@mohammadfazlerabbi7712
@mohammadfazlerabbi7712 2 ай бұрын
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 Ай бұрын
@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 Ай бұрын
@@andreea34 yeah i got your point Thanks 😀
@devoni_com
@devoni_com 2 ай бұрын
Hello sir, I want to learn the web from scratch, but I do not know how to contact you
@afriend8961
@afriend8961 2 ай бұрын
Is that a VS Code Theme or custom? =).
@TheNarancia
@TheNarancia 2 ай бұрын
Should be github dark theme
@MutantBikers
@MutantBikers 2 ай бұрын
Do it in react
@danish7335
@danish7335 2 ай бұрын
it will be easy
@BMikel
@BMikel 2 ай бұрын
Please create the same but with Vue js
@Legacylanes_moto
@Legacylanes_moto 2 ай бұрын
Really tired with all the frameworks.. nothing beats a simple project without any of the bs 💩
Why I Pick ShadCN and Tailwind for all my projects
18:53
developedbyed
Рет қаралды 47 М.
Vue 3 & Composition API - Full Project
1:09:15
Traversy Media
Рет қаралды 103 М.
ISSEI funny story 😂😂😂Strange World 🌏 Green
00:27
ISSEI / いっせい
Рет қаралды 87 МЛН
10 Tailwind Classes I Wish I Knew Earlier
13:31
Web Dev Simplified
Рет қаралды 147 М.
Are You Too Dumb To Code? A Chat About Imposter Syndrome
7:08
Traversy Media
Рет қаралды 60 М.
HTMX Crash Course | Dynamic Pages Without Writing Any JavaScript
56:47
Traversy Media
Рет қаралды 123 М.
Meet Jeff Delaney: The Mastermind Behind @Fireship
16:02
Honeypot
Рет қаралды 290 М.
Keeping the Coding Dream Alive
11:27
Traversy Media
Рет қаралды 194 М.
Stop Worrying About AI!
6:40
Traversy Media
Рет қаралды 46 М.
Build ENTIRE Frontends With ONE Prompt - OpenUI Tutorial
8:59
Matthew Berman
Рет қаралды 3,1 М.
Fastest way to become a Web Developer in 2024
9:47
Sahil & Sarra
Рет қаралды 411 М.
Should You Test As A Web Developer?
11:00
Traversy Media
Рет қаралды 27 М.
Tailwind Crash Course | Project From Scratch
1:35:39
Traversy Media
Рет қаралды 562 М.
Phone charger explosion
0:43
_vector_
Рет қаралды 33 МЛН
Vortex Cannon vs Drone
20:44
Mark Rober
Рет қаралды 12 МЛН
Which Phone Unlock Code Will You Choose? 🤔️
0:12
Game9bit
Рет қаралды 6 МЛН
Интел подвинься, ARM уже в ПК!
14:06
PRO Hi-Tech
Рет қаралды 159 М.
Секретная функция ютуба 😱🐍 #shorts
0:14
Владислав Шудейко
Рет қаралды 2,1 МЛН