dzenda
dzenda
TTCTheo's Typesafe Cult
Created by dzenda on 11/29/2024 in #questions
Help with react carousel

<div
className="relative mx-4 max-w-[1050px] flex-[0_0_80%] transition-all duration-300 ease-in-out"/>

const [emblaRef, emblaApi] = useEmblaCarousel({
align: 'center',
containScroll: 'trimSnaps', //this line
});

<div
className="relative mx-4 max-w-[1050px] flex-[0_0_80%] transition-all duration-300 ease-in-out"/>

const [emblaRef, emblaApi] = useEmblaCarousel({
align: 'center',
containScroll: 'trimSnaps', //this line
});
This is how i solved the issue
7 replies
TTCTheo's Typesafe Cult
Created by dzenda on 11/29/2024 in #questions
Help with react carousel
It looks cool but I don't think it solves my issue
7 replies
TTCTheo's Typesafe Cult
Created by dzenda on 11/29/2024 in #questions
Help with react carousel
Thanks I'll take a look
7 replies
TTCTheo's Typesafe Cult
Created by Dox on 7/19/2024 in #questions
How does the use client directive affect component rendering in Next.js
No description
7 replies
TTCTheo's Typesafe Cult
Created by Dox on 7/19/2024 in #questions
How does the use client directive affect component rendering in Next.js
7 replies
TTCTheo's Typesafe Cult
Created by Dox on 7/19/2024 in #questions
How does the use client directive affect component rendering in Next.js
No because children aren't affected by the 'use client'
7 replies
TTCTheo's Typesafe Cult
Created by Dox on 7/19/2024 in #questions
How does the use client directive affect component rendering in Next.js
No
7 replies
TTCTheo's Typesafe Cult
Created by rdickert on 6/27/2024 in #questions
Using nextauth discord with vercel deployments
Oh I get what you mean
8 replies
TTCTheo's Typesafe Cult
Created by rdickert on 6/27/2024 in #questions
Using nextauth discord with vercel deployments
VERCEL_URL && VERCEL_BRANCH_URL
8 replies
TTCTheo's Typesafe Cult
Created by kwargs on 6/14/2024 in #questions
Search for Applications using Tailwind
https://www.wappalyzer.com/technologies/ui-frameworks/tailwind-css/ Here you can find top sites that use tailwind. But they aren't open source
4 replies
TTCTheo's Typesafe Cult
Created by gnarus_g on 3/11/2024 in #questions
Does anyone know of a css class completions/hover lsp?
It sadly is almost impossible because css doesn't work this way . Well it's possible but no one has done it .
5 replies
TTCTheo's Typesafe Cult
Created by Fitim Bytyqi on 3/11/2024 in #questions
Using Next with an external backend
If I understand correctly you have a separate backed written in a different language ? What you can do in next are rewrites you put this in your next config
ts'
module.exports = {
async rewrites() {
return [
{
source: '/api/:path',
destination: localhost:8000api/:path
}
]
},
ts'
module.exports = {
async rewrites() {
return [
{
source: '/api/:path',
destination: localhost:8000api/:path
}
]
},
Documentation https://nextjs.org/docs/pages/api-reference/next-config-js/rewrites If I understood your problem correctly this should proxy your request correctly...
4 replies
TTCTheo's Typesafe Cult
Created by Noor on 3/7/2024 in #questions
React Lazy Load Required Files
okay just consider hosting you files on a CDN or some storage bucket . Because it could be used a a ddos vector . 🤔 but if its a small private app it probably doesn't matter
5 replies
TTCTheo's Typesafe Cult
Created by Noor on 3/7/2024 in #questions
React Lazy Load Required Files
Option 2) have a server action that takes the "songid" reads it from fs or imports it idk and then returns the correct one Let me know if you got my point or if you need a code example.
5 replies
TTCTheo's Typesafe Cult
Created by Noor on 3/7/2024 in #questions
React Lazy Load Required Files
Don't import the songs . Put them into the /public folder and load them from there. If that's possible
5 replies
TTCTheo's Typesafe Cult
Created by dzenda on 3/1/2024 in #questions
server action && from state && files
solved use name="file" instead of id
4 replies