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,KACLtC,EAAAA,cAACuC,EAAAA,GAAM,MACPvC,EAAAA,cAACwC,EAAAA,EAAgB,CAACC,MAAO,aACzBzC,EAAAA,cAAC0C,EAAAA,GAAI,KACH1C,EAAAA,cAAC2C,EAAO,OAEV3C,EAAAA,cAAC4C,EAAAA,GAAM,M","sources":["webpack://madina-masjid-darwen/./src/components/AskImam.jsx","webpack://madina-masjid-darwen/./src/pages/askimam.js"],"sourcesContent":["import React, { useState } from \"react\";\nimport styled from \"styled-components\";\nimport Iframe from \"react-iframe\";\nimport { TextField } from \"@material-ui/core\";\nimport { useGoogleReCaptcha } from \"react-google-recaptcha-v3\";\n\nconst AskImam = (props) => {\n const [contactState, setContactState] = useState({\n name: \"\",\n email: \"\",\n subject: \"\",\n message: \"\",\n });\n const { executeRecaptcha } = useGoogleReCaptcha();\n const [token, setToken] = useState(\"\");\n\n const onNameChange = (event) => {\n setContactState({ name: event.target.value });\n };\n\n const onEmailChange = (event) => {\n setContactState({ email: event.target.value });\n };\n\n const onSubjectChange = (event) => {\n setContactState({ subject: event.target.value });\n };\n\n const onMsgChange = (event) => {\n setContactState({ message: event.target.value });\n };\n\n const submitEmail = async (e) => {\n e.preventDefault();\n // axios({\n // method: \"POST\",\n // url:\"/send\",\n // data: this.state\n // }).then((response)=>{\n // if (response.data.status === 'success'){\n // alert(\"Message Sent.\");\n // this.resetForm()\n // }else if(response.data.status === 'fail'){\n // alert(\"Message failed to send.\")\n // }\n // })\n };\n\n const resetForm = () => {\n setContactState({ name: \"\", email: \"\", subject: \"\", message: \"\" });\n };\n\n return (\n \n
\n

\n

‎السلام عليكم ورحمة الله وبركاته

\n

طَلَبُ الْعِلْمِ فَرِيضَةٌ عَلَى كُلِّ مُسْلِمٍ

\n

\n “Seeking knowledge is an obligation upon every Muslim.” (Source: Sunan\n Ibn Mājah 224)\n

\n

\n In order to fulfil our duty to Allah we have a duty to seek knowledge.\n Learning is a life long activity and the seeking of knowledge is\n considered a blessed activity in the eyes of Allah.\n

\n

\n Whether you are someone who is interested in the beautiful religion of\n Islam, or some striving to learn more about Deen, we are here to\n answer your questions.\n

\n

\n This service allows you to ask questions regarding all aspects of\n Islam for individuals of all backgrounds.\n

\n

\n

\n ASK A QUESTION\n

\n
\n
\n
\n
\n
\n
\n
\n \n \n
\n \n \n
\n
\n
\n
\n \n
\n \n \n
\n
\n
\n \n \n
\n );\n};\n\nexport default AskImam;\n\nconst Center = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nconst Container = styled.div`\n background-color: #fff;\n padding: 4% 4% 4% 4%;\n`;\nconst GridWraper = styled.div`\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n max-width: 1024px;\n margin: auto;\n grid-column-gap: 50px;\n padding: 0 10px;\n\n @media (max-width: 960px) {\n grid-template-columns: auto 1fr auto;\n }\n`;\n\nconst DonationImage = styled.div`\n ${({ src }) =>\n src &&\n `\n background-image: url(${src});\n background-size: 185%;\n background-position: left bottom;\n border-radius: 4px;\n `}\n`;\n\nconst Button = styled.button`\n padding: 10px;\n background: var(--base-color);\n border: 0;\n border-radius: 4px;\n color: #fff;\n margin-top: 15px;\n cursor: pointer;\n`;\n\nconst Title = styled.h2`\n margin: 0;\n text-align: center;\n text-transform: uppercase;\n font-size: 36px;\n\n @media (max-width: 480px) {\n font-size: 30px;\n }\n`;\n","import * as React from \"react\";\nimport Layout from \"../components/Layout\";\nimport Footer from \"../components/Footer\";\nimport AskImam from \"../components/AskImam\";\nimport { Main } from \"../styles\";\nimport HeaderBackground from \"../components/HeaderBackground\";\nimport Header from \"../components/Header\";\n\nconst IndexPage = () => {\n return (\n \n
\n \n
\n \n
\n