projects page fixs

This commit is contained in:
Kalidou Diagne
2024-03-19 14:50:13 +00:00
parent f7351e4f27
commit c170a31174
3 changed files with 4 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ const TagsIconMapping: Record<string, any> = {
}
const projectCardVariants = cva(
"flex w-[310px] cursor-pointer flex-col overflow-hidden rounded-lg transition duration-150 ease-in hover:scale-105",
"flex cursor-pointer flex-col overflow-hidden rounded-lg transition duration-150 ease-in hover:scale-105",
{
variants: {
showLinks: {

View File

@@ -92,7 +92,7 @@ export const ProjectList = ({ lang }: LangProps["params"]) => {
if (noItems) return <NoResults lang={lang} />
return (
<div className="relative grid grid-cols-[1fr_200px] items-start justify-between gap-10">
<div className="relative grid grid-cols-1 items-start justify-between gap-10 md:grid-cols-[1fr_200px]">
<div className="flex flex-col gap-14 md:gap-20">
{ProjectSections.map((section) => {
const sectionProjects =
@@ -124,7 +124,7 @@ export const ProjectList = ({ lang }: LangProps["params"]) => {
<div className="overflow-hidden">
<h3 className={cn(sectionTitleClass())}>{sectionTitle}</h3>
</div>
<div className="flex flex-wrap gap-6">
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3 3xl:grid-cols-4">
{sectionProjects.map((project) => (
<ProjectCard
key={project?.id}

View File

@@ -13,6 +13,7 @@ module.exports = {
extend: {
screens: {
"2xl": "1400px",
"3xl": "1600px",
"medium": "978px",
},
translate: {