-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathContact.jsx
More file actions
222 lines (212 loc) · 7.26 KB
/
Copy pathContact.jsx
File metadata and controls
222 lines (212 loc) · 7.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
// import React from 'react';
// import {
// Box,
// Flex,
// Text,
// Heading,
// FormControl,
// FormLabel,
// Input,
// Textarea,
// Button,
// ChakraProvider,
// Icon,
// } from '@chakra-ui/react';
// import { MdLocationOn, MdPhone, MdEmail } from 'react-icons/md';
// import { Link } from 'react-router-dom';
// function Contact() {
// const address = 'Apollo Hospitals DRDO, DMRL Cross Rd, Kanchan Bagh, Hyderabad, Telangana 500058';
// const googleMapsUrl = `https://www.google.com/maps/place/${encodeURIComponent(address)}`;
// return (
// <ChakraProvider>
// <Flex flexDirection={['column', 'row']} minHeight="100vh">
// <Box
// bgImage="https://admin.risingkashmir.com/Source/News/668fba0a-9927-48c0-a950-4801e4868ad8.png"
// bgSize="cover"
// bgPosition="center"
// py={8}
// // marginTop={20}
// // marginBottom={20}
// // marginLeft={20}
// px={4}
// textAlign="center"
// flex={['1', '1/2']}
// opacity="0.7"
// >
// <Flex flexDirection="column" alignItems="center" color="white">
// <Box mb={6} >
// <Icon as={MdLocationOn} fontSize="3xl" mb={2} color="black" />
// </Box>
// <Text fontSize="xl" mb={2} color="black" fontWeight="600">
// Address
// </Text>
// <Link href={googleMapsUrl} isExternal color="black" fontWeight="bold">
// <Text fontSize="lg">{address}</Text>
// </Link>
// </Flex>
// <Flex flexDirection="column" alignItems="center" color="white" mt={4}>
// <Box mb={6}>
// <Icon as={MdPhone} fontSize="3xl" mb={2} color="black" />
// </Box>
// <Text fontSize="xl" mb={2} color="black">
// Lets Talk
// </Text>
// <Text fontSize="lg">+91 88812 36879</Text>
// </Flex>
// <Flex flexDirection="column" alignItems="center" color="white" mt={4}>
// <Box mb={6}>
// <Icon as={MdEmail} fontSize="3xl" mb={2} color="black" />
// </Box>
// <Text fontSize="xl" mb={2} color="black">
// General Support
// </Text>
// <Text fontSize="lg">contact@example.com</Text>
// </Flex>
// </Box>
// <Box flex={['1', '1/2']} p={4} borderWidth="1px" borderRadius="md" boxShadow="md" marginTop={20}
// marginBottom={20}
// marginRight={20}>
// <Heading as="h1" size="lg" textAlign="center" mb={4}>
// Send Us A Message
// </Heading>
// <form>
// <FormControl id="first-name" isRequired mb={4}>
// <FormLabel>First Name</FormLabel>
// <Input type="text" placeholder="First name" />
// </FormControl>
// <FormControl id="last-name" isRequired mb={4}>
// <FormLabel>Last Name</FormLabel>
// <Input type="text" placeholder="Last name" />
// </FormControl>
// <FormControl id="email" isRequired mb={4}>
// <FormLabel>Email</FormLabel>
// <Input type="email" placeholder="Eg. example@email.com" />
// </FormControl>
// <FormControl id="phone" mb={4}>
// <FormLabel>Phone Number</FormLabel>
// <Input type="tel" placeholder="Eg. +1 800 000000" />
// </FormControl>
// <FormControl id="message" isRequired mb={4}>
// <FormLabel>Message</FormLabel>
// <Textarea placeholder="Write us a message" />
// </FormControl>
// <Button type="submit" colorScheme="blue">
// Send Message
// </Button>
// </form>
// </Box>
// </Flex>
// </ChakraProvider>
// );
// }
// export default Contact;
import React from 'react';
import {
Box,
Flex,
Text,
Heading,
Icon,
Link,
ChakraProvider,
} from '@chakra-ui/react';
import { MdLocationOn, MdPhone, MdEmail } from 'react-icons/md';
function Contact() {
const address = 'Apollo Hospitals DRDO, DMRL Cross Rd, Kanchan Bagh, Hyderabad, Telangana - 500058';
const googleMapsUrl = `https://www.google.com/maps/place/${encodeURIComponent(
address
)}`;
return (
<ChakraProvider>
<Flex
flexDirection="row"
// minHeight="50vh"
bgImage="https://admin.risingkashmir.com/Source/News/668fba0a-9927-48c0-a950-4801e4868ad8.png"
bgSize="cover"
bgPosition="center"
opacity="0.7"
>
{/* First Part */}
<Box
py={8}
flex={['1', '1/3']}
bg="rgba(255, 255, 255, 0.7)"
transition="background-color 0.5s ease-in-out"
_hover={{
bg: 'rgba(255, 255, 255, 0.9)',
}}
margin="20px"
borderRadius="md"
boxShadow="lg"
>
<Flex flexDirection="column" alignItems="center" color="black">
<Box mb={6}>
<Icon as={MdLocationOn} fontSize="3xl" mb={2} color="black" />
</Box>
<Text fontSize="xl" mb={2} fontWeight="600">
Address
</Text>
<Link href={googleMapsUrl} isExternal color="black" fontWeight="bold">
<Text fontSize="lg" marginLeft={10} marginRight={10} textAlign={'center'}>{address}</Text>
</Link>
</Flex>
</Box>
{/* Second Part */}
<Box
py={8}
flex={['1', '1/3']}
bg="rgba(255, 255, 255, 0.7)"
transition="background-color 0.5s ease-in-out"
_hover={{
bg: 'rgba(255, 255, 255, 0.9)',
}}
margin="20px"
borderRadius="md"
boxShadow="lg"
>
<Flex flexDirection="column" alignItems="center" color="black">
<Box mb={6}>
<Icon as={MdPhone} fontSize="3xl" mb={2} color="black" />
</Box>
<Text fontSize="xl" mb={2} fontWeight="600">
Lets Talk
</Text>
<a href="tel:+918881236879" style={{ textDecoration: 'none' }}>
<Text fontSize="lg" cursor="pointer">
+91 88812 36879
</Text>
</a>
</Flex>
</Box>
{/* Third Part */}
<Box
py={8}
flex={['1', '1/3']}
bg="rgba(255, 255, 255, 0.7)"
transition="background-color 0.5s ease-in-out"
_hover={{
bg: 'rgba(255, 255, 255, 0.9)',
}}
margin="20px"
borderRadius="md"
boxShadow="lg"
>
<Flex flexDirection="column" alignItems="center" color="black">
<Box mb={6}>
<Icon as={MdEmail} fontSize="3xl" mb={2} color="black" />
</Box>
<Text fontSize="xl" mb={2} fontWeight="600">
General Support
</Text>
<a href="mailto:contact@example.com" style={{ textDecoration: 'none' }}>
<Text fontSize="lg" cursor="pointer">
contact@example.com
</Text>
</a>
</Flex>
</Box>
</Flex>
</ChakraProvider>
);
}
export default Contact;