text: (this.webpackJsonpnotes=this.webpackJsonpnotes||[]).push([[0],{11:function(e,t,a){},12:function(e,t,a){},14:function(e,t,a){"use strict";a.r(t);var i=a(2),n=a.n(i),r=a(6),s=a.n(r),c=(a(11),a(12),a(3)),l=a(0);function o(e){return Object(l.jsx)(l.Fragment,{children:Object(l.jsxs)("button",{onClick:e.click,className:e.className,style:{padding:"".concat(e.height," 25px"),color:"".concat(e.color),backgroundColor:"".concat(e.bgcolor),fontWeight:"500",border:"none",minWidth:"".concat(e.minWidth),position:"".concat(e.pos),right:"".concat(e.right),outline:"none",margin:"".concat(e.margin)},children:[Object(l.jsx)("span",{children:Object(l.jsx)("i",{class:e.span,"aria-hidden":"true"})})," ",e.name]})})}function d(){var e=Object(i.useState)("Late Night at Office?"),t=Object(c.a)(e,2),a=t[0],n=t[1],r=Object(i.useState)(0),s=Object(c.a)(r,2),o=s[0],d=s[1],h=["Hungry?","Movie marathon?","Unexpected guests?","Late Night at Office?","Cooking gone wrong?","Game Night?"];return Object(i.useEffect)((function(){var e=setInterval((function(){d((o+1)%6)}),2e3);return function(){return clearInterval(e)}}),[a]),Object(i.useEffect)((function(){var e=setInterval((function(){console.log(o),n(h[o])}),1500);return function(){return clearInterval(e)}}),[o]),Object(i.useEffect)((function(){var e=setInterval((function(){document.getElementById("ani").classList.add("animate-bottom")}),0);return document.getElementById("ani").classList.remove("animate-bottom"),function(){return clearInterval(e)}}),[a]),Object(l.jsxs)("div",{className:"animation ",children:[Object(l.jsx)("h1",{id:"ani",className:"animate-bottom",children:a}),Object(l.jsx)("h2",{style:{fontSize:"24px",fontWeight:"400",color:"#80807d"},children:"Order food from favourite resturants near you."})]})}var h=a(1),g=a.n(h);function j(e){return Object(l.jsxs)("div",{style:{padding:"0px 10px 30px 35px"},children:[Object(l.jsx)("button",{className:"text-dark text-right bg-white border-0 p-0 m-0 ",onClick:function(){g()(".Slider").animate({width:"0%"},500),g()(".headerflex").removeClass("brightnesslow"),g()(".brightlow").removeClass("brightnesslow")},style:{fontSize:"45px",fontWeight:"300",outline:"none"},children:"\xd7"}),Object(l.jsxs)("div",{className:"loginflex",children:[Object(l.jsxs)("div",{children:[Object(l.jsx)("h2",{children:"Login"}),Object(l.jsxs)("p",{children:["or ",Object(l.jsx)("button",{id:"loginb",onClick:e.span,children:Object(l.jsx)("span",{children:"create a new account"})})]})]}),Object(l.jsx)("div",{children:Object(l.jsx)("img",{src:"login.png",alt:"",width:"110px"})})]}),Object(l.jsx)("input",{style:{width:"100%",backgroundColor:"rgba(255, 255, 255, 0.295)",padding:"25px 16px",margin:"35px 0px 20px 0px",minWidth:"220px",border:"1px solid #7c7875"},type:"text",placeholder:"Phone Number"}),Object(l.jsx)(o,{className:"loginbtn",height:"14px",bgcolor:"rgb(252, 128, 25)",color:"white",minWidth:"280px",name:"LOGIN"}),Object(l.jsx)("p",{style:{fontWight:"500",fontSize:"12px"},children:"By clicking on Login, I accept the Terms & Conditions & Privacy Policy"})]})}function x(e){return Object(l.jsxs)("div",{style:{padding:"0px 10px 0px 35px"},children:[Object(l.jsx)("button",{className:"text-dark bg-white border-0 p-0 m-0 ",onClick:function(){g()(".Slider1").animate({width:"0%"},500),g()(".headerflex").removeClass("brightnesslow"),g()(".brightlow").removeClass("brightnesslow")},style:{fontSize:"45px",fontWeight:"300",outline:"none"},children:"\xd7"}),Object(l.jsxs)("div",{className:"loginflex",children:[Object(l.jsxs)("div",{children:[Object(l.jsx)("h2",{children:"Sign up"}),Object(l.jsxs)("p",{children:["or ",Object(l.jsx)("button",{id:"signinb",onClick:e.span,children:Object(l.jsx)("span",{children:"login to your account"})})]})]}),Object(l.jsx)("div",{children:Object(l.jsx)("img",{src:"login.png",alt:"",width:"100px"})})]}),Object(l.jsxs)("div",{style:{border:"1px solid lightgray",marginTop:"25px",marginBottom:"15px"},children:[Object(l.jsx)("input",{style:{width:"100%",backgroundColor:"rgba(255, 255, 255, 0.295)",padding:"21px 16px",margin:"0px ",minWidth:"220px",border:"none",borderBottom:"1px solid lightgray"},type:"text",placeholder:"Phone Number"}),Object(l.jsx)("input",{style:{width:"100%",backgroundColor:"rgba(255, 255, 255, 0.295)",padding:"21px 16px",margin:"0px ",minWidth:"220px",border:"none",borderBottom:"1px solid lightgray"},type:"text",placeholder:"Name"}),Object(l.jsx)("input",{style:{width:"100%",backgroundColor:"rgba(255, 255, 255, 0.295)",padding:"21px 16px",margin:"0px ",minWidth:"220px",border:"none",borderBottom:"1px solid lightgray"},type:"email",placeholder:"Email"}),Object(l.jsx)("input",{style:{width:"100%",backgroundColor:"rgba(255, 255, 255, 0.295)",padding:"21px 16px",margin:"0px ",minWidth:"220px",border:"none"},type:"password",placeholder:"Password"})]}),"  ",Object(l.jsx)("p",{className:"Signinp",children:"Have a refferal code?"}),Object(l.jsx)(o,{className:"loginbtn",height:"14px",bgcolor:"rgb(252, 128, 25)",color:"white",minWidth:"280px",name:"Continue"}),Object(l.jsx)("p",{style:{fontWight:"500",fontSize:"12px",marginBottom:"0px"},children:"By creating an account, I accept the Terms & Conditions & Privacy Policy"})]})}function p(){var e=Object(i.useState)(1260),t=Object(c.a)(e,2),a=t[0],n=t[1],r=Object(i.useState)(545.6),s=Object(c.a)(r,2),h=s[0],p=s[1];window.addEventListener("resize",(function(){return n(window.innerWidth)})),window.addEventListener("resize",(function(){return p(document.getElementsByClassName("headerform")[0].clientHeight)}));var b=function(){g()(".Slider").width()>0?(g()(".Slider").animate({width:"0%"},700),g()(".headerflex").removeClass("brightnesslow"),g()(".brightlow").removeClass("brightnesslow")):(g()(".Slider").animate({width:"100%"},1e3),g()(".headerflex").addClass("brightnesslow"),g()(".brightlow").addClass("brightnesslow")),g()(".Slider1").width()>0&&g()(".Slider1").animate({width:"0%"},700)},m=function(){g()(".Slider1").width()>0?(g()(".Slider1").animate({width:"0%"},700),g()(".headerflex").removeClass("brightnesslow"),g()(".brightlow").removeClass("brightnesslow")):(g()(".Slider1").animate({width:"100%"},1e3),g()(".headerflex").addClass("brightnesslow"),g()(".brightlow").addClass("brightnesslow")),g()(".Slider").width()>0&&g()(".Slider").animate({width:"0%"},700)},u=Object(i.useRef)("a");Object(i.useEffect)((function(){var e=setInterval((function(){g()(".redDiv").slideUp("slow")}),6e3);return function(){clearInterval(e)}}));var O=function(){u.current.value="",document.getElementsByClassName("clear")[0].classList.add("hide"),document.getElementsByClassName("clear1")[0].classList.add("hide"),document.getElementsByClassName("clear1")[0].classList.remove("unhide")};return Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)("div",{className:"Slider h-200 bg-white",style:{position:"fixed",width:"0",maxWidth:"422px",overflowX:"hidden",zIndex:"101",bottom:"0px",height:"100%",right:"0px",filter:"brightness(1) contrast(1)"},children:Object(l.jsx)(j,{span:m})}),Object(l.jsx)("div",{className:"Slider1 h-200 bg-white",style:{position:"fixed",width:"0",maxWidth:"422px",overflowX:"hidden",zIndex:"101 ",bottom:"0px",height:"100%",right:"0px",filter:"brightness(1) contrast(1)"},children:Object(l.jsx)(x,{span:b})}),Object(l.jsxs)("div",{className:"headerflex",children:[Object(l.jsxs)("div",{className:"headerform",children:[Object(l.jsxs)("nav",{className:"logologinflex",children:[Object(l.jsx)("img",{src:"swiggy.png",alt:"",width:"30%"}),Object(l.jsxs)("div",{children:[Object(l.jsx)(o,{click:b,className:"login",height:"8px",bgcolor:"transparent",color:"black",name:"Login"}),Object(l.jsx)(o,{click:m,className:"sign",height:"8px",bgcolor:"black",color:"white",name:"Sign up"})]})]}),Object(l.jsx)(d,{}),Object(l.jsxs)("div",{className:"inputbtnflex",children:[Object(l.jsx)("input",{style:{width:"100%",backgroundColor:"rgba(255, 255, 255, 0.295)",padding:"16px",minWidth:"220px"},type:"text",placeholder:"Enter your delivery location",ref:u,onChange:function(){""!=u.current.value?(document.getElementsByClassName("clear")[0].classList.remove("hide"),document.getElementsByClassName("clear1")[0].classList.remove("hide"),document.getElementsByClassName("clear1")[0].classList.add("unhide"),document.getElementsByClassName("redDiv")[0].classList.add("hide"),console.log(document.getElementsByClassName("clear1")[0].classList)):(document.getElementsByClassName("clear")[0].classList.add("hide"),document.getElementsByClassName("clear1")[0].classList.add("hide"),document.getElementsByClassName("clear1")[0].classList.remove("unhide"))}}),Object(l.jsx)(o,{className:"locate",pos:"absolute",right:"160px",span:"fa fa-crosshairs",height:"10px",margin:"6px 20px",bgcolor:"transparent",color:"#80807d",minWidth:"110px",name:"Locate Me"}),Object(l.jsx)(o,{click:O,className:"clear hide locate",pos:"absolute",right:"160px",height:"10px",margin:"6px 20px",bgcolor:"#fa4a5b",color:"white",minWidth:"110px",name:"\xd7 clear"}),Object(l.jsx)(o,{click:O,className:"clear1 hide locate3",pos:"absolute",right:"160px",height:"10px",margin:"6px 20px",bgcolor:"#fa4a5b",color:"white",minWidth:"30px",name:"\xd7"}),Object(l.jsx)(o,{className:"locate2",pos:"absolute",right:"160px",span:"fa fa-crosshairs",height:"10px",margin:"6px 20px",bgcolor:"transparent",color:"#80807d",minWidth:"30px",name:""}),Object(l.jsx)(o,{click:function(){""==u.current.value?g()(".redDiv").slideDown("slow"):(g()(".redDiv").slideUp("slow"),window.open("https://www.swiggy.com/".concat(u.current.value),"_blank"))},className:"findfood",height:"16px",bgcolor:"rgb(252, 128, 25)",color:"white",minWidth:"140px",name:"FIND FOOD"})]}),Object(l.jsx)("div",{className:"redDiv hide",children:"Enter your delivery location"}),Object(l.jsx)("p",{className:"popular",children:"POPULAR CITIES IN INDIA"}),Object(l.jsxs)("div",{style:{paddingRight:"15px"},className:"popular alterflex",children:[Object(l.jsx)("div",{children:"Ahemdabad"}),Object(l.jsx)("div",{children:"Bangalore"}),Object(l.jsx)("div",{children:"Chennai"}),Object(l.jsx)("div",{children:" Delhi"}),Object(l.jsx)("div",{children:"Gurgaon"}),Object(l.jsx)("div",{children:" Hydreabad"}),Object(l.jsx)("div",{children:"Kolkata"}),Object(l.jsx)("div",{children:" Mumbai"}),Object(l.jsx)("div",{children:" Pune &"}),Object(l.jsx)("div",{children:" more."})]})]}),Object(l.jsx)("div",{className:"headerimg",children:Object(l.jsx)("img",{style:{opacity:"".concat(a/13,"%")},src:"Lunch1.jpg",alt:"",width:"550px",height:"".concat(h,"px")})})]})]})}function b(e){return Object(l.jsxs)("div",{style:{padding:"40px",paddingTop:"10px",maxWidth:"300px",minWidth:"200px"},children:[Object(l.jsx)("img",{style:{paddingBottom:"35px",display:"block",margin:"auto"},src:e.image,alt:"",width:"100px",height:"200px"}),Object(l.jsx)("h5",{style:{textAlign:"center",color:"white"},children:e.h1}),Object(l.jsx)("p",{style:{textAlign:"center",fontSize:"15px",fontWeight:"400"},s:!0,children:e.p})]})}function m(){return Object(l.jsxs)("div",{className:"featureflex",children:[Object(l.jsx)(b,{image:"feature1.png",h1:"No Minimum Order",p:"Order in for yourself or for the group, with no restrictions on order value"}),Object(l.jsx)(b,{image:"feature2.png",h1:"Live Order Tracking",p:"Know where your order is at all times, from the restaurant to your doorstep "}),Object(l.jsx)(b,{image:"feature3.png",h1:"Lightning-Fast Delivery",p:"Experience Swiggy's superfast delivery for food delivered fresh & on time"})]})}function u(){return Object(l.jsxs)("div",{className:"pocketflex",children:[Object(l.jsxs)("div",{className:"pocketleft",style:{margin:"30px",minWidth:"320px"},children:[Object(l.jsxs)("h1",{children:["Restaurants in ",Object(l.jsx)("br",{})," your pocket"]}),Object(l.jsxs)("p",{style:{fontSize:"20px",color:"#7e808c"},children:["Order from your favorite restaurants & track ",Object(l.jsx)("br",{})," on the go, with the all-new Swiggy app."]}),Object(l.jsxs)("div",{style:{paddingTop:"30px"},children:[Object(l.jsxs)("a",{href:"#",children:[" ",Object(l.jsx)("img",{style:{marginRight:"20px"},src:"playstore.png",alt:"",width:"170px"})]}),Object(l.jsxs)("a",{href:"#",children:[" ",Object(l.jsx)("img",{src:"apple.png",alt:"",width:"170px"})]})]})]}),Object(l.jsx)("img",{className:"pocketimg",src:"pocket1.png",alt:"",width:"390px",height:"490px"}),Object(l.jsx)("img",{className:"pocketimgr",src:"pocket2.png",alt:"",height:"auto"})]})}function O(e){return Object(l.jsxs)("div",{className:"minwidth",children:[Object(l.jsx)("p",{style:{color:"#80807d",fontWeight:"600",fontSize:"15px"},children:e.head}),Object(l.jsx)("ul",{children:e.list.map((function(e,t){return Object(l.jsx)("a",{href:"#",children:Object(l.jsx)("li",{children:e})})}))})]})}a(5);function f(){var e=a(5).citylist;return console.log(e),Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)("p",{style:{color:"#80807d",fontWeight:"600",backgroundColor:"black",paddingLeft:"30px",margin:"0px",paddingTop:"60px",fontSize:"15px"},children:"WE DELIVER TO"}),Object(l.jsx)("div",{className:"actionflex",children:e.map((function(e,t){return Object(l.jsx)(O,{head:e[0],list:e[1]})}))})]})}function v(){return Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)("div",{style:{height:"40px",backgroundColor:"black"}}),Object(l.jsxs)("div",{className:"actionflex",children:[[[["COMPANY"],["About us","Team","Careers","Swiggy Blog","Bug Bounty","Swiggy Super","Swiggy Corporate","Swiggy Instamart"]],[["CONTACT"],["Help & Support","Partner with us","Ride with us"]],[["Legal"],["Terms & Conditions","Refund & Cancellation","Privacy Policy","Cookie Policy"," Offer Terms","Phishing & Fraud"]]].map((function(e,t){return Object(l.jsx)(O,{head:e[0],list:e[1]})})),Object(l.jsx)("div",{children:Object(l.jsxs)("ul",{children:[Object(l.jsx)("li",{children:Object(l.jsxs)("a",{href:"#",children:[" ",Object(l.jsx)("img",{style:{marginBottom:"20px"},src:"apple2.png",width:"200px",alt:""})]})}),Object(l.jsx)("li",{children:Object(l.jsxs)("a",{href:"#",children:[" ",Object(l.jsx)("img",{src:"playstore2.png",width:"200px",alt:""})]})})]})})]})]})}function w(){return Object(l.jsxs)("div",{className:"footerflex",children:[Object(l.jsx)("div",{children:Object(l.jsx)("img",{className:"swiggy",style:{width:"142px",marginRight:"0px"},src:"Logo_f5xzza.png",alt:"",width:""})}),Object(l.jsx)("div",{children:Object(l.jsx)("p",{style:{color:"white",fontSize:"20px"},children:"\xa9 2021 Swiggy"})}),Object(l.jsxs)("div",{children:[Object(l.jsx)("a",{href:"#",children:Object(l.jsx)("img",{src:"icon-facebook_tfqsuc.png",alt:""})}),Object(l.jsx)("a",{href:"#",children:Object(l.jsx)("img",{src:"icon-pinterest_kmz2wd.png",alt:""})}),Object(l.jsx)("a",{href:"#",children:Object(l.jsx)("img",{src:"icon-instagram_b7nubh.png",alt:""})}),Object(l.jsx)("a",{href:"#",children:Object(l.jsx)("img",{src:"icon-twitter_gtq8dv.png",alt:""})})]})]})}var y=function(){return Object(l.jsxs)("div",{className:"App",children:[Object(l.jsx)("div",{className:"header123",children:Object(l.jsx)(p,{})}),Object(l.jsxs)("div",{className:"brightlow",children:[Object(l.jsx)("div",{className:"feature123",children:Object(l.jsx)(m,{})}),Object(l.jsxs)("div",{className:"pocket123",children:[" ",Object(l.jsx)(u,{})]}),Object(l.jsxs)("div",{className:"action123",children:[" ",Object(l.jsx)(v,{})]}),Object(l.jsx)("div",{className:"city123",children:Object(l.jsx)(f,{})}),Object(l.jsx)("div",{className:"footer123",children:Object(l.jsx)(w,{})})]})]})},N=function(e){e&&e instanceof Function&&a.e(3).then(a.bind(null,15)).then((function(t){var a=t.getCLS,i=t.getFID,n=t.getFCP,r=t.getLCP,s=t.getTTFB;a(e),i(e),n(e),r(e),s(e)}))};s.a.render(Object(l.jsx)(n.a.StrictMode,{children:Object(l.jsx)(y,{})}),document.getElementById("root")),N()},5:function(e){e.exports=JSON.parse('{"citylist":[[[""],["Abohar","Adilabad","Adityapur","Adoni","Agartala","Agra","Baddi","Bagalkot","Bagdogra","Bathinda","Beed","Chandigarh","Changanassery","Charkhi Dadri","Chatra","Chennai","Cherthala","Chhapra","Chikkamagaluru","Chilakaluripet","Chirala","Chittur-Thathamangalam","Coimbatore","Cuttack","Dalli-Rajhara","Darbhanga","Darjiling","Davanagere","Deesa","Dehradun","Dehri-on-Sone","Delhi","Eluru","English Bazar","Erode","Etawah"]],[[""],["Faridabad","Faridkot","Farooqnagar","Fatehabad","Fatehpur Sikri","Fazilka","Gurgaon","Guruvayoor","Guwahati","Gwalior","Habra","Hajipur","Haldwani-cum-Kathgodam","Hansi","Hapur","Hyderabad","Ichalkaranji","Imphal","Indore","Itarsi","Jabalpur","Jagdalpur","Jaggaiahpet","Jagraon","Kochi","Kodungallur","Kohima","Kolar","Kolkata","Kollam","Longowal","Loni","Losal","Lucknow","Ludhiana","Lumding"]],[[""],["Malkapur","Malout","Malpura","Malur","Manachanallur","Manasa","Nagina","Nagla","Nagpur","Nahan","Naharlagun","Naidupet","Naihati","Naila Janjgir","Nainital","Ongole","Orai","Osmanabad","Ottappalam","Ozar","P.N.Patti","Pachora","Pachore","Pacode","Padmanabhapuram","Padra","Padrauna","Puttur","Qadian","Raayachuru","Rabkavi Banhatti","Radhanpur","Rae Bareli","Rafiganj","Raghogarh-Vijaypur","Raghunathganj"]],[[""],["Sandi","Sandila","Sangareddy","Sangaria","Thiruvananthapuram","Thiruvarur","Thuraiyur","Tundla","Tuni","Tura","Uchgaon","Udaipur","Udaipur","Udaipurwati","Udgir","Udhagamandalam","Varanasi","Varkala","Vasai-Virar","Vatakara","Warisaliganj","Warora","Warud","Washim","Wokha","Yadgir","Yamunanagar","Yanam","Yavatmal","Yemmiganur","Yerraguntla","Yevla","Zaidpur","Zamania","Zira","Zirakpur"]]]}')}},[[14,1,2]]]);
  //# sourceMappingURL=main.04ba108d.chunk.js.map