From 8f91e4ecb98c3f1ef8e18bf79a560404e5f3c42e Mon Sep 17 00:00:00 2001 From: Tom Robiquet Date: Wed, 28 Feb 2024 16:53:54 +0000 Subject: [PATCH 1/4] Adjust index page fonts --- components/front-page/GettingStartedSection.tsx | 4 +--- components/front-page/News.tsx | 6 +++--- components/front-page/PopularCategories.tsx | 2 +- components/markets/MarketScroll.tsx | 6 ++++-- styles/index.css | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/components/front-page/GettingStartedSection.tsx b/components/front-page/GettingStartedSection.tsx index c6939c24f..ebd992be9 100644 --- a/components/front-page/GettingStartedSection.tsx +++ b/components/front-page/GettingStartedSection.tsx @@ -6,9 +6,7 @@ const GettingStartedSection = () => { return ( <>
-

- Getting Started -

+

Getting Started

diff --git a/components/front-page/News.tsx b/components/front-page/News.tsx index 45c5a1c61..847ca984c 100644 --- a/components/front-page/News.tsx +++ b/components/front-page/News.tsx @@ -12,7 +12,7 @@ export const NewsSection = ({ }) => { return (
-

News

+

News

{news.map((news, index) => { const link = news.link?.isMarket @@ -44,8 +44,8 @@ export const NewsSection = ({ }} />
-

{news.title}

-
{news.subtitle}
+
{news.title}
+
{news.subtitle}
); })} diff --git a/components/front-page/PopularCategories.tsx b/components/front-page/PopularCategories.tsx index 006e934d3..2e00e5f8f 100644 --- a/components/front-page/PopularCategories.tsx +++ b/components/front-page/PopularCategories.tsx @@ -79,7 +79,7 @@ const PopularCategories: FC<{ return (
-

Popular Categories

+

Popular Categories

{topCategories.map((category, index) => ( -

{title}

+
+

{title}

+
Date: Thu, 29 Feb 2024 09:43:38 +0000 Subject: [PATCH 2/4] handle images that aren't square --- components/front-page/LatestTradesCompact.tsx | 6 +++++- components/front-page/TrendingMarketsCompact.tsx | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/components/front-page/LatestTradesCompact.tsx b/components/front-page/LatestTradesCompact.tsx index 177f0ecba..6a11f9f71 100644 --- a/components/front-page/LatestTradesCompact.tsx +++ b/components/front-page/LatestTradesCompact.tsx @@ -8,7 +8,7 @@ import Image from "next/image"; import Link from "next/link"; const LatestTradesCompact = () => { - const { data: trades } = useLatestTrades(4); + const { data: trades } = useLatestTrades(100); return (
@@ -40,6 +40,10 @@ const LatestTradeRow = ({ trade }: { trade: TradeItem }) => { height={30} className="overflow-hidden rounded-md" sizes={"30px"} + style={{ + objectFit: "cover", + objectPosition: "50% 50%", + }} />
diff --git a/components/front-page/TrendingMarketsCompact.tsx b/components/front-page/TrendingMarketsCompact.tsx index 7747ad848..e81c9633d 100644 --- a/components/front-page/TrendingMarketsCompact.tsx +++ b/components/front-page/TrendingMarketsCompact.tsx @@ -56,6 +56,10 @@ const TrendingMarketRow = ({ market }: { market: FullMarketFragment }) => { height={45} className="overflow-hidden rounded-md" sizes={"45px"} + style={{ + objectFit: "cover", + objectPosition: "50% 50%", + }} />
From 7883d81c9b2f40938b930417f226dd407e1b3633 Mon Sep 17 00:00:00 2001 From: Tom Robiquet Date: Thu, 29 Feb 2024 10:11:19 +0000 Subject: [PATCH 3/4] revert --- components/front-page/LatestTradesCompact.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/front-page/LatestTradesCompact.tsx b/components/front-page/LatestTradesCompact.tsx index 6a11f9f71..10f0e09ea 100644 --- a/components/front-page/LatestTradesCompact.tsx +++ b/components/front-page/LatestTradesCompact.tsx @@ -8,7 +8,7 @@ import Image from "next/image"; import Link from "next/link"; const LatestTradesCompact = () => { - const { data: trades } = useLatestTrades(100); + const { data: trades } = useLatestTrades(4); return (
From 66ceb45b81d6fb41c3bfde1bf5de4525d38f8bf3 Mon Sep 17 00:00:00 2001 From: Tom Robiquet Date: Fri, 1 Mar 2024 10:48:14 +0000 Subject: [PATCH 4/4] fix layout --- components/markets/MarketScroll.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/markets/MarketScroll.tsx b/components/markets/MarketScroll.tsx index 6dbb5409c..08f0c55b8 100644 --- a/components/markets/MarketScroll.tsx +++ b/components/markets/MarketScroll.tsx @@ -83,8 +83,8 @@ const MarketScroll = ({ ref={containerRef} className="grid grid-cols-1 gap-y-2 sm:grid-cols-2 sm:gap-7 lg:grid-cols-3" > -
-

{title}

+
+

{title}