adrianhajdin / portfolio

Modern & Minimal JS Mastery Portfolio
https://minimal-portfolio-swart.vercel.app
2.27k stars 465 forks source link

Bento grid not rendering for me #25

Open sebo6921 opened 3 months ago

sebo6921 commented 3 months ago

Hey so im having an issue cant seem to get the bento grid to even show up at the bottom for some reason

I have changed the code aswell export const BentoGrid = ({ className, children, }: { className?: string; children?: React.ReactNode; }) => { return ( <div className={cn( // change gap-4 to gap-8, change grid-cols-3 to grid-cols-5, remove md:auto-rows-[18rem], add responsive code "grid grid-cols-1 md:grid-cols-6 lg:grid-cols-5 md:grid-row-7 gap-4 lg:gap-8 mx-auto", className )}

{children}

); }; export const BentoGridItem = ({ className, title, description, header, icon, id, }: { className?: string; title?: string | React.ReactNode; description?: string | React.ReactNode; header?: React.ReactNode; icon?: React.ReactNode; id:number; }) => { return ( <div className={cn( "row-span-1 relative rounded-3xl group/bento hover:shadow-xl transition duration-200 shadow-input dark:shadow-none p-4 dark:bg-black dark:border-white/[0.2] bg-white border border-transparent justify-between flex flex-col space-y-4 border", className )}

sam-arth07 commented 3 months ago

There is already an open issue regarding Bento Grid not showing. Actually the code on the github repo is slightely different than in the video. Try implementing the code from the github repo and also check this solution which worked for me. https://github.com/adrianhajdin/portfolio/issues/19#issuecomment-2185340577