import { Request, Response } from 'express';
import { Controller, GET, Page, BaseController } from '@BridgemanAccessible/ba-web-framework';

/**
 * The AboutController class is responsible for handling the about page of the site.
 */
@Controller()
export class AboutController extends BaseController {
    /**
     * Route for rendering the site's about page.
     * 
     * @param req The request object.
     * @param res The response object.
     */
    @Page('About', 'about.ejs')
    @GET('/about')
    private about(req: Request, res: Response) {
        return {
            people: [
                {
                    fname: 'Alan',
                    lname: 'Bridgeman',
                    position: 'Proprietor, CEO & Lead Developer',
                    bio: '' +
                    'Alan has been an avid disability advocate for over a decade including being a part of or involved with a variety of civic, provincial, national and international organizations around disability or accessibility. ' +
                    'Alan has held numerous certifications including but not limited to: Mental Health First Aid, Certified Professional in Accessibility Core Competinies (CPACC) with the International Association of Accessibility Professionals (IAAP), among others. ' +
                    'In additioan to his involvment in the disability community Alan is a dedicated and passionate software developer with a significant amount of experience in the industry. ' +
                    'He has worked on a wide variety of projects, from small websites for research teams and non-profits to large enterprise applications at fourtune 500 companites like Microsoft. ' +
                    'He has a strong background in web and cloud development, but has also worked on desktop and mobile applications. He has worked with many different technologies, including C#, Python, JavaScript, TypeScript, React, Node.js, Java, and many more. ' +
                    'Alan started Bridgeman Accessible because he saw over and over again companies that were lead by non-disabled people and non-developers trying to solve digital accessibility problems. ' +
                    'Moreover, they would only every consult or give advice but never build or innovate in ways that would help the community and the industry in a meaningful and impactful way.',
                    image: 'alan.jpeg',
                    //website: 'https://alanbridgeman.ca/',
                    email: 'alan@bridgemanaccessible.com',
                    phone: '+1 (431) 478-1655 Ext. 200'
                },
                {
                    fname: 'Mohamed',
                    lname: 'Behi',
                    position: 'Vice President (Training & Education)',
                    bio: '' +
                    'Mohamed is a passionate advocate for disability rights and accessibility. He has been involved in the disability community for many years, working with various organizations to promote inclusion and accessibility. ',
                    email: 'mohamed@bridgemanaccessible.com',
                    phone: '+1 (431) 478-1655 Ext. 201'
                }
                //{
                //    fname: 'John',
                //    lname: 'Oberton',
                //    position: 'Infrastructure Developer (Project by Project basis/Contract)'
                //},
                //{
                //    fname: 'Trevor',
                //    lname: 'Xie',
                //    position: 'Designer (Project by Project basis/Contract)'
                //}
            ]
        };
    }
}