Fixed create project button
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
'use client'
|
||||
import { useEffect, useState } from 'react'
|
||||
import { PageWrapper } from '@/components/foundation'
|
||||
import { LoadingOverlay } from '@/components/foundation/loading/loading-overlay'
|
||||
import { useAuth, useUser } from '@clerk/nextjs'
|
||||
import { Button } from '@workspace/ui/components/button'
|
||||
import { Shapes } from 'lucide-react'
|
||||
import Link from 'next/link'
|
||||
import { useAuth, useUser } from '@clerk/nextjs'
|
||||
import { LoadingOverlay } from '@/components/foundation/loading/loading-overlay'
|
||||
import { useEffect, useState } from 'react'
|
||||
|
||||
export default function HomePage() {
|
||||
const [isLoading, setIsLoading] = useState<boolean>(true)
|
||||
const { isLoaded: isAuthLoaded, userId } = useAuth()
|
||||
const { isLoaded: isUserLoaded } = useUser()
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
// Check authentication status
|
||||
if (isAuthLoaded && isUserLoaded) {
|
||||
@@ -32,7 +32,9 @@ export default function HomePage() {
|
||||
<PageWrapper
|
||||
header={{
|
||||
title: 'Welcome to Laconic Deploy',
|
||||
actions: userId ? [{ label: 'Create Project', href: '/projects/create' }] : []
|
||||
actions: userId
|
||||
? [{ label: 'Create Project', href: '/projects/github/ps/cr' }]
|
||||
: []
|
||||
}}
|
||||
layout="bento"
|
||||
className="pb-0"
|
||||
@@ -44,11 +46,14 @@ export default function HomePage() {
|
||||
<div className="mb-6">
|
||||
<Shapes size={80} className="stroke-current" />
|
||||
</div>
|
||||
<h1 className="text-4xl font-bold mb-6">Welcome to Laconic Deploy</h1>
|
||||
<h1 className="text-4xl font-bold mb-6">
|
||||
Welcome to Laconic Deploy
|
||||
</h1>
|
||||
<p className="text-xl text-muted-foreground mb-8">
|
||||
Deploy your applications quickly and securely on the decentralized web.
|
||||
Deploy your applications quickly and securely on the decentralized
|
||||
web.
|
||||
</p>
|
||||
|
||||
|
||||
<div className="flex gap-4">
|
||||
<Button asChild size="lg">
|
||||
<Link href="/projects">View My Projects</Link>
|
||||
@@ -64,24 +69,29 @@ export default function HomePage() {
|
||||
<div className="mb-6">
|
||||
<Shapes size={80} className="stroke-current" />
|
||||
</div>
|
||||
<h1 className="text-4xl font-bold mb-6">Decentralized Web Deployment</h1>
|
||||
<h1 className="text-4xl font-bold mb-6">
|
||||
Decentralized Web Deployment
|
||||
</h1>
|
||||
<p className="text-xl text-muted-foreground mb-8">
|
||||
Deploy your applications securely and efficiently with Laconic's web3 deployment platform.
|
||||
Connect your wallet to get started.
|
||||
Deploy your applications securely and efficiently with Laconic's
|
||||
web3 deployment platform. Connect your wallet to get started.
|
||||
</p>
|
||||
|
||||
|
||||
<Button onClick={handleConnectWallet} size="lg" className="mb-4">
|
||||
Connect Wallet
|
||||
</Button>
|
||||
|
||||
|
||||
<p className="text-sm text-muted-foreground mt-4">
|
||||
Already have an account? <Link href="/sign-in" className="text-primary hover:underline">Sign in</Link>
|
||||
Already have an account?{' '}
|
||||
<Link href="/sign-in" className="text-primary hover:underline">
|
||||
Sign in
|
||||
</Link>
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
|
||||
{/* Removed the CheckBalanceIframe component that was causing errors */}
|
||||
</PageWrapper>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user