Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 3 additions & 21 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { useState } from 'react'
import './App.css'
import LoginModal from './components/LoginModal.jsx'
import SignupModal from './components/SignupModal.jsx'

function App() {
const [showLogin, setShowLogin] = useState(false)
const [showSignup, setShowSignup] = useState(false)

return (
Expand All @@ -18,7 +16,7 @@ function App() {
</div>
<div className="flex items-center space-x-4">
<button
onClick={() => setShowLogin(true)}
onClick={() => window.location.href = 'https://app.thelabelai.com/login'}
className="text-white hover:text-orange-500 transition-colors"
>
Sign In
Expand All @@ -29,12 +27,6 @@ function App() {
>
GET STARTED FREE
</button>
<button
onClick={() => window.location.href = 'https://app.thelabelai.com/dashboard'}
className="border border-blue-400 text-blue-400 hover:bg-blue-400 hover:text-white px-4 py-2 rounded-lg transition-colors"
>
Dashboard
</button>
</div>
</div>
</div>
Expand Down Expand Up @@ -128,27 +120,17 @@ function App() {
</div>
</footer>

{/* Enhanced Modals */}
<LoginModal
isOpen={showLogin}
onClose={() => setShowLogin(false)}
onSwitchToSignup={() => {
setShowLogin(false)
setShowSignup(true)
}}
/>

{/* Signup Modal */}
<SignupModal
isOpen={showSignup}
onClose={() => setShowSignup(false)}
onSwitchToLogin={() => {
setShowSignup(false)
setShowLogin(true)
window.location.href = 'https://app.thelabelai.com/login'
}}
/>
</div>
)
}

export default App