diff --git a/asset-manifest.json b/asset-manifest.json index ba26a0a..7e5d6bc 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,8 +1,8 @@ { "files": { "main.css": "/custom-homepage/static/css/main.5903f99b.chunk.css", - "main.js": "/custom-homepage/static/js/main.9803ec22.chunk.js", - "main.js.map": "/custom-homepage/static/js/main.9803ec22.chunk.js.map", + "main.js": "/custom-homepage/static/js/main.4b15c5db.chunk.js", + "main.js.map": "/custom-homepage/static/js/main.4b15c5db.chunk.js.map", "runtime-main.js": "/custom-homepage/static/js/runtime-main.101124e7.js", "runtime-main.js.map": "/custom-homepage/static/js/runtime-main.101124e7.js.map", "static/js/2.44290eae.chunk.js": "/custom-homepage/static/js/2.44290eae.chunk.js", @@ -17,6 +17,6 @@ "static/js/runtime-main.101124e7.js", "static/js/2.44290eae.chunk.js", "static/css/main.5903f99b.chunk.css", - "static/js/main.9803ec22.chunk.js" + "static/js/main.4b15c5db.chunk.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index ad1bb54..9dde532 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Ana sayfa
\ No newline at end of file +Ana sayfa
\ No newline at end of file diff --git a/static/js/main.4b15c5db.chunk.js b/static/js/main.4b15c5db.chunk.js new file mode 100644 index 0000000..3b3eed2 --- /dev/null +++ b/static/js/main.4b15c5db.chunk.js @@ -0,0 +1,2 @@ +(this.webpackJsonphomepage=this.webpackJsonphomepage||[]).push([[0],[,,,,,,,,,,,,,,,function(t,e,n){},function(t,e,n){},function(t,e,n){},,function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";n.r(e);var r=n(0),c=n(1),a=n.n(c),i=n(8),s=n.n(i),o=(n(15),n(2)),u=n(3),h=n(5),j=n(4),l=(n(16),n(17),function(t){Object(h.a)(n,t);var e=Object(j.a)(n);function n(t){var r;return Object(o.a)(this,n),(r=e.call(this,t)).state={time:new Date},r}return Object(u.a)(n,[{key:"currentTime",value:function(){this.setState({time:new Date})}},{key:"componentDidMount",value:function(){var t=this;setInterval((function(){return t.currentTime()}),1e3)}},{key:"render",value:function(){return Object(r.jsx)("div",{className:"clock",children:this.state.time.toLocaleTimeString("en-GB")})}}]),n}(c.Component)),d=n(7),b=n.n(d),p=n(9),m=(n(19),function(t){Object(h.a)(n,t);var e=Object(j.a)(n);function n(t){var r;return Object(o.a)(this,n),(r=e.call(this,t)).state={weather:{response:1,weather:[{icon:"04n"}],main:{temp:285.66}}},r}return Object(u.a)(n,[{key:"componentDidMount",value:function(){var t=Object(p.a)(b.a.mark((function t(){var e,n;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch("https://api.openweathermap.org/data/2.5/weather?q=istanbul&appid=".concat(Object({NODE_ENV:"production",PUBLIC_URL:"/custom-homepage",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).REACT_APP_API_KEY));case 3:return e=t.sent,t.next=6,e.json();case 6:401!==(n=t.sent).cod&&this.setState({weather:n}),this.setState({response:1}),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(0),console.log("Error:",t.t0);case 14:case"end":return t.stop()}}),t,this,[[0,11]])})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){return 1===this.state.weather.response?Object(r.jsx)("div",{}):Object(r.jsxs)("div",{className:"forecast",children:[Object(r.jsx)("img",{src:"https://openweathermap.org/img/wn/".concat(this.state.weather.weather[0].icon,"@2x.png"),alt:""}),"\u0130stanbul Hava Durumu: ",(t=this.state.weather.main.temp,(t-273.15).toFixed(2)),"\xb0\u0421"]});var t}}]),n}(c.Component)),O=(n(20),function(t){return Object(r.jsxs)("ul",{className:"card",children:[Object(r.jsx)("h3",{className:"Title",children:t.title}),t.list.map((function(t){return Object(r.jsx)("li",{className:"text",children:t},t)}))]})}),f=[Object(r.jsx)("a",{href:"https://www.protonmail.com/login",target:"",children:"Protonmail"}),Object(r.jsx)("a",{href:"https://www.youtube.com",target:"",children:"Youtube"}),Object(r.jsx)("a",{href:"https://studio.youtube.com",target:"",children:"Youtube Studio"}),Object(r.jsx)("a",{href:"https://www.github.com",target:"",children:"Github"}),Object(r.jsx)("a",{href:"https://www.odysee.com",target:"",children:"Odysee"}),Object(r.jsx)("a",{href:"https:/www.udemy.com",target:"",children:"Udemy"})],w=[Object(r.jsx)("a",{href:"https://www.reddit.com/r/dataisbeautiful/",children:"r/DataIsBeautiful"}),Object(r.jsx)("a",{href:"https://www.reddit.com/r/firefox/",children:"r/Firefox"}),Object(r.jsx)("a",{href:"https://www.reddit.com/r/linux/",children:"r/Linux"}),Object(r.jsx)("a",{href:"https://www.reddit.com/r/privacy/",children:"r/Privacy"})],x=function(t){Object(h.a)(n,t);var e=Object(j.a)(n);function n(){var t;return Object(o.a)(this,n),(t=e.call(this)).state={},t}return Object(u.a)(n,[{key:"render",value:function(){return Object(r.jsxs)("div",{className:"App",children:[Object(r.jsx)("h1",{children:Object(r.jsx)(l,{})}),Object(r.jsx)(m,{}),Object(r.jsxs)("div",{className:"Cards",children:[Object(r.jsx)(O,{title:"S\u0131k Girdi\u011fim Siteler",list:f}),Object(r.jsx)(O,{title:"Reddit",list:w})]})]})}}]),n}(c.Component),v=function(t){t&&t instanceof Function&&n.e(3).then(n.bind(null,22)).then((function(e){var n=e.getCLS,r=e.getFID,c=e.getFCP,a=e.getLCP,i=e.getTTFB;n(t),r(t),c(t),a(t),i(t)}))};s.a.render(Object(r.jsx)(a.a.StrictMode,{children:Object(r.jsx)(x,{})}),document.getElementById("root")),v()}],[[21,1,2]]]); +//# sourceMappingURL=main.4b15c5db.chunk.js.map \ No newline at end of file diff --git a/static/js/main.4b15c5db.chunk.js.map b/static/js/main.4b15c5db.chunk.js.map new file mode 100644 index 0000000..689d852 --- /dev/null +++ b/static/js/main.4b15c5db.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["components/time/time-component.jsx","components/fetch weather/weather-fetch.jsx","components/card/card-component.jsx","data/card1.js","data/card2.js","App.js","reportWebVitals.js","index.js"],"names":["Time","props","state","time","Date","this","setState","setInterval","currentTime","className","toLocaleTimeString","Component","Forecast","weather","response","icon","main","temp","fetch","process","REACT_APP_API_KEY","json","cod","console","log","src","alt","kel","toFixed","Card","title","list","map","li","cards","href","target","card2","App","reportWebVitals","onPerfEntry","Function","then","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","render","StrictMode","document","getElementById"],"mappings":"kSA2BeA,G,8DAvBb,WAAYC,GAAQ,IAAD,8BACjB,cAAMA,IACDC,MAAQ,CACXC,KAAM,IAAIC,MAHK,E,0DAQjBC,KAAKC,SAAS,CACZH,KAAM,IAAIC,S,0CAGO,IAAD,OAClBG,aAAY,kBAAM,EAAKC,gBAAe,O,+BAItC,OACE,qBAAKC,UAAU,QAAf,SAAwBJ,KAAKH,MAAMC,KAAKO,mBAAmB,e,GAnB9CC,c,uBCwDJC,G,wDAvDb,WAAYX,GAAQ,IAAD,8BACjB,cAAMA,IACDC,MAAQ,CACXW,QAAS,CACPC,SAAU,EACVD,QAAS,CACP,CACEE,KAAM,QAGVC,KAAM,CACJC,KAAM,UAXK,E,2MAmBQC,MAAM,oEAAD,OAC0CC,mJAAYC,oB,cAD5EN,E,gBAGaA,EAASO,O,OACX,OADXA,E,QACGC,KACPjB,KAAKC,SAAS,CAAEO,QAASQ,IAG3BhB,KAAKC,SAAS,CAAEQ,SAAU,I,kDAE1BS,QAAQC,IAAI,SAAZ,M,+IAUF,OAAoC,IAAhCnB,KAAKH,MAAMW,QAAQC,SACd,wBAIP,sBAAKL,UAAU,WAAf,UACE,qBACEgB,IAAG,4CAAuCpB,KAAKH,MAAMW,QAAQA,QAAQ,GAAGE,KAArE,WACHW,IAAI,KAHR,+BAVuBC,EAekBtB,KAAKH,MAAMW,QAAQG,KAAKC,MAdnDU,EAAM,QACLC,QAAQ,IAQvB,gBAVF,IAAyBD,M,GAnCNhB,cCYRkB,G,MAbF,SAAC5B,GACZ,OACE,qBAAIQ,UAAU,OAAd,UACE,oBAAIA,UAAU,QAAd,SAAuBR,EAAM6B,QAC5B7B,EAAM8B,KAAKC,KAAI,SAACC,GAAD,OACd,oBAAaxB,UAAU,OAAvB,SACGwB,GADMA,WCPJC,EAAQ,CACnB,mBAAGC,KAAK,mCAAmCC,OAAO,GAAlD,wBAIA,mBAAGD,KAAK,0BAA0BC,OAAO,GAAzC,qBAGA,mBAAGD,KAAK,6BAA6BC,OAAO,GAA5C,4BAIA,mBAAGD,KAAK,yBAAyBC,OAAO,GAAxC,oBAIA,mBAAGD,KAAK,yBAAyBC,OAAO,GAAxC,oBAIA,mBAAGD,KAAK,uBAAuBC,OAAO,GAAtC,oBCpBWC,EAAQ,CACnB,mBAAGF,KAAK,4CAAR,+BACA,mBAAGA,KAAK,oCAAR,uBACA,mBAAGA,KAAK,kCAAR,qBACA,mBAAGA,KAAK,oCAAR,wBCyBaG,E,kDApBb,aAAe,IAAD,8BACZ,gBACKpC,MAAQ,GAFD,E,qDAKZ,OACE,sBAAKO,UAAU,MAAf,UACE,6BACE,cAAC,EAAD,MAEF,cAAC,EAAD,IACA,sBAAKA,UAAU,QAAf,UACE,cAAC,EAAD,CAAMqB,MAAM,iCAAuBC,KAAMG,IACzC,cAAC,EAAD,CAAMJ,MAAM,SAASC,KAAMM,c,GAdnB1B,aCIH4B,EAZS,SAAAC,GAClBA,GAAeA,aAAuBC,UACxC,6BAAqBC,MAAK,YAAkD,IAA/CC,EAA8C,EAA9CA,OAAQC,EAAsC,EAAtCA,OAAQC,EAA8B,EAA9BA,OAAQC,EAAsB,EAAtBA,OAAQC,EAAc,EAAdA,QAC3DJ,EAAOH,GACPI,EAAOJ,GACPK,EAAOL,GACPM,EAAON,GACPO,EAAQP,OCDdQ,IAASC,OACP,cAAC,IAAMC,WAAP,UACE,cAAC,EAAD,MAEFC,SAASC,eAAe,SAM1Bb,M","file":"static/js/main.4b15c5db.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport \"./time-component.scss\";\n\nclass Time extends Component {\n constructor(props) {\n super(props);\n this.state = {\n time: new Date(),\n };\n }\n\n currentTime() {\n this.setState({\n time: new Date(),\n });\n }\n componentDidMount() {\n setInterval(() => this.currentTime(), 1000);\n }\n\n render() {\n return (\n
{this.state.time.toLocaleTimeString(\"en-GB\")}
\n );\n }\n}\n\nexport default Time;\n","import React, { Component } from \"react\";\nimport \"./weather-fetch.scss\";\n\nclass Forecast extends Component {\n constructor(props) {\n super(props);\n this.state = {\n weather: {\n response: 1,\n weather: [\n {\n icon: \"04n\",\n },\n ],\n main: {\n temp: 285.66,\n },\n },\n };\n }\n\n async componentDidMount() {\n try {\n const response = await fetch(\n `https://api.openweathermap.org/data/2.5/weather?q=istanbul&appid=${process.env.REACT_APP_API_KEY}`\n );\n const json = await response.json();\n if (json.cod !== 401) {\n this.setState({ weather: json });\n }\n\n this.setState({ response: 1 });\n } catch (err) {\n console.log(\"Error:\", err);\n }\n }\n\n render() {\n function kelvinToCelsius(kel) {\n let celsius = kel - 273.15;\n return celsius.toFixed(2);\n }\n\n if (this.state.weather.response === 1) {\n return
;\n }\n\n return (\n
\n \n İstanbul Hava Durumu: {kelvinToCelsius(this.state.weather.main.temp)}\n °С\n
\n );\n }\n}\nexport default Forecast;\n","import \"./card-style.scss\";\n\nconst Card = (props) => {\n return (\n \n );\n};\n\nexport default Card;\n","export const cards = [\n \n Protonmail\n ,\n\n \n Youtube\n ,\n \n Youtube Studio\n ,\n\n \n Github\n ,\n\n \n Odysee\n ,\n\n \n Udemy\n ,\n];\n","export const card2 = [\n r/DataIsBeautiful,\n r/Firefox,\n r/Linux,\n r/Privacy,\n];\n","import \"./App.css\";\nimport React, { Component } from \"react\";\nimport Time from \"./components/time/time-component\";\nimport Forecast from \"./components/fetch weather/weather-fetch\";\nimport Card from \"./components/card/card-component\";\nimport { cards } from \"./data/card1\";\nimport { card2 } from \"./data/card2\";\n\nclass App extends Component {\n constructor() {\n super();\n this.state = {};\n }\n render() {\n return (\n
\n

\n

\n \n
\n \n \n
\n
\n );\n }\n}\n\nexport default App;\n","const reportWebVitals = onPerfEntry => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport reportWebVitals from './reportWebVitals';\n\nReactDOM.render(\n \n \n ,\n document.getElementById('root')\n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/main.9803ec22.chunk.js b/static/js/main.9803ec22.chunk.js deleted file mode 100644 index c37dc88..0000000 --- a/static/js/main.9803ec22.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(this.webpackJsonphomepage=this.webpackJsonphomepage||[]).push([[0],[,,,,,,,,,,,,,,,function(t,e,n){},function(t,e,n){},function(t,e,n){},,function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";n.r(e);var r=n(0),c=n(1),a=n.n(c),i=n(8),s=n.n(i),o=(n(15),n(2)),u=n(3),h=n(5),j=n(4),l=(n(16),n(17),function(t){Object(h.a)(n,t);var e=Object(j.a)(n);function n(t){var r;return Object(o.a)(this,n),(r=e.call(this,t)).state={time:new Date},r}return Object(u.a)(n,[{key:"currentTime",value:function(){this.setState({time:new Date})}},{key:"componentDidMount",value:function(){var t=this;setInterval((function(){return t.currentTime()}),1e3)}},{key:"render",value:function(){return Object(r.jsx)("div",{className:"clock",children:this.state.time.toLocaleTimeString("en-GB")})}}]),n}(c.Component)),d=n(7),b=n.n(d),p=n(9),m=(n(19),function(t){Object(h.a)(n,t);var e=Object(j.a)(n);function n(t){var r;return Object(o.a)(this,n),(r=e.call(this,t)).state={weather:{response:1,weather:[{icon:"04n"}],main:{temp:285.66}}},r}return Object(u.a)(n,[{key:"componentDidMount",value:function(){var t=Object(p.a)(b.a.mark((function t(){var e,n;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch("https://api.openweathermap.org/data/2.5/weather?q=istanbul&appid=".concat("600b98827cbd9fd055082039a2b23a99"));case 3:return e=t.sent,t.next=6,e.json();case 6:401!==(n=t.sent).cod&&this.setState({weather:n}),this.setState({response:1}),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(0),console.log("Error:",t.t0);case 14:case"end":return t.stop()}}),t,this,[[0,11]])})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){return 1===this.state.weather.response?Object(r.jsx)("div",{}):Object(r.jsxs)("div",{className:"forecast",children:[Object(r.jsx)("img",{src:"https://openweathermap.org/img/wn/".concat(this.state.weather.weather[0].icon,"@2x.png"),alt:""}),"\u0130stanbul Hava Durumu: ",(t=this.state.weather.main.temp,(t-273.15).toFixed(2)),"\xb0\u0421"]});var t}}]),n}(c.Component)),f=(n(20),function(t){return Object(r.jsxs)("ul",{className:"card",children:[Object(r.jsx)("h3",{className:"Title",children:t.title}),t.list.map((function(t){return Object(r.jsx)("li",{className:"text",children:t},t)}))]})}),w=[Object(r.jsx)("a",{href:"https://www.protonmail.com/login",target:"",children:"Protonmail"}),Object(r.jsx)("a",{href:"https://www.youtube.com",target:"",children:"Youtube"}),Object(r.jsx)("a",{href:"https://studio.youtube.com",target:"",children:"Youtube Studio"}),Object(r.jsx)("a",{href:"https://www.github.com",target:"",children:"Github"}),Object(r.jsx)("a",{href:"https://www.odysee.com",target:"",children:"Odysee"}),Object(r.jsx)("a",{href:"https:/www.udemy.com",target:"",children:"Udemy"})],O=[Object(r.jsx)("a",{href:"https://www.reddit.com/r/dataisbeautiful/",children:"r/DataIsBeautiful"}),Object(r.jsx)("a",{href:"https://www.reddit.com/r/firefox/",children:"r/Firefox"}),Object(r.jsx)("a",{href:"https://www.reddit.com/r/linux/",children:"r/Linux"}),Object(r.jsx)("a",{href:"https://www.reddit.com/r/privacy/",children:"r/Privacy"})],x=function(t){Object(h.a)(n,t);var e=Object(j.a)(n);function n(){var t;return Object(o.a)(this,n),(t=e.call(this)).state={},t}return Object(u.a)(n,[{key:"render",value:function(){return Object(r.jsxs)("div",{className:"App",children:[Object(r.jsx)("h1",{children:Object(r.jsx)(l,{})}),Object(r.jsx)(m,{}),Object(r.jsxs)("div",{className:"Cards",children:[Object(r.jsx)(f,{title:"S\u0131k Girdi\u011fim Siteler",list:w}),Object(r.jsx)(f,{title:"Reddit",list:O})]})]})}}]),n}(c.Component),v=function(t){t&&t instanceof Function&&n.e(3).then(n.bind(null,22)).then((function(e){var n=e.getCLS,r=e.getFID,c=e.getFCP,a=e.getLCP,i=e.getTTFB;n(t),r(t),c(t),a(t),i(t)}))};s.a.render(Object(r.jsx)(a.a.StrictMode,{children:Object(r.jsx)(x,{})}),document.getElementById("root")),v()}],[[21,1,2]]]); -//# sourceMappingURL=main.9803ec22.chunk.js.map \ No newline at end of file diff --git a/static/js/main.9803ec22.chunk.js.map b/static/js/main.9803ec22.chunk.js.map deleted file mode 100644 index 87cd400..0000000 --- a/static/js/main.9803ec22.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["components/time/time-component.jsx","components/fetch weather/weather-fetch.jsx","components/card/card-component.jsx","data/card1.js","data/card2.js","App.js","reportWebVitals.js","index.js"],"names":["Time","props","state","time","Date","this","setState","setInterval","currentTime","className","toLocaleTimeString","Component","Forecast","weather","response","icon","main","temp","fetch","process","json","cod","console","log","src","alt","kel","toFixed","Card","title","list","map","li","cards","href","target","card2","App","reportWebVitals","onPerfEntry","Function","then","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","render","StrictMode","document","getElementById"],"mappings":"kSA2BeA,G,8DAvBb,WAAYC,GAAQ,IAAD,8BACjB,cAAMA,IACDC,MAAQ,CACXC,KAAM,IAAIC,MAHK,E,0DAQjBC,KAAKC,SAAS,CACZH,KAAM,IAAIC,S,0CAGO,IAAD,OAClBG,aAAY,kBAAM,EAAKC,gBAAe,O,+BAItC,OACE,qBAAKC,UAAU,QAAf,SAAwBJ,KAAKH,MAAMC,KAAKO,mBAAmB,e,GAnB9CC,c,uBCwDJC,G,wDAvDb,WAAYX,GAAQ,IAAD,8BACjB,cAAMA,IACDC,MAAQ,CACXW,QAAS,CACPC,SAAU,EACVD,QAAS,CACP,CACEE,KAAM,QAGVC,KAAM,CACJC,KAAM,UAXK,E,2MAmBQC,MAAM,oEAAD,OAC0CC,qC,cADhEL,E,gBAGaA,EAASM,O,OACX,OADXA,E,QACGC,KACPhB,KAAKC,SAAS,CAAEO,QAASO,IAG3Bf,KAAKC,SAAS,CAAEQ,SAAU,I,kDAE1BQ,QAAQC,IAAI,SAAZ,M,+IAUF,OAAoC,IAAhClB,KAAKH,MAAMW,QAAQC,SACd,wBAIP,sBAAKL,UAAU,WAAf,UACE,qBACEe,IAAG,4CAAuCnB,KAAKH,MAAMW,QAAQA,QAAQ,GAAGE,KAArE,WACHU,IAAI,KAHR,+BAVuBC,EAekBrB,KAAKH,MAAMW,QAAQG,KAAKC,MAdnDS,EAAM,QACLC,QAAQ,IAQvB,gBAVF,IAAyBD,M,GAnCNf,cCYRiB,G,MAbF,SAAC3B,GACZ,OACE,qBAAIQ,UAAU,OAAd,UACE,oBAAIA,UAAU,QAAd,SAAuBR,EAAM4B,QAC5B5B,EAAM6B,KAAKC,KAAI,SAACC,GAAD,OACd,oBAAavB,UAAU,OAAvB,SACGuB,GADMA,WCPJC,EAAQ,CACnB,mBAAGC,KAAK,mCAAmCC,OAAO,GAAlD,wBAIA,mBAAGD,KAAK,0BAA0BC,OAAO,GAAzC,qBAGA,mBAAGD,KAAK,6BAA6BC,OAAO,GAA5C,4BAIA,mBAAGD,KAAK,yBAAyBC,OAAO,GAAxC,oBAIA,mBAAGD,KAAK,yBAAyBC,OAAO,GAAxC,oBAIA,mBAAGD,KAAK,uBAAuBC,OAAO,GAAtC,oBCpBWC,EAAQ,CACnB,mBAAGF,KAAK,4CAAR,+BACA,mBAAGA,KAAK,oCAAR,uBACA,mBAAGA,KAAK,kCAAR,qBACA,mBAAGA,KAAK,oCAAR,wBCyBaG,E,kDApBb,aAAe,IAAD,8BACZ,gBACKnC,MAAQ,GAFD,E,qDAKZ,OACE,sBAAKO,UAAU,MAAf,UACE,6BACE,cAAC,EAAD,MAEF,cAAC,EAAD,IACA,sBAAKA,UAAU,QAAf,UACE,cAAC,EAAD,CAAMoB,MAAM,iCAAuBC,KAAMG,IACzC,cAAC,EAAD,CAAMJ,MAAM,SAASC,KAAMM,c,GAdnBzB,aCIH2B,EAZS,SAAAC,GAClBA,GAAeA,aAAuBC,UACxC,6BAAqBC,MAAK,YAAkD,IAA/CC,EAA8C,EAA9CA,OAAQC,EAAsC,EAAtCA,OAAQC,EAA8B,EAA9BA,OAAQC,EAAsB,EAAtBA,OAAQC,EAAc,EAAdA,QAC3DJ,EAAOH,GACPI,EAAOJ,GACPK,EAAOL,GACPM,EAAON,GACPO,EAAQP,OCDdQ,IAASC,OACP,cAAC,IAAMC,WAAP,UACE,cAAC,EAAD,MAEFC,SAASC,eAAe,SAM1Bb,M","file":"static/js/main.9803ec22.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport \"./time-component.scss\";\n\nclass Time extends Component {\n constructor(props) {\n super(props);\n this.state = {\n time: new Date(),\n };\n }\n\n currentTime() {\n this.setState({\n time: new Date(),\n });\n }\n componentDidMount() {\n setInterval(() => this.currentTime(), 1000);\n }\n\n render() {\n return (\n
{this.state.time.toLocaleTimeString(\"en-GB\")}
\n );\n }\n}\n\nexport default Time;\n","import React, { Component } from \"react\";\nimport \"./weather-fetch.scss\";\n\nclass Forecast extends Component {\n constructor(props) {\n super(props);\n this.state = {\n weather: {\n response: 1,\n weather: [\n {\n icon: \"04n\",\n },\n ],\n main: {\n temp: 285.66,\n },\n },\n };\n }\n\n async componentDidMount() {\n try {\n const response = await fetch(\n `https://api.openweathermap.org/data/2.5/weather?q=istanbul&appid=${process.env.REACT_APP_API_KEY}`\n );\n const json = await response.json();\n if (json.cod !== 401) {\n this.setState({ weather: json });\n }\n\n this.setState({ response: 1 });\n } catch (err) {\n console.log(\"Error:\", err);\n }\n }\n\n render() {\n function kelvinToCelsius(kel) {\n let celsius = kel - 273.15;\n return celsius.toFixed(2);\n }\n\n if (this.state.weather.response === 1) {\n return
;\n }\n\n return (\n
\n \n İstanbul Hava Durumu: {kelvinToCelsius(this.state.weather.main.temp)}\n °С\n
\n );\n }\n}\nexport default Forecast;\n","import \"./card-style.scss\";\n\nconst Card = (props) => {\n return (\n \n );\n};\n\nexport default Card;\n","export const cards = [\n \n Protonmail\n ,\n\n \n Youtube\n ,\n \n Youtube Studio\n ,\n\n \n Github\n ,\n\n \n Odysee\n ,\n\n \n Udemy\n ,\n];\n","export const card2 = [\n r/DataIsBeautiful,\n r/Firefox,\n r/Linux,\n r/Privacy,\n];\n","import \"./App.css\";\nimport React, { Component } from \"react\";\nimport Time from \"./components/time/time-component\";\nimport Forecast from \"./components/fetch weather/weather-fetch\";\nimport Card from \"./components/card/card-component\";\nimport { cards } from \"./data/card1\";\nimport { card2 } from \"./data/card2\";\n\nclass App extends Component {\n constructor() {\n super();\n this.state = {};\n }\n render() {\n return (\n
\n

\n

\n \n
\n \n \n
\n
\n );\n }\n}\n\nexport default App;\n","const reportWebVitals = onPerfEntry => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport reportWebVitals from './reportWebVitals';\n\nReactDOM.render(\n \n \n ,\n document.getElementById('root')\n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"],"sourceRoot":""} \ No newline at end of file