From 596c7328fb57ee664d30dd9f50423423e350d244 Mon Sep 17 00:00:00 2001 From: viet nguyen Date: Fri, 27 Oct 2023 13:29:53 -0700 Subject: [PATCH] feat: add 4 CTAs --- src/app/components/DesktopHeader.tsx | 2 +- src/app/global.css | 4 ++++ src/app/page.tsx | 14 +++++++------- src/components/edit/RecentChangeHistory.tsx | 4 ++-- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/app/components/DesktopHeader.tsx b/src/app/components/DesktopHeader.tsx index 6e0e7b847..dbf24b960 100644 --- a/src/app/components/DesktopHeader.tsx +++ b/src/app/components/DesktopHeader.tsx @@ -30,7 +30,7 @@ export const DesktopHeader: React.FC = () => { { onClick: () => { void signIn('auth0', { callbackUrl: '/api/user/me' }) }, label: 'Login', - type: 'rounded-btn border bg-accent' + type: 'rounded-btn border bg-accent ring-0 border-b-2 border-b-neutral' } ] diff --git a/src/app/global.css b/src/app/global.css index 403c66ef0..61901e223 100644 --- a/src/app/global.css +++ b/src/app/global.css @@ -24,4 +24,8 @@ h2 { .card-body { @apply sm:px-0 border-0 !important; +} + +.hero-text-shadow { + text-shadow: 1px 1px 3px rgb(21, 8, 60); } \ No newline at end of file diff --git a/src/app/page.tsx b/src/app/page.tsx index 821904900..80ed6823e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,16 +1,16 @@ +import { LandingCTA } from './components/LandingCTA' +import { LandingHero } from './components/LandingHero' import { RecentEdits } from './components/RecentEdits' import { RecentTags } from './components/RecentTags' import { USAToC } from './components/USAToC' export default async function Home (): Promise { return ( -
-
-
-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. -

- +
+
+
+ +
diff --git a/src/components/edit/RecentChangeHistory.tsx b/src/components/edit/RecentChangeHistory.tsx index 0c450d212..6f8d25946 100644 --- a/src/components/edit/RecentChangeHistory.tsx +++ b/src/components/edit/RecentChangeHistory.tsx @@ -1,7 +1,7 @@ import React from 'react' import Link from 'next/link' import { PlusIcon, MinusIcon, PencilIcon, PencilSquareIcon, MinusCircleIcon, PlusCircleIcon } from '@heroicons/react/24/outline' -import { formatDistanceToNow } from 'date-fns' +import { formatDistanceToNowStrict } from 'date-fns' import clx from 'classnames' import { ChangesetType, ChangeType, AreaType, ClimbType, OrganizationType, DocumentTypeName } from '../../js/types' @@ -42,7 +42,7 @@ export const ChangesetRow = ({ changeset }: ChangsetRowProps): JSX.Element => {
- {formatDistanceToNow(createdAt, { addSuffix: true })} + {formatDistanceToNowStrict(createdAt, { addSuffix: false })}