diff --git a/src/app/components/LandingCTA.tsx b/src/app/components/LandingCTA.tsx index f0d962556..18233a6ca 100644 --- a/src/app/components/LandingCTA.tsx +++ b/src/app/components/LandingCTA.tsx @@ -1,8 +1,12 @@ +import clx from 'classnames' + +import { LoginButtonClient } from './LoginButton' import { ShowEmailJS } from './ShowEmailJS' + export const LandingCTA: React.FC = () => { return (
-
+
@@ -16,11 +20,11 @@ const Card4Coders: React.FC = () => { return ( Dev onboarding - GitHub + GitHub } /> @@ -31,8 +35,8 @@ const Card4All: React.FC = () => { return ( Login} + body='Add missing climbs. Help us make your local climbing‘s area page even better!' + action={} /> ) } @@ -51,8 +55,8 @@ const Donate: React.FC = () => { return ( Donate} + body='OpenBeta is nonprofit and funded by users like you! If you support our mission to keep climbing knowledge free and open, please consider making a donation today.' + action={Donate} /> ) } @@ -61,16 +65,17 @@ interface CTACardProps { title: string body: string action: React.ReactNode + className?: string } -const Card: React.FC = ({ title, body, action }) => { +const Card: React.FC = ({ title, body, action, className }) => { return ( -
+

{title}

-
+

{body}

-
+
{action}
diff --git a/src/app/components/LandingHero.tsx b/src/app/components/LandingHero.tsx index 70cce7752..4387cbedb 100644 --- a/src/app/components/LandingHero.tsx +++ b/src/app/components/LandingHero.tsx @@ -3,7 +3,7 @@ import Heart from '@/assets/icons/heart-hero' export const LandingHero: React.FC = () => { return (
-
+
Knowledge + You = diff --git a/src/app/components/LoginButton.tsx b/src/app/components/LoginButton.tsx new file mode 100644 index 000000000..89766014f --- /dev/null +++ b/src/app/components/LoginButton.tsx @@ -0,0 +1,16 @@ +'use client' +import { signIn } from 'next-auth/react' + +/** + * Client-side button + */ +export const LoginButtonClient: React.FC<{ className: string, label: string }> = ({ className, label }) => { + return ( + + ) +} diff --git a/src/app/components/RecentEdits.tsx b/src/app/components/RecentEdits.tsx index 4569a8afb..bdc0dfef8 100644 --- a/src/app/components/RecentEdits.tsx +++ b/src/app/components/RecentEdits.tsx @@ -7,13 +7,13 @@ import Link from 'next/link' export const RecentEdits: React.FC = async () => { const history = await getChangeHistoryServerSide() return ( -
+

Recent edits

See more

-
+
{history.splice(0, 10).map(changetset => )}
diff --git a/src/app/components/ShowEmailJS.tsx b/src/app/components/ShowEmailJS.tsx index 485cc41a7..6c88afad1 100644 --- a/src/app/components/ShowEmailJS.tsx +++ b/src/app/components/ShowEmailJS.tsx @@ -7,5 +7,5 @@ import { useState } from 'react' export const ShowEmailJS: React.FC = () => { const [email, setEmail] = useState < string | null>() - return () + return () } diff --git a/src/app/global.css b/src/app/global.css index 61901e223..dc801c1c6 100644 --- a/src/app/global.css +++ b/src/app/global.css @@ -28,4 +28,12 @@ h2 { .hero-text-shadow { text-shadow: 1px 1px 3px rgb(21, 8, 60); +} + +.rainbow-border { + background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0)) 50% 50%/calc(100% - 2px) calc(100% - 2px) no-repeat, + linear-gradient(0deg, #00a7f4 0%, transparent 70%), + radial-gradient(at 100% 0%, #00ff53 0%, transparent 70%), + #f15e40; + box-sizing: border-box; } \ No newline at end of file diff --git a/src/app/page.tsx b/src/app/page.tsx index 80ed6823e..a8711eb83 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -7,12 +7,13 @@ import { USAToC } from './components/USAToC' export default async function Home (): Promise { return (
-
-
+
+
+

Our website is undergoing a facelift. Visit the old home.
Questions or comments? hello@openbeta.io

-
+