Skip to content
Merged
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
83 changes: 83 additions & 0 deletions Application/app/contact/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
"use client";

import { useState } from 'react';

import {
Box, Container, Button, Field, Fieldset, Input, Stack, Textarea
} from '@chakra-ui/react';

export default function Contact() {
const [isLoading, setIsLoading] = useState(false);

const handleSubmit = async () => {
setIsLoading(true);

// Replace this delay with your real submit logic (API call, form action, etc.).
await new Promise((resolve) => setTimeout(resolve, 1500));

setIsLoading(false);
};

return (

<Box py={{ base: 10, md: 16 }} bg='gray.50' minH='100vh'>

<Container maxW='lg'>

<Box bg='white' rounded='xl' shadow='md' borderWidth='1px' borderColor='gray.200' p={{ base: 6, md: 8 }}>

<Fieldset.Root size="lg" mx='auto' maxW="md" color='black' textAlign="center">

<Stack gap={2} textAlign='center' mb={6}>

<Fieldset.Legend fontSize='xl' color='black' fontWeight='bold'>
Contact details
</Fieldset.Legend>

<Fieldset.HelperText color='gray.600'>
Please provide your contact details below and we will reach out to you soon!
</Fieldset.HelperText>
</Stack>

<Fieldset.Content>
<Stack gap={4}>
<Field.Root>
<Field.Label fontWeight='semibold'>Name</Field.Label>
<Input name="name" placeholder='Name' />
</Field.Root>

<Field.Root>
<Field.Label fontWeight='semibold'>Email address</Field.Label>
<Input name="email" type="email" placeholder='Email' />
</Field.Root>

<Field.Root>
<Field.Label fontWeight='semibold'>Major and Concentration</Field.Label>
<Input name="major" placeholder='Major' />
</Field.Root>

<Field.Root>
<Field.Label fontWeight='semibold'>What are some of your interests?</Field.Label>
<Input name="interests" placeholder='Front-end, Back-end, learning Python' />
</Field.Root>

<Field.Root>
<Field.Label fontWeight='semibold'>Any questions for the club?</Field.Label>
<Textarea h='110px' name="questions" placeholder='Type here your questions here' />
</Field.Root>



<Button bg="blue.900" _hover={{ bg: 'green' }} loading={isLoading} loadingText="Sending..."
onClick={handleSubmit}
color='white' type="submit" size='lg' w='full' mt={2} >
Submit
</Button>
</Stack>
</Fieldset.Content>
</Fieldset.Root>
</Box>
</Container>
</Box>
);
}
1 change: 1 addition & 0 deletions Application/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default function Navbar() {
<Link href="/about" className="hover:text-blue-400 transition-colors">About Us</Link>
<Link href="/faq" className="hover:text-blue-400 transition-colors">FAQ</Link>
<Link href="/session" className="hover:text-blue-400 transition-colors">Recordings</Link>
<Link href="/contact" className="hover:text-blue-400 transition-colors">Contact</Link>
</HStack>
</Flex>
</Box>
Expand Down