Figma to React with CSS Modules (Dashboard App)

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

Techbase

Techbase

Күн бұрын

Пікірлер: 54
@garrett2635
@garrett2635 3 жыл бұрын
mousewheel scrolling on the style properties absolutely blew my mind, thanks!
@frankberry184
@frankberry184 2 жыл бұрын
I think you should do more this videos...You really solve my problem boss
@computerscience962
@computerscience962 Жыл бұрын
Man this was excellent, I love the way you explain things and I find your workflow very realistic too, you show us how a web dev thinks, while at the same time teaching us. Not many are capable to make tutorials this way, it's usually one or the other. Would definitely love to see more, free or paid. Keep it up!
@druashley
@druashley 3 жыл бұрын
I really like the way you talk through everything and explain your methodology. I don't know anyone else in my life who programs, so it is difficult to know if I am 'thinkin' in the right way. Cheers!
@TechbaseDev
@TechbaseDev 3 жыл бұрын
Thanks Dru! Every developer has a bit of their own style, especially when it comes to styling. Things get easier with time, especially when you have some coworkers / programming friends to spar with :)
@ozzyfromspace
@ozzyfromspace 3 жыл бұрын
You're an absolute rockstar, @Techbase! Thank you so much for putting this together for KZbin. I learned the frontend first, but ultimately put way more effort into the backend. Now that I'm trying to do full stack with react, this video was the perfect way to show me how I could go about building a UI with CSS Modules. I spent the last two weeks working learning Material UI, and it's quick, but some parts of it are somewhat irritating (example, how their grid system glitches when you nest grids). The module approach is far more appealing! Again, you're awesome bro, thank you!
@TechbaseDev
@TechbaseDev 3 жыл бұрын
Thanks so much Ozzy! Material UI is great for personal projects or clients that do not insist custom design. With CSS (Modules) the sky is the limit :)
@adoyez9
@adoyez9 3 жыл бұрын
03:06 - actually node-sass is deprecated (as i know), so u just need to install "sass" and restart vscode.
@TechbaseDev
@TechbaseDev 3 жыл бұрын
Good catch! The package "sass" should definitely be preferred above "node-sass" (since it's indeed deprecated). Strange that this hasn't been changed yet in the CRA documentation... Thanks for letting us know!
@adoyez9
@adoyez9 3 жыл бұрын
@@TechbaseDev Also with element u've done a condition to use active class name (~19:28). You can simply use with activeClassName prop like that:
@djaalabahmed2038
@djaalabahmed2038 2 жыл бұрын
great project we need more of this , starting from handling the design from Figma to React , thank you
@motadaymane3262
@motadaymane3262 3 жыл бұрын
Cool stuff man, maybe more of this Figma to code videos? I find these tutorials to be more realistic in the real world, thanks man. Subscribed
@TechbaseDev
@TechbaseDev 3 жыл бұрын
Thanks a lot! I'll definitely do more of these videos in the near future 🙂
@chamithfernando2663
@chamithfernando2663 3 жыл бұрын
awsome tutorial hope more in future.
@abdurahmansaadeldin7156
@abdurahmansaadeldin7156 Жыл бұрын
i really enjoyed this , thank you man for preparing such an amazing tutorial
@yusefess
@yusefess 3 жыл бұрын
It was a very good tutorial. If possible, add more videos like this that turn Figma into a react code.
@TechbaseDev
@TechbaseDev 3 жыл бұрын
Thanks Yusef! Will do 🙂
@sumanthprabhu11
@sumanthprabhu11 2 жыл бұрын
I really like the way you explain . Most youtube just start coding . Please do more tutorials like these for React
@TechbaseDev
@TechbaseDev 2 жыл бұрын
Thanks & will do!
@ThunderstruckElectronix
@ThunderstruckElectronix 2 жыл бұрын
Nice video. I like seeing your process
@sarmanzmale
@sarmanzmale 3 жыл бұрын
Do you need to do something in VS Code settings to enable the color picker in the inline styles (see 47:00 mark in video for example). The color picker doesn't appear for me when the color is typed in a string.
@TechbaseDev
@TechbaseDev 3 жыл бұрын
This should actually be build in; it came with an VSC update in August 2017. You should hover over either the string or the squared colored box in front of it in order for it to show up :)
@garrett2635
@garrett2635 3 жыл бұрын
Alternate solution to hard-coding the pixel of the two images in the save money div: .topIcons { display: flex; align-items: baseline; justify-content: space-between; position: relative; top: -4rem; margin-bottom: -5rem; max-height: 225px; } putting them in their own flexbox and aligning baseline will align the bottoms with a negative top value to push them out of the container edit: max-height of 225 because you assume the copywriters will make new ads and they will want to insert different size images - this gives them flexibility to put any size image into the framework although I might set a max-width of 100px or so on the img div separately just as a failsafe
@TechbaseDev
@TechbaseDev 3 жыл бұрын
Nice one Garett, definitely a more robust solution! 🪨
@ThunderstruckElectronix
@ThunderstruckElectronix 2 жыл бұрын
22:07 hold on. Why slice[1]? Wouldn't that refer to the second object in the array?
@ThunderstruckElectronix
@ThunderstruckElectronix 2 жыл бұрын
I'm a newbie and your solution is much cleaner than mine. I would use a counter that goes ++ for every item in the array, and use the value of the counter to say what index I want to pick out. I don't understand how your version works?
@TechbaseDev
@TechbaseDev 2 жыл бұрын
@@ThunderstruckElectronix good question! Slice returns a shallow copy, but can also be used for strings. So let's say we have the following variable: const animal = "cat" Then with slice I can grab cat without the first letter (so "at"): animal.slice(1) === "at" slice(2) === "t", etc.
@ThunderstruckElectronix
@ThunderstruckElectronix 2 жыл бұрын
@Techbase oh ok, you make it sound so easy:) If you don't an assign an end, then it takes the rest of the string. Thank you so much for taking your time to answer!
@pushkarsaraf524
@pushkarsaraf524 3 жыл бұрын
Great video!! Could you please make a series on React testing with Jest and Enzyme. Thanks! Subscribed 🙏🏼
@TechbaseDev
@TechbaseDev 3 жыл бұрын
Thans Pushkar! Unfortunately I do not plan to make any videos about Enzyme. Albeit it's still popular, React Testing Library is (becoming) the better choice for most React developers. I wouldn't mind making some video's about older technologies, however, Enzyme has the tendency to introduce bad testing practices. Have you perhaps seen my videos about the React Testing Library? kzbin.info/www/bejne/o5zCn3eKiJhsg7s
@garrett2635
@garrett2635 3 жыл бұрын
Please tell us what extension/settings.json config is causing you to be able to use the color picker in a .tsx file
@TechbaseDev
@TechbaseDev 3 жыл бұрын
It think this is actually a build in feature in my version of VSC, but since someone else also noticed; I'm not fully sure if that really is the case. I don't have any specific extension or rule in my settings.json, however, it seems there are quite a few extensions out there that provide this functionality: marketplace.visualstudio.com/search?term=color%20picker&target=VSCode&category=All%20categories&sortBy=Relevance Hope that helps!
@ibrohimyusupov8217
@ibrohimyusupov8217 Жыл бұрын
Thank you so much bro
@Lioncodes
@Lioncodes 3 жыл бұрын
Okay, share the goods with us! What is your audio setup?? What mic are you using? It sounds so crisp 🔥
@TechbaseDev
@TechbaseDev 3 жыл бұрын
Haha, thanks ^^ The mic is a FIFINE-T669 USB mic (so definitely nothing special). In OBS I have the following settings (with default presets) enabled: noise reduction, compressor, limiter, gain. For the videophiles: SONY A6100 with a Sigma 16mm f1.4 lens.
@codewithyt
@codewithyt 11 ай бұрын
why not u used normal css for designing?
@l3aIIin23
@l3aIIin23 3 жыл бұрын
if I know react and JavaScript, how long does typescript take to learn ?
@TechbaseDev
@TechbaseDev 3 жыл бұрын
If you want to learn all the nitty gritty about TypeScript: weeks / months. Just want to learn the stuff that you will actually use in React: a day or a few. I've made a 7-part TypeScript series which you can check out here: kzbin.info/aero/PLG-Mk4wQm9_LyKE5EwoZz2_GGXR-zJ5Ml 😀
@frankberry184
@frankberry184 Жыл бұрын
Hello bro, trust you good? Is like you haven't released any new videos right. was thinking or suggesting you create more tutorials on website and web apps using react with api's etc...
@frankberry184
@frankberry184 Жыл бұрын
But first of all, if you can try complete the dashboard tutorial, or give us a full video on dashboard using api to fetch and display data with CRUD etc.., hope you get what i mean pls
@herbertk9266
@herbertk9266 3 жыл бұрын
Thank you
@redefamatv
@redefamatv 2 жыл бұрын
sorry for my ignorance but instead of using style. Could i be using classes?...as well as style? being honest i prefer the way you did it.
@TechbaseDev
@TechbaseDev 2 жыл бұрын
Do you mean instead of "styles.userName" something like "classes.userName"?
@redefamatv
@redefamatv 2 жыл бұрын
@@TechbaseDev yes...you guessed right..I'm learning a lot with you man, thank you for all the efforts you put on it to spread the knowledge...Thanks.
@yasirzubair20
@yasirzubair20 3 жыл бұрын
That would be fantastic if you show how we can make it mobile responsive
@TechbaseDev
@TechbaseDev 2 жыл бұрын
I'll definitely go into that in future video's :)
@Michael-ru3wr
@Michael-ru3wr 2 жыл бұрын
This is cool
@codewithyt
@codewithyt 10 ай бұрын
nice
@livb4139
@livb4139 2 жыл бұрын
how do i git gud with css
@juanguirao
@juanguirao 2 жыл бұрын
jist stedy it
@juanguirao
@juanguirao 2 жыл бұрын
and prectise it.
@farooqali8997
@farooqali8997 2 жыл бұрын
use text-transform:capitalize; instead of sidebarnavlink.charat(0) ....
@TechbaseDev
@TechbaseDev 2 жыл бұрын
Much cleaner indeed!
@mo-fo
@mo-fo Жыл бұрын
id personally just change the original array. it saves sooo much on the load time
The CORRECT (and lazy) way to prototype | Figma Tutorial
5:00
Introducing Visual Copilot - Design to Code in a Click
11:22
Builder
Рет қаралды 204 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
React Security Crash Course 2022
46:12
Techbase
Рет қаралды 16 М.
Stop using an extension to compile Sass
21:39
Kevin Powell
Рет қаралды 130 М.
Figma Dev Mode 🤯
14:26
Jesse Showalter
Рет қаралды 68 М.
Figma for Web Developers
1:06:06
Coding in Public
Рет қаралды 21 М.
Top 10 Advanced CSS Responsive Design Concepts You Should Know
20:16
Web Dev Simplified
Рет қаралды 543 М.
Figma Tutorial: Use Figma Variables Like a Pro (+ Practice File)
30:30
DesignWithArash
Рет қаралды 350 М.