PageSourceSearch

https://weathersafe.co.uk/static/js/9481.7358d3f8.chunk.js

js weathersafe.co.uk collected 2026-10-04 13:25:24 UTC 9,738 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkNioLandReact=self.webpackChunkNioLandReact||[]).push([[9481],{9481:(e,t,i)=>{i.r(t),i.d(t,{default:()=>b});var r=i(5043),n=i(3519),o=i(1072),s=i(8602),a=i(3216),l=i(3107),d=i(7497),c=i(579);const m="'Inter', sans-serif",f="#28a745",h={display:"block",fontFamily:m,fontWeight:600,fontSize:"0.85rem",letterSpacing:"0.06em",textTransform:"uppercase",color:f,marginBottom:"0.75rem"},g={fontFamily:m,fontWeight:700,fontSize:"clamp(1.8rem, 3vw, 2.6rem)",letterSpacing:"-0.02em",color:"#000",marginBottom:"1rem"},p={fontFamily:m,fontWeight:400,fontSize:"1.1rem",lineHeight:1.7,color:"#444"};function x(e){let{eyebrowText:t,heading:i,subheading:o,features:s,reversed:a=!1}=e;const l=(0,r.useRef)(null),d=(0,r.useRef)([]),[f,x]=(0,r.useState)(0),[u,y]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=()=>{const e=d.current[0];if(!e)return;const t=e.getBoundingClientRect();y(t.top<.7*window.innerHeight)};return window.addEventListener("scroll",e,{passive:!0}),e(),()=>window.removeEventListener("scroll",e)}),[]),(0,r.useEffect)((()=>{const e=()=>{const e=l.current;if(!e)return;const t=e.getBoundingClientRect();if(t.bottom<0||t.top>window.innerHeight)return;let i=0,r=1/0;d.current.forEach(((e,t)=>{if(!e)return;const n=e.getBoundingClientRect(),o=n.top+n.height/2,s=.45*window.innerHeight,a=Math.abs(o-s);a<r&&(r=a,i=t)})),x(i)};return window.addEventListener("scroll",e,{passive:!0}),e(),()=>window.removeEventListener("scroll",e)}),[s]),(0,c.jsx)("div",{ref:l,children:(0,c.jsxs)(n.A,{children:[(0,c.jsxs)("div",{style:{paddingTop:"2rem",marginBottom:"4rem"},children:[t&&(0,c.jsx)("span",{style:h,children:t}),(0,c.jsx)("h2",{style:{...g,fontSize:"clamp(2.2rem, 4vw, 3.2rem)",marginBottom:o?"0.75rem":"0"},children:i}),o&&(0,c.jsx)("p",{style:{...p,fontSize:"1rem",maxWidth:"500px",marginBottom:0,color:"#000"},children:o})]}),(0,c.jsxs)("div",{style:{display:"flex",gap:"4rem",position:"relative",flexDirection:a?"row-reverse":"row"},children:[(0,c.jsx)("div",{style:{flex:"0 0 40%"},children:s.map(((e,t)=>(0,c.jsxs)("div",{ref:e=>d.current[t]=e,style:{minHeight:"80vh",display:"flex",flexDirection:"column",justifyContent:"center",opacity:f===t?1:.25,transition:"opacity 0.4s ease"},children:[(0,c.jsx)("h3",{style:{fontFamily:m,fontWeight:700,fontSize:"2rem",letterSpacing:"-0.02em",color:"#000",marginBottom:"0.75rem"},children:e.title}),(0,c.jsx)("p",{style:{...p,fontSize:"1rem",maxWidth:"420px",color:"#000"},children:e.desc})]},t)))}),(0,c.jsx)("div",{style:{flex:"0 0 38%",minWidth:0,marginLeft:a?"0":"auto",marginRight:a?"auto":"1rem"},children:(0,c.jsx)("div",{style:{position:"sticky",top:"180px",height:"clamp(500px, 72vh, 780px)",borderRadius:"8px",overflow:"hidden",background:"#fff"},children:s.map(((e,t)=>(0,c.jsx)("img",{src:e.img,alt:e.title,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",clipPath:u&&f===t?"inset(0 0 0 0)":a?"inset(0 100% 0 0)":"inset(0 0 0 100%)",transition:"clip-path 0.6s ease",zIndex:f===t?2:1},loading:"lazy"},t)))})})]})]})})}function u(){const[e,t]=(0,r.useState)(!1),i=(0,r.useRef)(null);(0,r.useEffect)((()=>{function e(e){i.current&&!i.current.contains(e.target)&&t(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[]);return(0,c.jsxs)("div",{ref:i,style:{position:"relative",display:"inline-block"},children:[(0,c.jsxs)("div",{onClick:()=>t((e=>!e)),style:{display:"inline-flex",alignItems:"center",gap:"0.4rem",fontFamily:m,fontWeight:600,fontSize:"1rem",color:"#000",border:"1px solid #d0d0d0",borderRadius:"999px",padding:"0.6rem 0.75rem 0.6rem 0.6rem",background:"#fff",cursor:"pointer",userSelect:"none",whiteSpace:"nowrap"},children:[(0,c.jsx)("svg",{width:"15",height:"17",viewBox:"0 0 12 14",fill:"none",style:{flexShrink:0},children:(0,c.jsx)("path",{d:"M1 1L1 11L4 8.5L5.5 13L7 12.5L5.5 8H9.5L1 1Z",fill:"#fff",stroke:"#28a745",strokeWidth:"1",strokeLinejoin:"round"})}),"Optimise \u2014 Resilience",(0,c.jsx)("svg",{width:"10",height:"6",viewBox:"0 0 10 6",fill:"none",style:{flexShrink:0,marginLeft:"0.1rem",transform:e?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"},children:(0,c.jsx)("path",{d:"M1 1L5 5L9 1",stroke:"#000",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e&&(0,c.jsx)("div",{style:{position:"absolute",top:"calc(100% + 8px)",left:0,minWidth:"220px",background:"#fff",border:"1px solid #e0e0e0",borderRadius:"8px",boxShadow:"0 8px 32px rgba(0,0,0,0.10)",padding:"0.5rem",zIndex:100},children:[{label:"Climate Resilience",href:"#climate-resilience"}].map(((e,i)=>(0,c.jsx)("a",{href:e.href,onClick:i=>{i.preventDefault(),t(!1);const r=document.querySelector(e.href);r&&r.scrollIntoView({behavior:"smooth",block:"start"})},style:{display:"block",padding:"0.6rem 0.75rem",fontFamily:m,fontWeight:500,fontSize:"0.9rem",color:"#333",textDecoration:"none",borderRadius:"6px",transition:"background 0.15s ease"},onMouseEnter:e=>e.currentTarget.style.background="#f5f5f5",onMouseLeave:e=>e.currentTarget.style.background="transparent",children:e.label},i)))})]})}const y=[{title:"Improved soil biology",desc:"Composting, worm tea, biochar. Soil health improving season on season.",img:"images/cherry-pulp-composting.webp"},{title:"Effective water management",desc:"Erosion channels, fishbone irrigation, mulching. Farms hold water when they need to.",img:"images/blog/carbon1.webp"},{title:"Improved shade and biodiversity",desc:"Banana trees reduce heat stress, provide income, and protect coffee from extreme weather.",img:"images/demo-farm-person.webp"},{title:"Optimised weather models",desc:"Hyper-local weather models refined at origin. Not generic forecasts.",img:"images/blog/deforest.webp"}];const b=function(){return function(){const{hash:e}=(0,a.zy)();(0,r.useEffect)((()=>
1{if(e){const t=document.querySelector(e);t&&setTimeout((()=>t.scrollIntoView({behavior:"smooth",block:"start"})),100)}}),[e])}(),(0,c.jsxs)(l.A,{title:"Climate Resilience",description:"Soil biology, water management, shade and biodiversity practices that compound season on season \u2014 making coffee farms more resilient to climate stress at origin.",children:[(0,c.jsx)("section",{style:{paddingTop:"10rem",paddingBottom:"4rem",background:"#fff"},children:(0,c.jsx)(n.A,{children:(0,c.jsxs)(o.A,{className:"align-items-start g-0",children:[(0,c.jsx)(s.A,{xs:"auto",style:{paddingTop:"1rem",marginLeft:"0rem"},children:(0,c.jsx)(u,{})}),(0,c.jsxs)(s.A,{style:{paddingLeft:"21rem"},children:[(0,c.jsxs)("h1",{style:{fontFamily:m,fontWeight:800,fontSize:"clamp(3.5rem, 7vw, 6rem)",lineHeight:1.05,letterSpacing:"-0.04em",color:"#000",marginBottom:"1.5rem"},children:["Building climate",(0,c.jsx)("br",{}),"resilient",(0,c.jsx)("br",{}),(0,c.jsx)("span",{style:{color:f},children:"farms."})]}),(0,c.jsx)("p",{style:{fontFamily:m,fontWeight:400,fontSize:"1.35rem",lineHeight:1.6,color:"#555",maxWidth:"860px",margin:"0 0 1.05rem"},children:"Better soil, better water management, better shade \u2014 the farm gets stronger every season."}),(0,c.jsxs)("div",{style:{display:"flex",gap:"1rem",flexWrap:"wrap"},children:[(0,c.jsx)("a",{href:"/contact-us-solution",style:{fontFamily:m,fontWeight:600,fontSize:"0.95rem",color:"#fff",background:f,borderRadius:"6px",padding:"0.75rem 1.75rem",textDecoration:"none"},children:"Get started"}),(0,c.jsx)("a",{href:"/how-it-works",style:{fontFamily:m,fontWeight:600,fontSize:"0.95rem",color:"#000",background:"#fff",border:"1px solid #d0d0d0",borderRadius:"6px",padding:"0.75rem 1.75rem",textDecoration:"none"},children:"How it works"})]})]})]})})}),(0,c.jsx)("section",{style:{paddingBottom:"5rem"},children:(0,c.jsx)(n.A,{children:(0,c.jsx)("div",{className:"overflow-hidden",style:{height:"600px",borderRadius:"4px"},children:(0,c.jsx)("img",{src:"images/demo-farm.webp",alt:"Climate resilience",style:{width:"100%",height:"100%",objectFit:"cover"},loading:"lazy"})})})}),(0,c.jsx)("section",{id:"climate-resilience",style:{paddingTop:"1rem",paddingBottom:"5rem"},children:(0,c.jsx)(x,{eyebrowText:"",heading:(0,c.jsxs)(c.Fragment,{children:["Practices that",(0,c.jsx)("br",{}),"compound."]}),subheading:"Better soil, better water management, better shade \u2014 the farm gets stronger every season.",features:y})}),(0,c.jsx)(d.Cu,{className:"py-10 py-lg-90",style:{borderTop:"1px solid #f0f0f0",borderBottom:"1px solid #f0f0f0",paddingTop:"7rem",paddingBottom:"7rem"},children:(0,c.jsx)(d.Cu.Content,{children:(0,c.jsxs)(o.A,{className:"align-items-start",children:[(0,c.jsxs)(s.A,{lg:"5",style:{marginTop:"-0.75rem"},children:[(0,c.jsxs)("h2",{style:{fontFamily:m,fontWeight:800,fontSize:"clamp(2.2rem, 4vw, 3.5rem)",letterSpacing:"-0.03em",lineHeight:1.05,color:"#000",marginBottom:"2rem"},children:["Farms that get",(0,c.jsx)("br",{}),"stronger."]}),(0,c.jsxs)("div",{style:{display:"flex",gap:"1rem",flexWrap:"wrap"},children:[(0,c.jsx)("a",{href:"/contact-us-solution",style:{fontFamily:m,fontWeight:600,fontSize:"0.95rem",color:"#fff",background:f,borderRadius:"6px",padding:"0.75rem 1.75rem",textDecoration:"none"},children:"Get started"}),(0,c.jsx)("a",{href:"/contact-us-solution",style:{fontFamily:m,fontWeight:600,fontSize:"0.95rem",color:"#000",background:"#fff",border:"1px solid #d0d0d0",borderRadius:"6px",padding:"0.75rem 1.75rem",textDecoration:"none"},children:"Talk to our team"})]})]}),(0,c.jsx)(s.A,{lg:"5",className:"offset-lg-2",children:(0,c.jsx)("p",{style:{fontFamily:m,fontWeight:400,fontSize:"1.55rem",lineHeight:1.4,color:"#333",marginBottom:0},children:"Practices that compound season on season. Soil, water, shade, biodiversity \u2014 long-term viability built from the ground up."})})]})})})]})}}}]);
2//# sourceMappingURL=9481.7358d3f8.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.