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

Added Contact page #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
47 changes: 47 additions & 0 deletions components/common/Contact.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import React from 'react'
import { Container, Spacer, Show, Hide, Button, Flex, Image, VStack, Heading, Input, InputLeftAddon, InputRightAddon, Stack, InputGroup, Box } from '@chakra-ui/react'



const Contact = () => {
return (

<Flex bg='#ADD8E6' borderWidth="1px"
borderRadius="lg"
boxShadow="1px 1px 3px rgba(0,0,0,0.3)" w={1500} p={4} m="20px 20px auto" >

<Box flex='1' bg='white' pt='100' mt='' w='600px' >
<VStack alignItems='center' spacing={15}>
<Heading color='black' mt='-50' as='h1' fontSize='60px' >Contact Us</Heading>
<Input type='text' h='55px' borderRadius='10px' w='500px' bg='#78A4E7' placeholder='Name' />
<Input type='text' h='55px' borderRadius='10px' bg='#78A4E7' w='500px' placeholder='Query' />
<Input type='email' h='55px' borderRadius='10px' bg='#78A4E7' w='500px' placeholder='Email' />
<Button h='60px' borderRadius='10px' w='210px' bg='#3A6EF2' fontSize='40' textColor={'white'}>Submit </Button>

</VStack>

</Box>
<Hide below='1000px'>
<Box flex='1' bg='white' w='600px' h='500px '>

<Image boxSize='500' style={{ borderRadius: '30px' }} src='https://img.freepik.com/free-vector/flat-design-illustration-customer-support_23-2148887720.jpg?w=740&t=st=1670581927~exp=1670582527~hmac=cbb57146b39ca75b5977e45d1bc68d16b8673fc8f0b07edc065b4a9c494b9cc8'></Image>

</Box>

</Hide>



</Flex>








);
};

export default Contact;
18 changes: 18 additions & 0 deletions components/common/NewsLetter.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import react from 'react'
import { Container, Spacer, Show, Hide, Button, Flex, Image, VStack, Heading, Input, InputLeftAddon, InputRightAddon, Stack, InputGroup, Box } from '@chakra-ui/react'

const NewsLetter = () =>{
return(
<VStack ml='500'w='700px' mt='10'pt='5' h='150px' borderRadius='10px' bg='#78A4E7' alignItems='center' spacing={15}>

{/* <Box ml='100'w='510px' h='70px' bg='black'> */}
<Input type='email' h='55px' m='5' borderRadius='10px' w='500px' bg='white' placeholder='Email' />
<Button h='60px' borderRadius='10px' w='210px' bg='white' fontSize='40' textColor={'blue'}>Subscribe </Button>

{/* </Box> */}
</VStack>

);
};

export default NewsLetter;
5 changes: 4 additions & 1 deletion components/layouts/DefaultLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { Container } from '@chakra-ui/react';
import React from 'react';
import Footer from '../common/Footer';
import Navbar from '../common/Navbar';

import Contact from '../common/Contact';
import NewsLetter from '../common/NewsLetter';
type Props = {
children: React.ReactNode;
};
Expand All @@ -12,6 +13,8 @@ const DefaultLayout = ({ children }: Props) => {
<Container maxW="1200px">
<Navbar />
{children}
<Contact/>
<NewsLetter/>
<Footer />
</Container>
);
Expand Down
Loading