xel
xel
KPCKevin Powell - Community
Created by Hamza Naeem on 8/24/2023 in #front-end
Feeling Demotivated :(
listen to some Jocko! Discipline > Motivation
13 replies
KPCKevin Powell - Community
Created by Augustos on 8/24/2023 in #front-end
Why should i not use `()=> {}` on components elements like `onChange` or `onClick` in React?
<button onClick={something} /> this is valid syntax though, the something function will be called with the onClick arguments
11 replies
KPCKevin Powell - Community
Created by nwankwojoseph_ on 8/21/2023 in #front-end
E-commerce website
could also do filter: brightness(150%); or some othe other techniques here https://stackoverflow.com/questions/16178382/css-lighten-an-element-on-hover
39 replies
KPCKevin Powell - Community
Created by nwankwojoseph_ on 8/21/2023 in #front-end
E-commerce website
to make it brighter you could do something like opacity https://codepen.io/Xe11o/pen/BavyxZa
39 replies
KPCKevin Powell - Community
Created by nwankwojoseph_ on 8/21/2023 in #front-end
E-commerce website
to set hover styles you use the hover pseudoclass: https://developer.mozilla.org/en-US/docs/Web/CSS/:hover
39 replies
KPCKevin Powell - Community
Created by nwankwojoseph_ on 8/21/2023 in #front-end
E-commerce website
ok so it gets brighter
39 replies
KPCKevin Powell - Community
Created by nwankwojoseph_ on 8/21/2023 in #front-end
E-commerce website
how can you tell there is a "background on the image" ? what happens exactly when you hover ?
39 replies
KPCKevin Powell - Community
Created by nwankwojoseph_ on 8/21/2023 in #front-end
E-commerce website
the border ?
39 replies
KPCKevin Powell - Community
Created by nwankwojoseph_ on 8/21/2023 in #front-end
E-commerce website
make what happen
39 replies
KPCKevin Powell - Community
Created by nwankwojoseph_ on 8/21/2023 in #front-end
E-commerce website
so what do you mean "this type of color" ?
39 replies
KPCKevin Powell - Community
Created by nwankwojoseph_ on 8/21/2023 in #front-end
E-commerce website
is that a live site you can link ?
39 replies
KPCKevin Powell - Community
Created by TrickShottasUnited on 8/19/2023 in #front-end
When should i use OR NOT use break tags?
35 replies
KPCKevin Powell - Community
Created by TrickShottasUnited on 8/19/2023 in #front-end
When should i use OR NOT use break tags?
1 way would just be defining a width or max width of the element containing the text
35 replies
KPCKevin Powell - Community
Created by TrickShottasUnited on 8/19/2023 in #front-end
When should i use OR NOT use break tags?
would be easier to say if you showed an example of what you want, but space is generally added with things like margin and padding
35 replies
KPCKevin Powell - Community
Created by C4rlos on 8/19/2023 in #front-end
Vite build not resolved css ulr()
sounds like you solved it but this is the documentation for that https://vitejs.dev/guide/assets.html
18 replies
KPCKevin Powell - Community
Created by Reformed on 8/18/2023 in #front-end
React: passing props from child to parent
put your code in a codesandbox or something easier to help then
8 replies
KPCKevin Powell - Community
Created by Reformed on 8/18/2023 in #front-end
React: passing props from child to parent
the error is simply saying that it's not a function but you're trying to call it like it is props.setSelectedCategory(category.id)
8 replies
KPCKevin Powell - Community
Created by Reformed on 8/18/2023 in #front-end
React: passing props from child to parent
what's the parent of layout.js ? where is setSelectedCategory coming from
8 replies
KPCKevin Powell - Community
Created by Augustos on 8/16/2023 in #front-end
Best way to handle many possible components to render?
possibly consider refactoring your components if viable
6 replies
KPCKevin Powell - Community
Created by Augustos on 8/16/2023 in #front-end
Best way to handle many possible components to render?
if else / switch / && etc
6 replies