commit 31cf64e336c0def846a2efafcbaf96d3d6053538
Author: root <root@hub.scroll.pub> Date: 2024-12-27 18:31:41 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..802bf32 --- /dev/null +++ b/body.html @@ -0,0 +1,35 @@ +<header> + <h1>LabPro</h1> + <p>Your Interactive Resource for Medical Laboratory Professionals</p> +</header> + +<main> + <section class="card-grid"> + <article class="card" id="hematology"> + <h2>Hematology</h2> + <p>Explore comprehensive information on blood tests, cell counts, and related diagnostics.</p> + <button onclick="showCalculator('hematology')">Hematology Calculator</button> + </article> + + <article class="card" id="microbiology"> + <h2>Microbiology</h2> + <p>Discover insights into microbial cultures, sensitivity tests, and pathogen identification.</p> + <button onclick="showCalculator('microbiology')">Microbiology Calculator</button> + </article> + + <article class="card" id="chemical-pathology"> + <h2>Chemical Pathology</h2> + <p>Learn about biochemical tests, enzyme levels, and metabolic panel interpretations.</p> + <button onclick="showCalculator('chemical-pathology')">Chemical Pathology Calculator</button> + </article> + </section> + + <section id="calculator-section" class="hidden"> + <h2>Calculator</h2> + <div id="calculator-content"></div> + </section> +</main> + +<footer> + <p>LabPro - Empowering Laboratory Professionals</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..7061c54 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://labpro.scroll.pub +metaTags +editButton /edit.html +title LabPro - Interactive Resource for Medical Laboratory Professionals +style.css +body.html +script.js \ No newline at end of file diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..912c9d8 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "8eb4b4de-48af-4198-9884-afd9d16ca82e", + "object": "chat.completion", + "created": 1735324283, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\nlabpro.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://labpro.scroll.pub\nmetaTags\neditButton /edit.html\ntitle LabPro - Interactive Resource for Medical Laboratory Professionals\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>LabPro</h1>\n <p>Your Interactive Resource for Medical Laboratory Professionals</p>\n</header>\n\n<main>\n <section class=\"card-grid\">\n <article class=\"card\" id=\"hematology\">\n <h2>Hematology</h2>\n <p>Explore comprehensive information on blood tests, cell counts, and related diagnostics.</p>\n <button onclick=\"showCalculator('hematology')\">Hematology Calculator</button>\n </article>\n\n <article class=\"card\" id=\"microbiology\">\n <h2>Microbiology</h2>\n <p>Discover insights into microbial cultures, sensitivity tests, and pathogen identification.</p>\n <button onclick=\"showCalculator('microbiology')\">Microbiology Calculator</button>\n </article>\n\n <article class=\"card\" id=\"chemical-pathology\">\n <h2>Chemical Pathology</h2>\n <p>Learn about biochemical tests, enzyme levels, and metabolic panel interpretations.</p>\n <button onclick=\"showCalculator('chemical-pathology')\">Chemical Pathology Calculator</button>\n </article>\n </section>\n\n <section id=\"calculator-section\" class=\"hidden\">\n <h2>Calculator</h2>\n <div id=\"calculator-content\"></div>\n </section>\n</main>\n\n<footer>\n <p>LabPro - Empowering Laboratory Professionals</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #2c3e50;\n --secondary-color: #3498db;\n --background-color: #ecf0f1;\n --text-color: #2c3e50;\n --card-bg: #ffffff;\n --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\nbody {\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n margin: 0;\n padding: 0;\n background-color: var(--background-color);\n color: var(--text-color);\n line-height: 1.6;\n}\n\nheader {\n background-color: var(--primary-color);\n color: white;\n padding: 2rem;\n text-align: center;\n}\n\nheader h1 {\n margin: 0;\n font-size: 2.5rem;\n}\n\nheader p {\n margin: 0.5rem 0 0;\n font-size: 1.2rem;\n}\n\n.card-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n gap: 2rem;\n padding: 2rem;\n}\n\n.card {\n background-color: var(--card-bg);\n border-radius: 8px;\n box-shadow: var(--card-shadow);\n padding: 2rem;\n transition: transform 0.3s ease;\n}\n\n.card:hover {\n transform: translateY(-5px);\n}\n\n.card h2 {\n margin-top: 0;\n color: var(--secondary-color);\n}\n\n.card p {\n margin: 1rem 0;\n}\n\n.card button {\n background-color: var(--secondary-color);\n color: white;\n border: none;\n padding: 0.75rem 1.5rem;\n border-radius: 4px;\n cursor: pointer;\n font-size: 1rem;\n transition: background-color 0.3s ease;\n}\n\n.card button:hover {\n background-color: #2980b9;\n}\n\n#calculator-section {\n padding: 2rem;\n background-color: var(--card-bg);\n margin: 2rem;\n border-radius: 8px;\n box-shadow: var(--card-shadow);\n}\n\n.hidden {\n display: none;\n}\n\nfooter {\n background-color: var(--primary-color);\n color: white;\n text-align: center;\n padding: 1rem;\n margin-top: 2rem;\n}\n\n@media (max-width: 768px) {\n header h1 {\n font-size: 2rem;\n }\n\n header p {\n font-size: 1rem;\n }\n\n .card-grid {\n grid-template-columns: 1fr;\n padding: 1rem;\n }\n\n .card {\n padding: 1.5rem;\n }\n}\n---script.js---\nfunction showCalculator(category) {\n const calculatorSection = document.getElementById('calculator-section');\n const calculatorContent = document.getElementById('calculator-content');\n\n calculatorSection.classList.remove('hidden');\n\n switch (category) {\n case 'hematology':\n calculatorContent.innerHTML = `\n <h3>Hematology Calculator</h3>\n <p>Calculate blood cell counts, hemoglobin levels, and more.</p>\n <form>\n <label for=\"wbc\">White Blood Cell Count:</label>\n <input type=\"number\" id=\"wbc\" name=\"wbc\">\n <button type=\"submit\">Calculate</button>\n </form>\n `;\n break;\n case 'microbiology':\n calculatorContent.innerHTML = `\n <h3>Microbiology Calculator</h3>\n <p>Calculate microbial growth rates, colony counts, and more.</p>\n <form>\n <label for=\"colonies\">Colony Count:</label>\n <input type=\"number\" id=\"colonies\" name=\"colonies\">\n <button type=\"submit\">Calculate</button>\n </form>\n `;\n break;\n case 'chemical-pathology':\n calculatorContent.innerHTML = `\n <h3>Chemical Pathology Calculator</h3>\n <p>Calculate enzyme levels, metabolic panel results, and more.</p>\n <form>\n <label for=\"enzyme\">Enzyme Level:</label>\n <input type=\"number\" id=\"enzyme\" name=\"enzyme\">\n <button type=\"submit\">Calculate</button>\n </form>\n `;\n break;\n default:\n calculatorContent.innerHTML = `<p>No calculator available for this category.</p>`;\n }\n}\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 271, + "completion_tokens": 1353, + "total_tokens": 1624, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 271 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..b9b017e --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# labpro.scroll.pub +Website generated by DeepSeek from prompt: Create an interactive website for medical laboratory professionals. Website should provide various useful information on lab test, under these card categories; hematology, microbiology, chemical Pathology. Add relevant calculators under them. \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..e9442fc --- /dev/null +++ b/script.js @@ -0,0 +1,44 @@ +function showCalculator(category) { + const calculatorSection = document.getElementById('calculator-section'); + const calculatorContent = document.getElementById('calculator-content'); + + calculatorSection.classList.remove('hidden'); + + switch (category) { + case 'hematology': + calculatorContent.innerHTML = ` + <h3>Hematology Calculator</h3> + <p>Calculate blood cell counts, hemoglobin levels, and more.</p> + <form> + <label for="wbc">White Blood Cell Count:</label> + <input type="number" id="wbc" name="wbc"> + <button type="submit">Calculate</button> + </form> + `; + break; + case 'microbiology': + calculatorContent.innerHTML = ` + <h3>Microbiology Calculator</h3> + <p>Calculate microbial growth rates, colony counts, and more.</p> + <form> + <label for="colonies">Colony Count:</label> + <input type="number" id="colonies" name="colonies"> + <button type="submit">Calculate</button> + </form> + `; + break; + case 'chemical-pathology': + calculatorContent.innerHTML = ` + <h3>Chemical Pathology Calculator</h3> + <p>Calculate enzyme levels, metabolic panel results, and more.</p> + <form> + <label for="enzyme">Enzyme Level:</label> + <input type="number" id="enzyme" name="enzyme"> + <button type="submit">Calculate</button> + </form> + `; + break; + default: + calculatorContent.innerHTML = `<p>No calculator available for this category.</p>`; + } +} \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..14b2d8d --- /dev/null +++ b/style.css @@ -0,0 +1,116 @@ +:root { + --primary-color: #2c3e50; + --secondary-color: #3498db; + --background-color: #ecf0f1; + --text-color: #2c3e50; + --card-bg: #ffffff; + --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); +} + +body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + margin: 0; + padding: 0; + background-color: var(--background-color); + color: var(--text-color); + line-height: 1.6; +} + +header { + background-color: var(--primary-color); + color: white; + padding: 2rem; + text-align: center; +} + +header h1 { + margin: 0; + font-size: 2.5rem; +} + +header p { + margin: 0.5rem 0 0; + font-size: 1.2rem; +} + +.card-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); + gap: 2rem; + padding: 2rem; +} + +.card { + background-color: var(--card-bg); + border-radius: 8px; + box-shadow: var(--card-shadow); + padding: 2rem; + transition: transform 0.3s ease; +} + +.card:hover { + transform: translateY(-5px); +} + +.card h2 { + margin-top: 0; + color: var(--secondary-color); +} + +.card p { + margin: 1rem 0; +} + +.card button { + background-color: var(--secondary-color); + color: white; + border: none; + padding: 0.75rem 1.5rem; + border-radius: 4px; + cursor: pointer; + font-size: 1rem; + transition: background-color 0.3s ease; +} + +.card button:hover { + background-color: #2980b9; +} + +#calculator-section { + padding: 2rem; + background-color: var(--card-bg); + margin: 2rem; + border-radius: 8px; + box-shadow: var(--card-shadow); +} + +.hidden { + display: none; +} + +footer { + background-color: var(--primary-color); + color: white; + text-align: center; + padding: 1rem; + margin-top: 2rem; +} + +@media (max-width: 768px) { + header h1 { + font-size: 2rem; + } + + header p { + font-size: 1rem; + } + + .card-grid { + grid-template-columns: 1fr; + padding: 1rem; + } + + .card { + padding: 1.5rem; + } +} \ No newline at end of file