Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/add logo in signup #35

Closed
wants to merge 2 commits into from
Closed
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
1 change: 1 addition & 0 deletions public/safedepsign.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/sign.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 8 additions & 7 deletions src/app/auth/components/ImageSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ import React from 'react';
import Image from 'next/image';

const ImageSection: React.FC = () => (
<div className="w-full max-w-lg aspect-video mb-6 overflow-hidden rounded-2xl ">
<Image
src="/pre-auth.svg"
alt="Authentication illustration"
width={800}
height={450}
className="object-cover w-full h-full "
<div className="relative w-full max-w-2xl lg:max-w-3xl aspect-video mb-6 overflow-hidden rounded-2xl">
<Image
src="/sign.png"
alt="Authentication"
fill
priority
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 75vw, 50vw"
className="object-contain"
/>
</div>
);
Expand Down
43 changes: 27 additions & 16 deletions src/app/auth/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,38 @@ import { CheckCircle, Shield } from 'lucide-react';
import ImageSection from "./components/ImageSection";
import TextSection from "./components/TextSection";
import AuthButtons from './components/AuthButtons';
import Image from 'next/image';

const Auth = () => {
return (
<main className="flex items-center justify-center min-h-screen bg-gradient-to-br from-blue-50 to-white p-8 font-inter">
<MainCard>
<div className="p-8 lg:p-12 flex flex-col items-center justify-center bg-gray-50 border-r border-gray-300 relative">
<div className="flex space-x-2 items-center pb-4">
<Badge icon={CheckCircle} text="Secure" bgColor="bg-green-100" textColor="text-green-600" />
<Badge icon={Shield} text="Verified" bgColor="bg-blue-100" textColor="text-blue-600" />
</div>
<ImageSection />
<TextSection />
<main className="flex items-center justify-center min-h-screen px-4 py-8 bg-gradient-to-br from-blue-100 to-white font-inter">
<MainCard className="flex flex-col md:flex-row w-full max-w-4xl bg-white rounded-lg shadow-lg overflow-hidden">
<div className="p-4 sm:p-6 lg:p-8 flex-1 flex flex-col items-center justify-center bg-gray-50 border-b md:border-b-0 md:border-r border-gray-200">
<div className="flex items-center space-x-2 mb-4 sm:mb-6">
<Badge icon={CheckCircle} text="Secure" bgColor="bg-green-100" textColor="text-green-600" />
<Badge icon={Shield} text="Verified" bgColor="bg-blue-100" textColor="text-blue-600" />
</div>
<div className="p-8 lg:p-12 flex flex-col justify-center space-y-8">
<div>
<h1 className="text-3xl font-bold text-gray-900 mb-2">Get Started</h1>
<p className="text-gray-600">Register for SafeDep Cloud to get API access.</p>
</div>
<AuthButtons />
<TermsAndPrivacy />
<ImageSection />
<TextSection />
</div>
<div className="p-4 sm:p-6 lg:p-8 flex-1 flex flex-col justify-center space-y-4 sm:space-y-6">
<div>
<div className="flex items-center gap-2 mb-3 sm:mb-4">
<h1 className="text-3xl sm:text-4xl lg:text-5xl font-light text-gray-900 text-left leading-tight">
Get Started
<br />
<span className="inline-flex items-center">
With <Image src="/safedepsign.svg" alt="SafeDep Logo" width={20} height={20} className="w-16 sm:w-20 h-6 sm:h-8 object-contain ml-2" />
</span>
</h1>
</div>
<p className="text-base sm:text-lg text-gray-600 leading-relaxed">
Register for SafeDep Cloud to get API access.
</p>
</div>
<AuthButtons />
<TermsAndPrivacy />
</div>
</MainCard>
</main>
);
Expand Down
7 changes: 4 additions & 3 deletions src/components/MainCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ import React from 'react';

interface MainCardProps {
children: React.ReactNode;
className?: string;
}

const MainCard: React.FC<MainCardProps> = ({ children }) => {
const MainCard: React.FC<MainCardProps> = ({ children, className }) => {
return (
<div className="w-full max-w-5xl mx-auto bg-white rounded-2xl shadow-lg border border-gray-200 grid grid-cols-1 md:grid-cols-2 overflow-hidden">
<div className={className}>
{children}
</div>
);
};

export default MainCard;
export default MainCard;
Loading