gbclient/app/page.tsx
Rodrigo Rodriguez (Pragmatismo) 6e87c5b449
Some checks failed
GBCI / build (push) Failing after 4m39s
feat: Implement file browser and operations components with enhanced UI
- Added FileBrowser component for displaying files and directories.
- Introduced FileOperations component for handling file uploads and folder creation.
- Created FileTree component to visualize the directory structure.
- Developed DriveScreen page to integrate file browsing, operations, and UI controls.
- Enhanced file system data structure for realistic representation.
- Implemented search, filter, and sort functionalities in the file browser.
- Added keyboard shortcuts and improved accessibility features.
2025-06-21 21:40:06 -03:00

65 lines
1.7 KiB
TypeScript

"use client";
import React, { useState } from 'react';
const AuthenticationScreen = () => {
const [isAuthenticated, setIsAuthenticated] = useState(false);
const handleLogin = async () => {
try {
localStorage.setItem('authToken', 'dummy-token');
setIsAuthenticated(true);
alert('Login Successful');
} catch (error) {
console.error('Login error:', error);
alert('Login Error');
}
};
const handleLogout = async () => {
try {
localStorage.removeItem('authToken');
setIsAuthenticated(false);
alert('Logout Successful');
} catch (error) {
console.error('Logout error:', error);
alert('Logout Error');
}
};
return (
<div className="auth-screen">
<div className="auth-content">
<button
className="auth-login-button"
onClick={isAuthenticated ? handleLogout : handleLogin}
>
{isAuthenticated ? 'Logout' : 'Login'}
</button>
<div className="auth-left-panel">
<div className="auth-logo">
<h1>Welcome to General Bots Online</h1>
</div>
<div className="auth-quote">
<p>"Errar é Humano."</p>
<p>General Bots</p>
</div>
</div>
<div className="auth-form-container">
<div className="auth-form-header">
<h2>Create an account</h2>
<p>Enter your email below to create your account</p>
</div>
<p className="auth-terms">
By clicking continue, you agree to our Terms of Service and Privacy Policy.
</p>
</div>
</div>
</div>
);
};
export default AuthenticationScreen;