bmariano
bmariano
Explore posts from servers
RRailway
Created by bmariano on 9/11/2024 in #✋|help
How to organize my projects to optimize costs
I'm going to take a look, thanks!
39 replies
RRailway
Created by bmariano on 9/11/2024 in #✋|help
How to organize my projects to optimize costs
Payload?
39 replies
RRailway
Created by bmariano on 9/11/2024 in #✋|help
How to organize my projects to optimize costs
What do you recommend?
39 replies
RRailway
Created by bmariano on 9/11/2024 in #✋|help
How to organize my projects to optimize costs
Actually I prefer to leave this the way it is now, this way is easier to separate costs by client. But I'm going to think about it. Thanks a lot @ThallesComH
39 replies
RRailway
Created by bmariano on 9/11/2024 in #✋|help
How to organize my projects to optimize costs
Well that's around 25%
39 replies
RRailway
Created by bmariano on 9/11/2024 in #✋|help
How to organize my projects to optimize costs
No description
39 replies
RRailway
Created by bmariano on 9/11/2024 in #✋|help
How to organize my projects to optimize costs
Sorry wait
39 replies
RRailway
Created by bmariano on 9/11/2024 in #✋|help
How to organize my projects to optimize costs
These are the same two of the last month
39 replies
RRailway
Created by bmariano on 9/11/2024 in #✋|help
How to organize my projects to optimize costs
No description
39 replies
RRailway
Created by bmariano on 9/11/2024 in #✋|help
How to organize my projects to optimize costs
Ok let me send everything
39 replies
RRailway
Created by bmariano on 9/11/2024 in #✋|help
How to organize my projects to optimize costs
Yes
39 replies
RRailway
Created by bmariano on 9/11/2024 in #✋|help
How to organize my projects to optimize costs
No description
39 replies
RRailway
Created by bmariano on 5/24/2024 in #✋|help
Is private networking faster than using the normal database url in the same environment/region?
6943e43d-2801-4347-99a0-6c11b72ff4e7
5 replies
DTDrizzle Team
Created by Charli on 8/11/2023 in #help
There is not enough information to infer relation
Thanks man
5 replies
TTCTheo's Typesafe Cult
Created by bmariano on 8/9/2023 in #questions
How to make this documentation index effect?
Anyways, this shouldn't be the best way, it works in this case. If there were elements with different heights, I'll not be good
43 replies
TTCTheo's Typesafe Cult
Created by bmariano on 8/9/2023 in #questions
How to make this documentation index effect?
const ServicioContainer = ({
children,
className,
id,
}: {
children: React.ReactNode;
className?: string;
id: ServicioId;
}) => {

const { servicioActive, setServicioActive } = useServiciosStore();
const ref = useRef(null)
const isInView = useInView(ref, {
margin: '-50%'
})

useEffect(() => {
if (isInView) {
setServicioActive(id)
}
}
, [isInView])


return (
<div ref={ref} id={id} className={className}>
<div className="flex max-w-lg flex-col justify-between gap-6 sm:mx-auto sm:gap-8 lg:m-0 lg:max-w-none lg:flex-row xl:gap-24">
{children}
</div>
</div>
);
};
const ServicioContainer = ({
children,
className,
id,
}: {
children: React.ReactNode;
className?: string;
id: ServicioId;
}) => {

const { servicioActive, setServicioActive } = useServiciosStore();
const ref = useRef(null)
const isInView = useInView(ref, {
margin: '-50%'
})

useEffect(() => {
if (isInView) {
setServicioActive(id)
}
}
, [isInView])


return (
<div ref={ref} id={id} className={className}>
<div className="flex max-w-lg flex-col justify-between gap-6 sm:mx-auto sm:gap-8 lg:m-0 lg:max-w-none lg:flex-row xl:gap-24">
{children}
</div>
</div>
);
};
43 replies
TTCTheo's Typesafe Cult
Created by bmariano on 8/9/2023 in #questions
How to make this documentation index effect?
Not necessarily, but I'll try
43 replies
TTCTheo's Typesafe Cult
Created by bmariano on 8/9/2023 in #questions
How to make this documentation index effect?
43 replies
TTCTheo's Typesafe Cult
Created by bmariano on 8/9/2023 in #questions
How to make this documentation index effect?
So, I think I made it. I just modified when the element is considered in view, to the 50% of it's height. Now, when you click the link, the element that is below is not considered inside the view, so it doesn't trigger the state change. I thought this when I just did it, but using px instead of % wasn't working so I had to look for other solutions
43 replies
TTCTheo's Typesafe Cult
Created by bmariano on 8/9/2023 in #questions
How to make this documentation index effect?
Yes, mdx allows you to use jsx in md files, I don't know it well
43 replies