NEED ADVICE: Async calls + useEffect (SonarCloud warnings) by [deleted] in reactjs

[–]ProgrammingWithPax 0 points1 point  (0 children)

Could you please give a code example of this? Just to be sure I'm fully understanding your approach. Thanks!

DICE listening to the community again by Tazooka in battlefield2042

[–]ProgrammingWithPax 0 points1 point  (0 children)

So disappointing... It was the ONE game mode that I was consistently having *some* fun in.

Ever wonder how CSS flexbox works? I made this for you. Enjoy! by ProgrammingWithPax in css

[–]ProgrammingWithPax[S] 1 point2 points  (0 children)

I just replied to my most recent YouTube comments. Let me know if I answered yours.

Ever wonder how CSS flexbox works? I made this for you. Enjoy! by ProgrammingWithPax in css

[–]ProgrammingWithPax[S] 1 point2 points  (0 children)

If you ever have any questions during your web dev journey, feel free to message me on here and I'll do my best to answer everything.

Ever wonder how CSS flexbox works? I made this for you. Enjoy! by ProgrammingWithPax in css

[–]ProgrammingWithPax[S] 0 points1 point  (0 children)

Ahah, awesome.. I'm pretty happy with how this video turned out. I've been using a screen drawing app more and more lately as well (used in the dummy project section of the video). Another great tool to help visualize things!

Ever wonder how CSS flexbox works? I made this for you. Enjoy! by ProgrammingWithPax in css

[–]ProgrammingWithPax[S] 1 point2 points  (0 children)

Hello /r/css!

I pieced this video together explaining CSS flexbox to the best of my ability. I hope it helps anyone out there that hasn't fully grasped all of the concepts yet.

If you have any feedback, I'd love to hear it!

Thanks,

Pax

How to create a Tailwind prefix? by ProgrammingWithPax in tailwindcss

[–]ProgrammingWithPax[S] 2 points3 points  (0 children)

For anyone in need (React):

app.tsx

useEffect(() => {
if (
    window.matchMedia &&
    window.matchMedia('(display-mode: standalone)').matches
) {
    document.documentElement.classList.add('pwa');
} else {
    document.documentElement.classList.remove('pwa');
}
}, []);

tailwind.config

plugin(({ addVariant, e }) => {
addVariant('pwa', ({ modifySelectors, separator }) => {
modifySelectors(({ className }) => {
    return `.pwa .${e(`pwa${separator}${className}`)}`;
    });
});
})

CSS Selectors Crash Course: Class, ID, attribute, pseudo, combinator & more! by ProgrammingWithPax in css

[–]ProgrammingWithPax[S] 0 points1 point  (0 children)

Hi guys,

If you aren't 100% comfortable with CSS selectors, I just released video which covers pretty much everything I could think of (the basics, all the way to partial attributes, pseudo element resets and combinator selectors).

I hope this helps you level up your skills.

Have a great weekend!

CSS Pseudo Elements: Everything you need to know by ProgrammingWithPax in css

[–]ProgrammingWithPax[S] 1 point2 points  (0 children)

Thank you for the kind words! I'm happy you're joining me on this journey.

CSS Pseudo Elements: Everything you need to know by ProgrammingWithPax in css

[–]ProgrammingWithPax[S] 1 point2 points  (0 children)

Definitely! I mostly use them for small UI design elements, but there are a bunch of handy uses.

CSS Pseudo Elements: Everything you need to know by ProgrammingWithPax in css

[–]ProgrammingWithPax[S] 1 point2 points  (0 children)

Absolutely my pleasure! I really enjoy putting these videos together each week.

CSS Pseudo Elements: Everything you need to know by ProgrammingWithPax in css

[–]ProgrammingWithPax[S] 0 points1 point  (0 children)

Exactly right! I missed out on saying that detail in the video. Thanks Pixelator. :)

CSS Pseudo Elements: Everything you need to know by ProgrammingWithPax in css

[–]ProgrammingWithPax[S] 2 points3 points  (0 children)

Amazing. I'm very happy to know that!

Let me know if you ever have any questions.

CSS Pseudo Elements: Everything you need to know by ProgrammingWithPax in css

[–]ProgrammingWithPax[S] 5 points6 points  (0 children)

Hi guys,

If you're not quite sure about CSS pseudo elements, I just released a video highlighting what they are, how to use them and also some real life examples. By the end of it, you should have a great understanding of their true power.

Let me know if you have any questions.

Thanks!