Skip to content

Commit

Permalink
feat: add 4 CTAs
Browse files Browse the repository at this point in the history
  • Loading branch information
viet nguyen committed Oct 27, 2023
1 parent e78e623 commit 596c732
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/app/components/DesktopHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
]

Expand Down
4 changes: 4 additions & 0 deletions src/app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
14 changes: 7 additions & 7 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -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<any> {
return (
<div className='mt-16 w-full flex flex-col gap-y-24'>
<div className='pl-4 lg:grid lg:grid-cols-3'>
<div className='col-span-2 bg-blue-200 rounded-box p-10'>
<p>
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.
</p>

<div className='mt-8 w-full flex flex-col gap-y-24'>
<div className='px-4 lg:grid lg:grid-cols-3'>
<div className='col-span-2 px-10 pb-10 bg-gradient-to-r from-cyan-500 to-blue-500 rounded-box'>
<LandingHero />
<LandingCTA />
</div>
<div className='lg:overflow-y-auto lg:h-[800px] w-full'>
<RecentEdits />
Expand Down
4 changes: 2 additions & 2 deletions src/components/edit/RecentChangeHistory.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -42,7 +42,7 @@ export const ChangesetRow = ({ changeset }: ChangsetRowProps): JSX.Element => {
</div>

<div className='text-sm text-base-content/70 italic mr-2'>
{formatDistanceToNow(createdAt, { addSuffix: true })}
{formatDistanceToNowStrict(createdAt, { addSuffix: false })}
</div>
</div>
<div className={clx('border-l-8 card card-compact w-full bg-base-100 border shadow-lg', op.borderCue)}>
Expand Down

0 comments on commit 596c732

Please sign in to comment.