stealthy
stealthy
KPCKevin Powell - Community
Created by stealthy on 11/29/2024 in #front-end
Next JS Caching Doubts
got it, thanks for your insights
14 replies
KPCKevin Powell - Community
Created by stealthy on 11/29/2024 in #front-end
Next JS Caching Doubts
so in case of user specific data, force dynamic rendering would be better option?
14 replies
KPCKevin Powell - Community
Created by stealthy on 11/29/2024 in #front-end
Next JS Caching Doubts
just following up on this.
14 replies
KPCKevin Powell - Community
Created by stealthy on 11/29/2024 in #front-end
Next JS Caching Doubts
server action
export const getInvoices = async () => {
const result = await db.select().from(Invoices).orderBy(Invoices.createTs);
return result;
};
export const getInvoices = async () => {
const result = await db.select().from(Invoices).orderBy(Invoices.createTs);
return result;
};
14 replies
KPCKevin Powell - Community
Created by stealthy on 11/29/2024 in #front-end
Next JS Caching Doubts
InvoiceDetails.tsx
import { getInvoices } from "@/actions/invoices";
import { InvoiceRow } from "@/components/invoice/invoice-row";
import {
Table,
TableBody,
TableHead,
TableHeader,
TableRow,
} from "@/components/ui/table";
export const InvoiceDetails = async () => {
const invoices = await getInvoices();
return (
<Table>
<TableHeader>
<TableRow>
<TableHead>Date</TableHead>
<TableHead>Customer</TableHead>
<TableHead>Email</TableHead>
<TableHead className="text-center">Status</TableHead>
<TableHead className="text-right">Value</TableHead>
</TableRow>
</TableHeader>
<TableBody>
{invoices.map((invoice) => (
<InvoiceRow key={invoice.invoice_id} invoice={invoice} />
))}
</TableBody>
</Table>
);
};
import { getInvoices } from "@/actions/invoices";
import { InvoiceRow } from "@/components/invoice/invoice-row";
import {
Table,
TableBody,
TableHead,
TableHeader,
TableRow,
} from "@/components/ui/table";
export const InvoiceDetails = async () => {
const invoices = await getInvoices();
return (
<Table>
<TableHeader>
<TableRow>
<TableHead>Date</TableHead>
<TableHead>Customer</TableHead>
<TableHead>Email</TableHead>
<TableHead className="text-center">Status</TableHead>
<TableHead className="text-right">Value</TableHead>
</TableRow>
</TableHeader>
<TableBody>
{invoices.map((invoice) => (
<InvoiceRow key={invoice.invoice_id} invoice={invoice} />
))}
</TableBody>
</Table>
);
};
14 replies
KPCKevin Powell - Community
Created by stealthy on 11/29/2024 in #front-end
Next JS Caching Doubts
dashboard.tsx
import { InvoiceDetails } from "@/components/invoice/invoice-details";
import { Button } from "@/components/ui/button";
import { Loader } from "@/components/ui/loader";
import { CirclePlus } from "lucide-react";
import Link from "next/link";
import { Suspense } from "react";
const Dashboard = () => {
return (
<main>
<header className="flex justify-between flex-wrap py-4">
<h1 className="font-semibold text-2xl md:text-3xl">Invoice</h1>
<Button variant={"ghost"} asChild>
<Link href="/invoice/new">
<CirclePlus className="size-4" />
Create Invoice
</Link>
</Button>
</header>
<Suspense fallback={<Loader />}>
<InvoiceDetails />
</Suspense>
</main>
);
};
export default Dashboard;
import { InvoiceDetails } from "@/components/invoice/invoice-details";
import { Button } from "@/components/ui/button";
import { Loader } from "@/components/ui/loader";
import { CirclePlus } from "lucide-react";
import Link from "next/link";
import { Suspense } from "react";
const Dashboard = () => {
return (
<main>
<header className="flex justify-between flex-wrap py-4">
<h1 className="font-semibold text-2xl md:text-3xl">Invoice</h1>
<Button variant={"ghost"} asChild>
<Link href="/invoice/new">
<CirclePlus className="size-4" />
Create Invoice
</Link>
</Button>
</header>
<Suspense fallback={<Loader />}>
<InvoiceDetails />
</Suspense>
</main>
);
};
export default Dashboard;
14 replies
KPCKevin Powell - Community
Created by stealthy on 11/20/2023 in #front-end
Guidance To UI Design
no prob, we are in different timezone😉 , can you give a sample approach, not able to get how to start it
30 replies
KPCKevin Powell - Community
Created by stealthy on 11/20/2023 in #front-end
Guidance To UI Design
@Mimo Duo will this work when the user scrolls i need the container to get pinned and section should get change as user scrolls down or up
30 replies
KPCKevin Powell - Community
Created by stealthy on 11/20/2023 in #front-end
Guidance To UI Design
Do you have any idea on this @Mimo Duo / @~MARSMAN~
30 replies
KPCKevin Powell - Community
Created by stealthy on 11/20/2023 in #front-end
Guidance To UI Design
Sure i would 😁
30 replies
KPCKevin Powell - Community
Created by stealthy on 11/20/2023 in #front-end
Guidance To UI Design
https://codepen.io/naveen570/pen/VwgQRMw?editors=0110 is this good enough? any improvements? can you please confirm @Mimo Duo
30 replies
KPCKevin Powell - Community
Created by stealthy on 11/20/2023 in #front-end
Guidance To UI Design
let me try and get back😉
30 replies
KPCKevin Powell - Community
Created by stealthy on 11/20/2023 in #front-end
Guidance To UI Design
Once i find this, I need another help, These steps are categorized into three sections, when user scrolls down, the section should be scroll pinned and scroll through these three sections. I have search GSAP solution for this, with gsap entire section gets scrolled, but i want to move certain parts, thinking how i can approach it. I have attached the video for it
30 replies
KPCKevin Powell - Community
Created by stealthy on 11/20/2023 in #front-end
Guidance To UI Design
🥺, yaa true, thinking what solution will work
30 replies
KPCKevin Powell - Community
Created by stealthy on 11/20/2023 in #front-end
Guidance To UI Design
ok i will see, with your code, if we try to add before to generate the lines for the step, wouldn't there be space between them as we have grid gap?
30 replies
KPCKevin Powell - Community
Created by stealthy on 11/20/2023 in #front-end
Guidance To UI Design
can you check this
30 replies
KPCKevin Powell - Community
Created by stealthy on 11/20/2023 in #front-end
Guidance To UI Design
30 replies
KPCKevin Powell - Community
Created by stealthy on 11/20/2023 in #front-end
Guidance To UI Design
let me put in codepen then
30 replies
KPCKevin Powell - Community
Created by stealthy on 11/20/2023 in #front-end
Guidance To UI Design
it opened for me
30 replies
KPCKevin Powell - Community
Created by stealthy on 11/20/2023 in #front-end
Guidance To UI Design
can you try again
30 replies