diff --git a/src/app/sponsors/page.tsx b/src/app/sponsors/page.tsx index be1d96a..eac50ea 100644 --- a/src/app/sponsors/page.tsx +++ b/src/app/sponsors/page.tsx @@ -1,3 +1,4 @@ +'use client'; import { NavBar, SponsorButton, SponsorCard } from '@/components'; import styles from './sponsors.module.css'; import Image from 'next/image'; @@ -5,7 +6,7 @@ import Image from 'next/image'; import astronaut from '../../assets/images/astronaut.svg'; export default function Sponsors() { - const sponsorsList: SponsorCardProps[] = []; + const sponsorsList: SponsorCardProps[] = Array(30).fill({ name: 'nextjs', logo: '/next.svg' }); // backend logic // sponsorsList = await(await fetch("backend url",{next:{tags:['collection']}})).json(); diff --git a/src/app/sponsors/sponsors.module.css b/src/app/sponsors/sponsors.module.css index f48b26f..54446ee 100644 --- a/src/app/sponsors/sponsors.module.css +++ b/src/app/sponsors/sponsors.module.css @@ -122,7 +122,7 @@ align-items: center; @media screen and (max-width:560px) { - transform: translate(10%, -45%); + transform: translate(10%, -55%); margin-top: 60px; } } @@ -139,10 +139,7 @@ gap: 115px; justify-content: center; - @media screen and (max-width:560px) { - flex-wrap: nowrap; - flex-direction: column; - align-items: center; + @media screen and (max-width:560px) { gap: 5px; } } @@ -163,8 +160,12 @@ align-items: center; overflow-y: scroll; + @media screen and (max-width:560px) { + padding: 0px; + } } + .parentList::-webkit-scrollbar { display: none; } \ No newline at end of file diff --git a/src/components/SponsorCard/SponsorCard.tsx b/src/components/SponsorCard/SponsorCard.tsx index 60c242f..fddb877 100644 --- a/src/components/SponsorCard/SponsorCard.tsx +++ b/src/components/SponsorCard/SponsorCard.tsx @@ -13,24 +13,27 @@ const SponsorCard = ({ name, logo }: SponsorCardProps) => { useEffect(() => { setDim(window.innerWidth < 560 ? 0.65 : 1); }, []); + return ( - -
-
- - -
- -
-
-
-
{name}
+ <> + +
+
+ + +
+
-
- {logo != '' && {name}} +
+
+
{name}
+
+
+ {logo != '' && {name}} +
-
-
+ + ); }; export default SponsorCard;