diff --git a/src/pages/communities/components/faqs.tsx b/src/components/communities/faqs.tsx similarity index 100% rename from src/pages/communities/components/faqs.tsx rename to src/components/communities/faqs.tsx diff --git a/src/pages/communities/index.tsx b/src/pages/communities.tsx similarity index 71% rename from src/pages/communities/index.tsx rename to src/pages/communities.tsx index 9aee30381..c4218d06c 100644 --- a/src/pages/communities/index.tsx +++ b/src/pages/communities.tsx @@ -1,15 +1,16 @@ -/* eslint-disable @next/next/no-img-element */ -import { Button, Card, Container, Flex, Grid, Section, Text } from '@near-pagoda/ui'; +import { Card, Flex, Grid, Section, SvgIcon, Text } from '@near-pagoda/ui'; +import { CaretRight } from '@phosphor-icons/react'; +import Image from 'next/image'; import Link from 'next/link'; import styled from 'styled-components'; +import FAQS from '@/components/communities/faqs'; import { useCommunities } from '@/hooks/useCommunities'; +import useDeviceType from '@/hooks/useDeviceType'; import { useGatewayEvents } from '@/hooks/useGatewayEvents'; import { useDefaultLayout } from '@/hooks/useLayout'; import type { NextPageWithLayout } from '@/utils/types'; -import FAQS from './components/faqs'; - export const IconLink = styled(Link)<{ iconColor: string }>` all: unset; display: inline-flex; @@ -48,6 +49,7 @@ export const IconLink = styled(Link)<{ iconColor: string }>` const ContactUsPage: NextPageWithLayout = () => { const { emitGatewayEvent } = useGatewayEvents(); const { featuredCommunities, channels, urls } = useCommunities(); + const deviceType = useDeviceType(); function openGleapWidget() { emitGatewayEvent && @@ -58,16 +60,16 @@ const ContactUsPage: NextPageWithLayout = () => { } return ( -
- +
+ Get Support - - + + Have a question? Ask our experts @@ -86,12 +88,12 @@ const ContactUsPage: NextPageWithLayout = () => { Channels - + {channels.map((channel) => ( {channel.label} - + } size="xs" /> ))} @@ -137,28 +139,43 @@ const ContactUsPage: NextPageWithLayout = () => { - Communities + Join the communities - + {featuredCommunities.map((community) => ( - - {community.name} -
- {community.name} -

{community.summary}

+ + {community.name} +
+ + {community.name} + + {community.summary}
- -
); }; diff --git a/src/styles/globals.css b/src/styles/globals.css index 0daaaca18..311359df0 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -83,7 +83,8 @@ w3m-modal { display: none; } -.modal-left, .modal-left-title { +.modal-left, +.modal-left-title { border-right: 0 !important; width: 100% !important; } @@ -93,7 +94,8 @@ w3m-modal { } @media (max-width: 576px) { - .nws-modal, .modal-left { + .nws-modal, + .modal-left { max-height: 280px !important; } -} \ No newline at end of file +}