generated from taylorbryant/gatsby-starter-tailwind
-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
viet nguyen
committed
Oct 27, 2023
1 parent
efbc77f
commit 10f5598
Showing
7 changed files
with
48 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<button | ||
className={className} onClick={() => { | ||
void signIn('auth0') | ||
}} | ||
>{label} | ||
</button> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,5 @@ import { useState } from 'react' | |
export const ShowEmailJS: React.FC = () => { | ||
const [email, setEmail] = useState < string | null>() | ||
|
||
return (<button onClick={() => setEmail('[email protected]')} className='btn btn-primary btn-sm'>Email us {email != null && <a href={`mailto:${email}`}>{email}</a>}</button>) | ||
return (<button onClick={() => setEmail('[email protected]')} className='btn btn-primary btn-sm btn-outline'>Email us {email != null && <a href={`mailto:${email}`}>{email}</a>}</button>) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,12 +7,13 @@ import { USAToC } from './components/USAToC' | |
export default async function Home (): Promise<any> { | ||
return ( | ||
<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'> | ||
<div className='lg:pl-4 lg:grid lg:grid-cols-3'> | ||
<div className='col-span-2 pb-10 bg-gradient-to-r from-cyan-500/40 to-blue-500/60 rounded-box'> | ||
<LandingHero /> | ||
<LandingCTA /> | ||
<p className='mt-12 px-10 text-center text-sm'>Our website is undergoing a facelift. Visit the <a href='/classic' className='underline'>old home</a>. <br /><span className='text-base-content/60'>Questions or comments? <a href='mailto:[email protected]'>[email protected]</a></span></p> | ||
</div> | ||
<div className='lg:overflow-y-auto lg:h-[800px] w-full'> | ||
<div className='mt-8 lg:mt-0 lg:overflow-y-auto lg:h-[800px] w-full'> | ||
<RecentEdits /> | ||
</div> | ||
</div> | ||
|