Skip to content

Commit

Permalink
chore: test accounts to explore the website
Browse files Browse the repository at this point in the history
  • Loading branch information
Amama-Fatima committed Jun 25, 2024
1 parent e7e6176 commit 9e7a759
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/(lobby)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import '@/lib/env';
import Features from '@/components/landing-page/features';
import Gradient from '@/components/landing-page/gardient';
import HeroSection from '@/components/landing-page/hero-section';
import TestAccounts from '@/components/landing-page/test-accounts';

export default function HomePage() {
return (
<section className='overflow-hidden'>
<Gradient />
<HeroSection />
<Features />
<TestAccounts />
</section>
);
}
2 changes: 2 additions & 0 deletions src/components/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
Bell,
Briefcase,
CheckIcon,
CircleUserRound,
ClipboardPlus,
Download,
File,
Expand Down Expand Up @@ -48,6 +49,7 @@ export const Icons = {
fileText: FileText,
attach: Paperclip,
timer: Timer,
testUser: CircleUserRound,
user: User,
dashboard: Gauge,
settings: Settings,
Expand Down
62 changes: 62 additions & 0 deletions src/components/landing-page/test-accounts.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import React from 'react';

import { Icons } from '@/components/icons';
import { Separator } from '@/components/ui/separator';

const ACCOUNTS = [
{
name: 'John Doe',
email: '[email protected]',
password: '12345678',
details: 'John is a part of 3 teams as a team member',
},
{
name: 'Sarah Brown',
email: '[email protected]',
password: '12345678',
details: 'Sarah is part of 2 teams as team head',
},
{
name: 'Ryan Clark',
email: '[email protected]',
password: '12345678',
details:
'Ryan is part of one team as team member and has an invitation from Sarah to join the Security team.',
},
];

export default function TestAccounts() {
return (
<div className='flex flex-col items-center justify-center mb-6 p-4'>
<h2 className='text-2xl font-bold mb-4'>Test Accounts</h2>
<p className='text-sm font-bold text-muted-foreground'>
Login through these accounts to explore the website or make your own
</p>
<div className='flex flex-col max-w-4xl'>
{ACCOUNTS.map((account, index) => (
<React.Fragment key={index}>
<div className='flex gap-2 p-4 rounded-lg shadow-sm'>
<Icons.testUser className='size-8' />
<div className='flex flex-col justify-between w-1/2'>
<h3 className='font-semibold'>{account.name}</h3>
<p>
<span className='text-muted-foreground'>Email:</span>{' '}
{account.email}
</p>
<p>
<span className='text-muted-foreground'>Password:</span>{' '}
{account.password}
</p>
</div>
<Separator orientation='vertical' className='mx-2 h-20' />
<div className='flex flex-col justify-center w-1/2'>
<p className='text-sm'>{account.details}</p>
</div>
</div>
<Separator orientation='horizontal' className='my-4' />
</React.Fragment>
))}
</div>
</div>
);
}

0 comments on commit 9e7a759

Please sign in to comment.