diff --git a/src/app/(default)/components/FinancialContributors.tsx b/src/app/(default)/components/FinancialContributors.tsx index 736099140..20a95ece8 100644 --- a/src/app/(default)/components/FinancialContributors.tsx +++ b/src/app/(default)/components/FinancialContributors.tsx @@ -1,7 +1,7 @@ import { getSummaryReport } from '@/js/graphql/opencollective' import { FinancialBackerAccountType } from '@/js/types' import { DonateButton } from './LandingCTA' -import { SectionContainer, Width } from './ui/SectionContainer' +import { SectionContainer, Padding } from './ui/SectionContainer' /** * List financial contributors */ @@ -10,8 +10,8 @@ export const FinancialContributors: React.FC = async () => { return (

Financial Contributors

diff --git a/src/app/(default)/components/InternationalToC.tsx b/src/app/(default)/components/InternationalToC.tsx index 71ea25890..809702932 100644 --- a/src/app/(default)/components/InternationalToC.tsx +++ b/src/app/(default)/components/InternationalToC.tsx @@ -24,7 +24,7 @@ export const InternationalToC: React.FC = () => { const CountryCard: React.FC<{ country: ToCCountry }> = ({ country }) => { const { areaName, uuid, children } = country return ( -
+
{areaName} diff --git a/src/app/(default)/components/LandingHero.tsx b/src/app/(default)/components/LandingHero.tsx index 75d184047..9db3b06c7 100644 --- a/src/app/(default)/components/LandingHero.tsx +++ b/src/app/(default)/components/LandingHero.tsx @@ -1,9 +1,10 @@ +import Link from 'next/link' import { ArrowRight } from '@phosphor-icons/react/dist/ssr' export const LandingHero: React.FC = () => { return ( -
-

Share your climbing route knowledge!

+
+

Share your climbing route knowledge!

Join us to help improve this comprehensive climbing resource for the community.
@@ -17,5 +18,5 @@ export const LandingHero: React.FC = () => { export const HeroAlert: React.FC = () => (
NEW - Crag maps + Crag maps
) diff --git a/src/app/(default)/components/RecentTags.tsx b/src/app/(default)/components/RecentTags.tsx index f83743e24..ef51a2230 100644 --- a/src/app/(default)/components/RecentTags.tsx +++ b/src/app/(default)/components/RecentTags.tsx @@ -1,4 +1,5 @@ import { RecentImageCard } from '@/components/home/RecentMediaCard' +import { SectionContainer } from './ui/SectionContainer' import { getMediaForFeedSC } from '@/js/graphql/gql/serverApi' /** @@ -19,29 +20,25 @@ export const RecentTags: React.FC = async () => { }) return ( -
-
-

Latest Photos

-
+ Latest Photos}>
-
{ - recentMediaWithTags.map(media => { - const { mediaUrl } = media - return ( -
- -
- ) - } - ) + recentMediaWithTags.map(media => { + const { mediaUrl } = media + return ( +
+ +
+ ) + } + ) }
-
+ ) } diff --git a/src/app/(default)/components/Volunteers.tsx b/src/app/(default)/components/Volunteers.tsx index 06b7548d9..f733e6dd4 100644 --- a/src/app/(default)/components/Volunteers.tsx +++ b/src/app/(default)/components/Volunteers.tsx @@ -1,5 +1,5 @@ import { CodeContributorsAction } from './LandingCTA' -import { SectionContainer, Width } from './ui/SectionContainer' +import { SectionContainer, Padding } from './ui/SectionContainer' const url = 'https://raw.githubusercontent.com/OpenBeta/open-tacos/develop/.all-contributorsrc' @@ -22,8 +22,8 @@ export const Volunteers: React.FC = async () => { const { contributors }: { contributors: GithubProfile[] } = await res.json() return (

Volunteers

diff --git a/src/app/(default)/components/ui/SectionContainer.tsx b/src/app/(default)/components/ui/SectionContainer.tsx index 257867e6c..f979f0d79 100644 --- a/src/app/(default)/components/ui/SectionContainer.tsx +++ b/src/app/(default)/components/ui/SectionContainer.tsx @@ -1,23 +1,23 @@ import { ReactNode } from 'react' import clx from 'classnames' -export enum Width { - wide = '2xl:p-0', - compact = 'xl:p-10' +export enum Padding { + none = '', + default = 'p-4 lg:p-8' } interface Props { header: ReactNode children: ReactNode className?: string - width?: Width + padding?: Padding } /** * Reusable wide-screen container for root page */ -export const SectionContainer: React.FC = ({ header, children, className = '', width = Width.wide }) => ( -
+export const SectionContainer: React.FC = ({ header, children, className = '', padding = Padding.none }) => ( +
{header}
{children} diff --git a/src/app/(default)/page.tsx b/src/app/(default)/page.tsx index 3b1e20be5..cccbb252b 100644 --- a/src/app/(default)/page.tsx +++ b/src/app/(default)/page.tsx @@ -17,14 +17,13 @@ export const revalidate = 3600 // 1 hour export default async function Home (): Promise { const history = await getChangeHistoryServerSide() return ( -
- - -
- -
+ <> +
+ +
+
+
-
}> @@ -38,11 +37,9 @@ export default async function Home (): Promise { -
- - -
+ +
-
+ ) }