diff --git a/packages/api/src/resolvers/function_resolvers.ts b/packages/api/src/resolvers/function_resolvers.ts index 506f722a5..dfb0e276c 100644 --- a/packages/api/src/resolvers/function_resolvers.ts +++ b/packages/api/src/resolvers/function_resolvers.ts @@ -628,7 +628,7 @@ export const functionResolvers = { switch (section.layout) { case 'just_added': - return 'Just Added' + return 'Recently Added' case 'top_picks': return 'Top Picks' case 'quick_links': diff --git a/packages/web/components/nav-containers/home.tsx b/packages/web/components/nav-containers/home.tsx index 8ae31204b..2f07ffa5c 100644 --- a/packages/web/components/nav-containers/home.tsx +++ b/packages/web/components/nav-containers/home.tsx @@ -26,6 +26,7 @@ import { } from '../../lib/networking/queries/useGetSubscriptionsQuery' import { Box, HStack, SpanBox, VStack } from '../elements/LayoutPrimitives' import { Toaster } from 'react-hot-toast' +import Link from 'next/link' export function HomeContainer(): JSX.Element { const homeData = useGetHomeItems() @@ -47,7 +48,7 @@ export function HomeContainer(): JSX.Element { distribution="start" css={{ width: '646px', - gap: '40px', + gap: '50px', minHeight: '100vh', '@mdDown': { width: '100%', @@ -109,19 +110,64 @@ const JustAddedHomeSection = (props: HomeSectionProps): JSX.Element => { gap: '20px', }} > - - {props.homeSection.title} - - {props.homeSection.items.map((homeItem) => { - return - })} + + {props.homeSection.title} + + + + + + + {props.homeSection.items.map((homeItem) => { + return + })} + ) } @@ -301,6 +347,7 @@ const TimeAgo = (props: HomeItemViewProps): JSX.Element => { const Title = (props: HomeItemViewProps): JSX.Element => { return ( { display: '-webkit-box', '-webkit-line-clamp': '3', '-webkit-box-orient': 'vertical', + '&:title-text': { + transition: 'text-decoration 0.3s ease', + }, + }} + > + {props.homeItem.title} + + ) +} + +const TitleSmall = (props: HomeItemViewProps): JSX.Element => { + return ( + {props.homeItem.title} @@ -353,13 +428,19 @@ const JustAddedItemView = (props: HomeItemViewProps): JSX.Element => { return ( { if (event.metaKey || event.ctrlKey) { @@ -372,12 +453,15 @@ const JustAddedItemView = (props: HomeItemViewProps): JSX.Element => { - - + + + + - + + <TitleSmall homeItem={props.homeItem} /> </VStack> ) } @@ -391,12 +475,15 @@ const TopicPickHomeItemView = (props: HomeItemViewProps): JSX.Element => { width: '100%', p: '0px', pt: '35px', - + cursor: 'pointer', borderRadius: '5px', '&:hover': { bg: '$homeCardHover', borderRadius: '0px', }, + '&:hover .title-text': { + textDecoration: 'underline', + }, }} onClick={(event) => { if (event.metaKey || event.ctrlKey) { @@ -511,13 +598,17 @@ const SiteIconLarge = styled('img', { borderRadius: '100px', }) -const SourceInfo = (props: HomeItemViewProps) => ( +type SourceInfoProps = { + subtle?: boolean +} + +const SourceInfo = (props: HomeItemViewProps & SourceInfoProps) => ( <HoverCard.Root> <HoverCard.Trigger asChild> <HStack distribution="start" alignment="center" - css={{ gap: '5px', cursor: 'pointer' }} + css={{ gap: '8px', cursor: 'pointer' }} > {props.homeItem.source.icon && ( <SiteIconSmall @@ -528,11 +619,10 @@ const SourceInfo = (props: HomeItemViewProps) => ( <HStack css={{ lineHeight: '1', - pb: '3px', fontFamily: '$inter', fontWeight: '500', - fontSize: '13px', - color: '$homeTextSource', + fontSize: props.subtle ? '12px' : '13px', + color: props.subtle ? '$homeTextSubtle' : '$homeTextSource', textDecoration: 'underline', }} >