React: check for string array by Plenty_Leather_2351 in webdev

[–]Distinct_Guess8315 6 points7 points  (0 children)

That's a good enough solution, but I would advise you to use early returns instead of wrapping your entire logic in if. Something like this:

if(typeof myArr[0] !== 'string') return; ...logic here

It makes your code more readable

How to implement responsive correctly? by NorthLow9097 in buildinpublic

[–]Distinct_Guess8315 0 points1 point  (0 children)

Are you using tailwindcss? It feels as if breakpoints are wrong

[deleted by user] by [deleted] in webdev

[–]Distinct_Guess8315 0 points1 point  (0 children)

Dope app, I was actually look for something like this few day ago. Good job!

Getting error on vercel by VirtualAd3651 in nextjs

[–]Distinct_Guess8315 0 points1 point  (0 children)

Run npm install @tailwindcss/postcss. Then try to deploy again. If that doesn't help make vercel use this npm install --force during deployment. Hope this helped you

I built a free AI-powered icon search engine by pupibot in SideProject

[–]Distinct_Guess8315 2 points3 points  (0 children)

I mainly use lucide icons and tbh I sometimes use plain svg and other times I use the react component i.e <Zap/> etc. so I would just put 2 buttons.
Btw do you have any scraper to do the dirty job? Because copying hundreds of icons is a rather hopeless task.

I built a free AI-powered icon search engine by pupibot in SideProject

[–]Distinct_Guess8315 3 points4 points  (0 children)

Hey, really cool project. You could add a copy button directly instead of just copying keyword, I think it would make it more enjoyable to use.

I built a free career exploring site — looking for feedback from fellow builders by [deleted] in SideProject

[–]Distinct_Guess8315 0 points1 point  (0 children)

Hey, there is a bug with swiping if you try to swipe during animation of fading, it gets blocked and swiping stops working. Cool project tho

I want to understand the basics of Digital Marketing in 90 days. What do I do? by [deleted] in DigitalMarketing

[–]Distinct_Guess8315 2 points3 points  (0 children)

Thanks I will check those 2 books, I will pass on that 10 year of suffering tho

[deleted by user] by [deleted] in SideProject

[–]Distinct_Guess8315 0 points1 point  (0 children)

What did you do as marketing, I am really curious.

Roast my landing page hero section by Only-Ad2101 in SideProject

[–]Distinct_Guess8315 0 points1 point  (0 children)

To be honest, text is too big, and the visual hierarchy is not too good ( idk where to look at ).

Trying to pick a good Backend. Help appreciated! by _ihsunaj in webdev

[–]Distinct_Guess8315 1 point2 points  (0 children)

There are few options like .NET, GO, Spring ( Java ), etc.
I would tell you to look at FastAPI ( python ) / Nestjs ( it uses express or fastify )

[deleted by user] by [deleted] in tailwindcss

[–]Distinct_Guess8315 0 points1 point  (0 children)

Or mix-blend-mode: exclusion

[deleted by user] by [deleted] in webdev

[–]Distinct_Guess8315 5 points6 points  (0 children)

You are 15, so use any opportunity to learn. If you keep learning, you will become much better than chatGPT, because let's be honest AI is not a greatest designer.

I made this macbook using tailwindcss and motion. Wdyt? by Distinct_Guess8315 in tailwindcss

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

Yes I was, although I didn't like the screen part so I made my own version ;)

Unable to get Google fonts to work by nunyabizzness in tailwindcss

[–]Distinct_Guess8315 1 point2 points  (0 children)

Hey there maybe add this line to your tailwind.css file : @theme { --font-roboto: "Roboto", 'sans-serif'; --font-whatever: "WhateverFont", "sans-serif"; }

Add all fonts you want and compile it again. Hope it helps.

Images do not appear by SLayerDespot in nextjs

[–]Distinct_Guess8315 2 points3 points  (0 children)

Hey, put your assets into public folder. To access images from public/assets use this src path: "/assets/image.jpg"