Skip to content
Open
Show file tree
Hide file tree
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
60 changes: 0 additions & 60 deletions trellix/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -212,66 +212,6 @@ body {
font-size: 0.875rem;
}

/* Social Login */
.social-divider {
display: flex;
align-items: center;
margin: 24px 0;
gap: 16px;
}

.social-divider::before,
.social-divider::after {
content: '';
flex: 1;
height: 1px;
background: var(--border);
}

.social-divider span {
font-size: 0.8125rem;
color: var(--text-muted);
text-transform: lowercase;
}

.social-buttons {
display: flex;
flex-direction: column;
gap: 12px;
}

.social-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
width: 100%;
padding: 12px 16px;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: var(--radius-md);
color: var(--text);
font-size: 0.9375rem;
font-weight: 500;
font-family: inherit;
cursor: pointer;
transition: all 0.15s;
}

.social-btn:hover {
background: var(--bg-hover);
border-color: var(--border-focus);
}

.social-btn svg {
flex-shrink: 0;
}

.social-btn.google:hover {
border-color: #4285F4;
background: rgba(66, 133, 244, 0.08);
}

/* Main App Layout */
.app {
display: flex;
Expand Down
52 changes: 0 additions & 52 deletions trellix/src/pages/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { useState } from "react";
import { base44, Board } from "../sdk-client/base44-client";
import type { AuthStep, User, Board as BoardType } from "../types";

type SocialProvider = 'google' | 'microsoft' | 'facebook';

interface Props {
setUser: (user: User) => void;
setBoards: (boards: BoardType[]) => void;
Expand Down Expand Up @@ -49,10 +47,6 @@ export default function AuthPage({ setUser, setBoards }: Props) {
}
};

const handleSocialLogin = (provider: SocialProvider) => {
base44.auth.loginWithProvider(provider);
};


if (authStep === 'verify') {
return (
Expand Down Expand Up @@ -107,52 +101,6 @@ export default function AuthPage({ setUser, setBoards }: Props) {
{isSignUp ? 'Create Account' : 'Sign In'}
</button>
</form>

<div className="social-divider">
<span>or continue with</span>
</div>

<div className="social-buttons">
<button
type="button"
className="social-btn google"
onClick={() => handleSocialLogin('google')}
>
<svg viewBox="0 0 24 24" width="20" height="20">
<path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/>
<path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/>
<path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"/>
<path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"/>
</svg>
Google
</button>
{/* TODO: Enable when providers are configured
<button
type="button"
className="social-btn microsoft"
onClick={() => handleSocialLogin('microsoft')}
>
<svg viewBox="0 0 24 24" width="20" height="20">
<path fill="#F25022" d="M1 1h10v10H1z"/>
<path fill="#00A4EF" d="M1 13h10v10H1z"/>
<path fill="#7FBA00" d="M13 1h10v10H13z"/>
<path fill="#FFB900" d="M13 13h10v10H13z"/>
</svg>
Microsoft
</button>
<button
type="button"
className="social-btn facebook"
onClick={() => handleSocialLogin('facebook')}
>
<svg viewBox="0 0 24 24" width="20" height="20">
<path fill="#1877F2" d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>
</svg>
Facebook
</button>
*/}
</div>

<p className="toggle-auth">
{isSignUp ? 'Already have an account?' : "Don't have an account?"}
<button type="button" onClick={() => setIsSignUp(!isSignUp)}>
Expand Down
Loading