diff --git a/.changeset/giant-icons-kick.md b/.changeset/giant-icons-kick.md new file mode 100644 index 000000000..6ba7dd635 --- /dev/null +++ b/.changeset/giant-icons-kick.md @@ -0,0 +1,5 @@ +--- +"nextjs-website": patch +--- + +Add padding and margin to mobile version in ecosystem cards diff --git a/.changeset/three-walls-kick.md b/.changeset/three-walls-kick.md new file mode 100644 index 000000000..d68bb7e0f --- /dev/null +++ b/.changeset/three-walls-kick.md @@ -0,0 +1,5 @@ +--- +"nextjs-website": patch +--- + +Fix ecosystem and card grid for correct card box shadows diff --git a/apps/nextjs-website/src/components/atoms/TabComponent/TabComponent.tsx b/apps/nextjs-website/src/components/atoms/TabComponent/TabComponent.tsx index c25d9a4d9..107b7c214 100644 --- a/apps/nextjs-website/src/components/atoms/TabComponent/TabComponent.tsx +++ b/apps/nextjs-website/src/components/atoms/TabComponent/TabComponent.tsx @@ -53,8 +53,8 @@ export const TabComponent: FC = ({ <> = ({ onChange={(event, newValue: number) => { setCurrentTab(newValue); }} - sx={{ position: 'relative', top: '2px' }} + sx={{ + flexGrow: '1', + position: 'relative', + top: '2px', + maxWidth: '1200px', + }} > {items.map((item, index) => ( - + ))} diff --git a/apps/nextjs-website/src/components/organisms/Ecosystem/Ecosystem.tsx b/apps/nextjs-website/src/components/organisms/Ecosystem/Ecosystem.tsx index f1059af2c..bd04ab5e6 100644 --- a/apps/nextjs-website/src/components/organisms/Ecosystem/Ecosystem.tsx +++ b/apps/nextjs-website/src/components/organisms/Ecosystem/Ecosystem.tsx @@ -1,11 +1,12 @@ 'use client'; import React from 'react'; -import { Box, Typography, useTheme } from '@mui/material'; +import { Box, useTheme } from '@mui/material'; import TabComponent from '@/components/atoms/TabComponent/TabComponent'; import CardsGrid from '@/components/molecules/CardsGrid/CardsGrid'; import { ButtonNaked } from '@pagopa/mui-italia'; import Link from 'next/link'; import { HomepageProps } from '@/app/page'; +import SectionTitle from '@/components/molecules/SectionTitle/SectionTitle'; const Ecosystem = ({ title, @@ -18,12 +19,14 @@ const Ecosystem = ({ const theme = useTheme(); return ( - - {title && ( - - {title} - - )} + {title && } + ), }, @@ -44,7 +52,12 @@ const Ecosystem = ({ )} {solutionsCta && ( diff --git a/apps/nextjs-website/src/components/organisms/SolutionsShowcase/SolutionsShowcase.tsx b/apps/nextjs-website/src/components/organisms/SolutionsShowcase/SolutionsShowcase.tsx index 29b053a44..66349830a 100644 --- a/apps/nextjs-website/src/components/organisms/SolutionsShowcase/SolutionsShowcase.tsx +++ b/apps/nextjs-website/src/components/organisms/SolutionsShowcase/SolutionsShowcase.tsx @@ -33,6 +33,10 @@ const SolutionsShowcase = ({ tags: card.tags, useSrc: true, }))} + containerSx={{ + pt: '22px', + mt: '-22px', + }} /> ); diff --git a/apps/nextjs-website/src/components/organisms/StartInfo/StartInfo.tsx b/apps/nextjs-website/src/components/organisms/StartInfo/StartInfo.tsx index a39d08bf1..ab403c296 100644 --- a/apps/nextjs-website/src/components/organisms/StartInfo/StartInfo.tsx +++ b/apps/nextjs-website/src/components/organisms/StartInfo/StartInfo.tsx @@ -54,6 +54,10 @@ const StartInfo = ({ iconColor: card.iconColor, useSrc: card.useSrc, }))} + containerSx={{ + pt: '22px', + mt: '-22px', + }} /> {cta && ( diff --git a/apps/nextjs-website/src/components/templates/ApiDataListTemplate/ApiDataListTemplate.tsx b/apps/nextjs-website/src/components/templates/ApiDataListTemplate/ApiDataListTemplate.tsx index a78da1820..806b53096 100644 --- a/apps/nextjs-website/src/components/templates/ApiDataListTemplate/ApiDataListTemplate.tsx +++ b/apps/nextjs-website/src/components/templates/ApiDataListTemplate/ApiDataListTemplate.tsx @@ -64,6 +64,10 @@ const ApiDataListTemplate = ({ ctaLabel: t('apiDataListPage.explore'), }))} cardSize={{ xs: 12, md: 4 }} + containerSx={{ + pt: '22px', + mt: '-22px', + }} />