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AAA,QAAOyD,EAACvD,WAAA,CAAAC,YAAA,oBAAAC,YAAA,gBAARJ,CAAQ,0D,kCEhGzB,MAbkB0D,IAEdtE,EAAAA,cAACuE,EAAAA,EAAM,KACLvE,EAAAA,cAACwE,EAAAA,GAAM,MACPxE,EAAAA,cAACyE,EAAAA,EAAgB,CAAC9D,MAAO,YACzBX,EAAAA,cAAC0E,EAAAA,GAAI,KACH1E,EAAAA,cAAC2E,EAAO,OAEV3E,EAAAA,cAAC4E,EAAAA,GAAM,M","sources":["webpack://madina-masjid-darwen/./src/images/backgroundHeader.jpeg","webpack://madina-masjid-darwen/./src/components/HeaderBackground.jsx","webpack://madina-masjid-darwen/./src/components/Template.jsx","webpack://madina-masjid-darwen/./src/components/Hadiths.jsx","webpack://madina-masjid-darwen/./src/images/hadithIcon.png","webpack://madina-masjid-darwen/./src/pages/hadith.js"],"sourcesContent":["export default __webpack_public_path__ + \"static/backgroundHeader-0f3cf6c46e3737a290a8d626f73cbe7f.jpeg\";","import React from \"react\";\nimport styled from \"styled-components\";\nimport backgroundImage from \"../images/backgroundHeader.jpeg\";\n\nconst HeaderBackground = (props) => {\n return (\n \n {props.title}\n \n );\n};\n\nexport default HeaderBackground;\n\nconst Title = styled.h1`\n font-size: 60px;\n margin: 0;\n color: #fff;\n`;\n","import React, { useState, useEffect } from \"react\";\nimport styled from \"styled-components\";\nimport Http from \"../helpers/Http\";\nimport newsImage from \"../images/news.png\";\nimport eventImage from \"../images/hadithIcon.png\";\nconst dateFormat = require(\"dateformat\");\n\nconst Template = (props) => {\n return (\n \n \n \n );\n};\n\nexport default Template;\n\nconst Events = ({ data, image, type }) => {\n return (\n \n {data.map((item, key) => (\n \n \n \n \n {item.title.substring(0, 30) + \"...\"}\n {type === \"event\" ? (\n

\n on {dateFormat(item.eventDate, \"mmmm dS, yyyy\")}\n

\n ) : null}\n \n \n \n \n \n \n
\n \n
\n ))}\n
\n );\n};\n\nconst Button = styled.button`\n position: absolute;\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 bottom: 0;\n display: flex;\n justifycontent: center;\n alignitems: center;\n`;\n\nconst LiveSessionContainer = styled.div``;\n\nconst LiveSessionImage = styled.img`\n width: 100%;\n height: 254px;\n object-fit: cover;\n object-position: center;\n`;\n\nconst LiveSessionTitle = styled.h2`\n font-size: 30px;\n text-transform: uppercase;\n margin: 10px 0;\n @media (max-width: 480px) {\n font-size: 24px;\n }\n`;\n\nconst LiveSessionTime = styled.time`\n font-size: 14px;\n`;\n\nconst LiveSessionCard = styled.div`\n &:hover {\n ${LiveSessionTitle} {\n cursor: pointer;\n color: var(--base-color);\n }\n }\n`;\nconst NewsTitle = styled.p`\n font-size: 16px;\n font-weight: bold;\n`;\nconst NewsDate = styled.time``;\n\nconst NewsCard = styled.div`\n min-height: 250px;\n position: relative;\n border-bottom: 1px solid #fff;\n padding: 5px 20px;\n &:last-child {\n border-bottom: 0;\n }\n &:hover {\n ${NewsTitle} {\n cursor: pointer;\n color: var(--base-color);\n }\n }\n`;\n\nconst NewsContainer = styled.div`\n background-color: rgba(0, 0, 0, 0.025);\n padding: 14px 20px;\n`;\n\nconst Container = styled.div`\n background-color: #fff;\n padding: 32px 4%;\n`;\n\nconst Title = styled.h2`\n margin: 0;\n text-align: center;\n text-transform: uppercase;\n font-size: 36px;\n @media (max-width: 480px) {\n font-size: 30px;\n }\n`;\n\nconst Grid = styled.div`\n max-width: 1024px;\n margin: 4% auto;\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n grid-gap: 40px;\n\n @media (max-width: 768px) {\n grid-template-columns: 1fr;\n }\n`;\n","import React, { useState, useEffect } from \"react\";\nimport styled from \"styled-components\";\nimport hadithIcon from \"../images/hadithIcon.png\";\nimport Http from \"../helpers/Http\";\nimport Template from \"./Template\"\nconst Service = () => {\n const [services, setServices] = useState([]);\n useEffect(() => {\n try {\n Http.get(\"content/type/1\")\n .then((response) => {\n console.log(\"services: \", response.data.contents);\n setServices(response.data.contents);\n })\n .catch((error) => {\n console.log(error);\n });\n } catch (error) {\n console.log(error);\n }\n }, []);\n\n return (\n \n