{"ast":null,"code":"var _jsxFileName = \"/home/magh/Documents/landing_page/src/App.js\",\n _s = $RefreshSig$();\nimport React, { useState } from 'react';\nimport './App.css';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nfunction App() {\n _s();\n const [query, setQuery] = useState('');\n const [category, setCategory] = useState('science');\n\n // Mapping for mascot images by category\n const imageMap = {\n science: 'main.png',\n philosophy: 'philosophy.png',\n tech: 'tech.png',\n discover: 'discover.png'\n };\n\n // Mapping for header images by category\n const headerMap = {\n science: 'header.png',\n philosophy: 'header_philosophy.png',\n tech: 'header_tech.png',\n discover: 'header_discover.png'\n };\n\n // Mapping for overall background colors for the App container.\n // For \"science\", we use your existing palette (#fcfcff).\n const appBgMap = {\n science: '#fcfcff',\n // matches your body background color in CSS\n philosophy: '#fce4ec',\n // light pink (example)\n tech: '#e8f5e9',\n // light green (example)\n discover: '#fff9c4' // light yellow (example)\n };\n\n // Mapping for header background colors.\n // For \"science\", we use your existing header background (#f8f8f8).\n const headerBgMap = {\n science: '#f8f8f8',\n // matches your header background in CSS\n philosophy: '#ffe4e1',\n // example light red/pink\n tech: '#f5fffa',\n // example minty\n discover: '#ffffe0' // example pale yellow\n };\n const handleSubmit = e => {\n e.preventDefault();\n let actionUrl = '';\n switch (category) {\n case 'science':\n actionUrl = 'https://science.tsugutsugugo.com/yacysearch.html?query=';\n break;\n case 'philosophy':\n actionUrl = 'https://sophos.tsugutsugugo.com/yacysearch.html?query=';\n break;\n case 'tech':\n actionUrl = 'https://tech.tsugutsugugo.com/yacysearch.html?query=';\n break;\n case 'discover':\n actionUrl = 'https://web.tsugutsugugo.com/yacysearch.html?query=';\n break;\n default:\n actionUrl = 'https://science.tsugutsugugo.com/yacysearch.html?query=';\n }\n window.location.href = `${actionUrl}${encodeURIComponent(query)}`;\n };\n return /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"App\",\n style: {\n backgroundColor: appBgMap[category]\n },\n children: [/*#__PURE__*/_jsxDEV(\"header\", {\n className: \"header-bar\",\n style: {\n backgroundColor: headerBgMap[category]\n },\n children: /*#__PURE__*/_jsxDEV(\"img\", {\n src: headerMap[category],\n alt: \"Header\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 67,\n columnNumber: 9\n }, this)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 66,\n columnNumber: 7\n }, this), /*#__PURE__*/_jsxDEV(\"main\", {\n className: \"main-content\",\n children: [/*#__PURE__*/_jsxDEV(\"img\", {\n id: \"mascot-img\",\n src: imageMap[category],\n alt: \"Mascot\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 70,\n columnNumber: 9\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n id: \"tagline\",\n children: \"a search engine for the rest of us\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 71,\n columnNumber: 9\n }, this), /*#__PURE__*/_jsxDEV(\"form\", {\n className: \"search-form\",\n onSubmit: handleSubmit,\n children: [/*#__PURE__*/_jsxDEV(\"div\", {\n className: \"search-container\",\n children: /*#__PURE__*/_jsxDEV(\"input\", {\n type: \"text\",\n name: \"search\",\n placeholder: \"Search...\",\n value: query,\n onChange: e => setQuery(e.target.value)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 74,\n columnNumber: 13\n }, this)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 73,\n columnNumber: 11\n }, this), /*#__PURE__*/_jsxDEV(\"div\", {\n className: \"radio-options\",\n children: [/*#__PURE__*/_jsxDEV(\"label\", {\n htmlFor: \"science\",\n children: [/*#__PURE__*/_jsxDEV(\"input\", {\n type: \"radio\",\n name: \"category\",\n id: \"science\",\n value: \"science\",\n checked: category === 'science',\n onChange: e => setCategory(e.target.value)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 84,\n columnNumber: 15\n }, this), \"Science\"]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 83,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"label\", {\n htmlFor: \"philosophy\",\n children: [/*#__PURE__*/_jsxDEV(\"input\", {\n type: \"radio\",\n name: \"category\",\n id: \"philosophy\",\n value: \"philosophy\",\n checked: category === 'philosophy',\n onChange: e => setCategory(e.target.value)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 95,\n columnNumber: 15\n }, this), \"Philosophy\"]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 94,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"label\", {\n htmlFor: \"tech\",\n children: [/*#__PURE__*/_jsxDEV(\"input\", {\n type: \"radio\",\n name: \"category\",\n id: \"tech\",\n value: \"tech\",\n checked: category === 'tech',\n onChange: e => setCategory(e.target.value)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 106,\n columnNumber: 15\n }, this), \"Tech\"]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 105,\n columnNumber: 13\n }, this), /*#__PURE__*/_jsxDEV(\"label\", {\n htmlFor: \"discover\",\n children: [/*#__PURE__*/_jsxDEV(\"input\", {\n type: \"radio\",\n name: \"category\",\n id: \"discover\",\n value: \"discover\",\n checked: category === 'discover',\n onChange: e => setCategory(e.target.value)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 117,\n columnNumber: 15\n }, this), \"Discover the Web\"]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 116,\n columnNumber: 13\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 82,\n columnNumber: 11\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 72,\n columnNumber: 9\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 69,\n columnNumber: 7\n }, this), /*#__PURE__*/_jsxDEV(\"footer\", {\n className: \"footer\",\n children: [/*#__PURE__*/_jsxDEV(\"a\", {\n href: \"https://git.tsugutsugugo.com/explore/repos\",\n children: \"Source\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 131,\n columnNumber: 9\n }, this), \" |\", ' ', /*#__PURE__*/_jsxDEV(\"a\", {\n href: \"https://docs.tsugutsugugo.com/\",\n children: \"Docs\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 132,\n columnNumber: 9\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 130,\n columnNumber: 7\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 65,\n columnNumber: 5\n }, this);\n}\n_s(App, \"d7wfwqZpLVFRcVRykxoAGp7jHMM=\");\n_c = App;\nexport default App;\nvar _c;\n$RefreshReg$(_c, \"App\");","map":{"version":3,"names":["React","useState","jsxDEV","_jsxDEV","App","_s","query","setQuery","category","setCategory","imageMap","science","philosophy","tech","discover","headerMap","appBgMap","headerBgMap","handleSubmit","e","preventDefault","actionUrl","window","location","href","encodeURIComponent","className","style","backgroundColor","children","src","alt","fileName","_jsxFileName","lineNumber","columnNumber","id","onSubmit","type","name","placeholder","value","onChange","target","htmlFor","checked","_c","$RefreshReg$"],"sources":["/home/magh/Documents/landing_page/src/App.js"],"sourcesContent":["import React, { useState } from 'react';\nimport './App.css';\n\nfunction App() {\n const [query, setQuery] = useState('');\n const [category, setCategory] = useState('science');\n\n // Mapping for mascot images by category\n const imageMap = {\n science: 'main.png',\n philosophy: 'philosophy.png',\n tech: 'tech.png',\n discover: 'discover.png',\n };\n\n // Mapping for header images by category\n const headerMap = {\n science: 'header.png',\n philosophy: 'header_philosophy.png',\n tech: 'header_tech.png',\n discover: 'header_discover.png',\n };\n\n // Mapping for overall background colors for the App container.\n // For \"science\", we use your existing palette (#fcfcff).\n const appBgMap = {\n science: '#fcfcff', // matches your body background color in CSS\n philosophy: '#fce4ec', // light pink (example)\n tech: '#e8f5e9', // light green (example)\n discover: '#fff9c4', // light yellow (example)\n };\n\n // Mapping for header background colors.\n // For \"science\", we use your existing header background (#f8f8f8).\n const headerBgMap = {\n science: '#f8f8f8', // matches your header background in CSS\n philosophy: '#ffe4e1', // example light red/pink\n tech: '#f5fffa', // example minty\n discover: '#ffffe0', // example pale yellow\n };\n\n const handleSubmit = (e) => {\n e.preventDefault();\n let actionUrl = '';\n switch (category) {\n case 'science':\n actionUrl = 'https://science.tsugutsugugo.com/yacysearch.html?query=';\n break;\n case 'philosophy':\n actionUrl = 'https://sophos.tsugutsugugo.com/yacysearch.html?query=';\n break;\n case 'tech':\n actionUrl = 'https://tech.tsugutsugugo.com/yacysearch.html?query=';\n break;\n case 'discover':\n actionUrl = 'https://web.tsugutsugugo.com/yacysearch.html?query=';\n break;\n default:\n actionUrl = 'https://science.tsugutsugugo.com/yacysearch.html?query=';\n }\n window.location.href = `${actionUrl}${encodeURIComponent(query)}`;\n };\n\n return (\n