commit 0ade091a63191e1bcfb30cc07a68d024448e792f
Author: root <root@hub.scroll.pub>
Date: 2024-12-28 02:21:37 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..f2c6ae4
--- /dev/null
+++ b/body.html
@@ -0,0 +1,48 @@
+<header>
+ <h1>TITech Support</h1>
+ <nav>
+ <ul>
+ <li><a href="#inventory">Inventory</a></li>
+ <li><a href="#records">Records</a></li>
+ <li><a href="#tickets">Tickets</a></li>
+ </ul>
+ </nav>
+</header>
+
+<main>
+ <section id="inventory">
+ <h2>Inventory Management</h2>
+ <div class="search-container">
+ <input type="text" id="search" placeholder="Search inventory...">
+ <button onclick="searchInventory()">Search</button>
+ </div>
+ <div id="inventory-list"></div>
+ </section>
+
+ <section id="records">
+ <h2>Support Records</h2>
+ <div class="filter-container">
+ <label for="filter">Filter by:</label>
+ <select id="filter">
+ <option value="all">All</option>
+ <option value="resolved">Resolved</option>
+ <option value="pending">Pending</option>
+ </select>
+ </div>
+ <div id="records-list"></div>
+ </section>
+
+ <section id="tickets">
+ <h2>Support Tickets</h2>
+ <form id="ticket-form">
+ <label for="issue">Describe your issue:</label>
+ <textarea id="issue" required></textarea>
+ <button type="submit">Submit Ticket</button>
+ </form>
+ <div id="tickets-list"></div>
+ </section>
+</main>
+
+<footer>
+ <p>Contact us: support@titech.scroll.pub</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..d0ce3c2
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://titech.scroll.pub
+metaTags
+editButton /edit.html
+title TITech Support - Inventory, Records & Tickets
+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..729e375
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "3700ffea-3413-479a-95ae-457463eff440",
+ "object": "chat.completion",
+ "created": 1735352477,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\ntitech.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://titech.scroll.pub\nmetaTags\neditButton /edit.html\ntitle TITech Support - Inventory, Records & Tickets\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>TITech Support</h1>\n <nav>\n <ul>\n <li><a href=\"#inventory\">Inventory</a></li>\n <li><a href=\"#records\">Records</a></li>\n <li><a href=\"#tickets\">Tickets</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section id=\"inventory\">\n <h2>Inventory Management</h2>\n <div class=\"search-container\">\n <input type=\"text\" id=\"search\" placeholder=\"Search inventory...\">\n <button onclick=\"searchInventory()\">Search</button>\n </div>\n <div id=\"inventory-list\"></div>\n </section>\n\n <section id=\"records\">\n <h2>Support Records</h2>\n <div class=\"filter-container\">\n <label for=\"filter\">Filter by:</label>\n <select id=\"filter\">\n <option value=\"all\">All</option>\n <option value=\"resolved\">Resolved</option>\n <option value=\"pending\">Pending</option>\n </select>\n </div>\n <div id=\"records-list\"></div>\n </section>\n\n <section id=\"tickets\">\n <h2>Support Tickets</h2>\n <form id=\"ticket-form\">\n <label for=\"issue\">Describe your issue:</label>\n <textarea id=\"issue\" required></textarea>\n <button type=\"submit\">Submit Ticket</button>\n </form>\n <div id=\"tickets-list\"></div>\n </section>\n</main>\n\n<footer>\n <p>Contact us: support@titech.scroll.pub</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #1a73e8;\n --secondary-color: #f1f3f4;\n --text-color: #202124;\n --background-color: #ffffff;\n}\n\nbody {\n font-family: 'Segoe UI', system-ui, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n background-color: var(--background-color);\n margin: 0;\n padding: 0;\n}\n\nheader {\n background: var(--primary-color);\n color: white;\n padding: 1rem 2rem;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\nnav ul {\n list-style: none;\n display: flex;\n gap: 1rem;\n}\n\nnav a {\n color: white;\n text-decoration: none;\n padding: 0.5rem 1rem;\n border-radius: 4px;\n transition: background-color 0.3s;\n}\n\nnav a:hover {\n background-color: rgba(255, 255, 255, 0.1);\n}\n\nmain {\n padding: 2rem;\n max-width: 1200px;\n margin: 0 auto;\n}\n\nsection {\n margin-bottom: 2rem;\n}\n\nh2 {\n color: var(--primary-color);\n margin-bottom: 1rem;\n}\n\n.search-container, .filter-container {\n margin-bottom: 1rem;\n}\n\ninput, select, textarea {\n width: 100%;\n padding: 0.5rem;\n margin-top: 0.5rem;\n border: 1px solid #ddd;\n border-radius: 4px;\n}\n\nbutton {\n background-color: var(--primary-color);\n color: white;\n border: none;\n padding: 0.5rem 1rem;\n border-radius: 4px;\n cursor: pointer;\n transition: background-color 0.3s;\n}\n\nbutton:hover {\n background-color: #1557b0;\n}\n\n#inventory-list, #records-list, #tickets-list {\n display: grid;\n gap: 1rem;\n}\n\n.card {\n background: var(--secondary-color);\n padding: 1rem;\n border-radius: 4px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background: var(--secondary-color);\n margin-top: 2rem;\n}\n\n@media (max-width: 768px) {\n header {\n flex-direction: column;\n text-align: center;\n }\n\n nav ul {\n flex-direction: column;\n gap: 0.5rem;\n }\n\n main {\n padding: 1rem;\n }\n}\n---script.js---\n// Sample inventory data\nconst inventory = [\n { id: 1, name: \"Laptop\", quantity: 15 },\n { id: 2, name: \"Monitor\", quantity: 20 },\n { id: 3, name: \"Keyboard\", quantity: 30 }\n];\n\n// Sample records data\nconst records = [\n { id: 1, issue: \"Printer not working\", status: \"resolved\" },\n { id: 2, issue: \"Network connectivity\", status: \"pending\" }\n];\n\n// Sample tickets data\nlet tickets = [];\n\n// Display inventory\nfunction displayInventory(items) {\n const inventoryList = document.getElementById('inventory-list');\n inventoryList.innerHTML = items.map(item => `\n <div class=\"card\">\n <h3>${item.name}</h3>\n <p>Quantity: ${item.quantity}</p>\n </div>\n `).join('');\n}\n\n// Display records\nfunction displayRecords(filter = 'all') {\n const recordsList = document.getElementById('records-list');\n const filteredRecords = filter === 'all' ? records : records.filter(r => r.status === filter);\n recordsList.innerHTML = filteredRecords.map(record => `\n <div class=\"card\">\n <h3>${record.issue}</h3>\n <p>Status: ${record.status}</p>\n </div>\n `).join('');\n}\n\n// Display tickets\nfunction displayTickets() {\n const ticketsList = document.getElementById('tickets-list');\n ticketsList.innerHTML = tickets.map(ticket => `\n <div class=\"card\">\n <p>${ticket}</p>\n </div>\n `).join('');\n}\n\n// Search inventory\nfunction searchInventory() {\n const searchTerm = document.getElementById('search').value.toLowerCase();\n const filteredInventory = inventory.filter(item => \n item.name.toLowerCase().includes(searchTerm)\n );\n displayInventory(filteredInventory);\n}\n\n// Handle ticket submission\ndocument.getElementById('ticket-form').addEventListener('submit', function(e) {\n e.preventDefault();\n const issue = document.getElementById('issue').value;\n tickets.push(issue);\n displayTickets();\n this.reset();\n});\n\n// Handle record filtering\ndocument.getElementById('filter').addEventListener('change', function() {\n displayRecords(this.value);\n});\n\n// Initial display\ndisplayInventory(inventory);\ndisplayRecords();\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 247,
+ "completion_tokens": 1553,
+ "total_tokens": 1800,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 247
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..1bdf085
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# titech.scroll.pub
+Website generated by DeepSeek from prompt: I need a website for TI support with inventory and records and tickets
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..72420d2
--- /dev/null
+++ b/script.js
@@ -0,0 +1,75 @@
+// Sample inventory data
+const inventory = [
+ { id: 1, name: "Laptop", quantity: 15 },
+ { id: 2, name: "Monitor", quantity: 20 },
+ { id: 3, name: "Keyboard", quantity: 30 }
+];
+
+// Sample records data
+const records = [
+ { id: 1, issue: "Printer not working", status: "resolved" },
+ { id: 2, issue: "Network connectivity", status: "pending" }
+];
+
+// Sample tickets data
+let tickets = [];
+
+// Display inventory
+function displayInventory(items) {
+ const inventoryList = document.getElementById('inventory-list');
+ inventoryList.innerHTML = items.map(item => `
+ <div class="card">
+ <h3>${item.name}</h3>
+ <p>Quantity: ${item.quantity}</p>
+ </div>
+ `).join('');
+}
+
+// Display records
+function displayRecords(filter = 'all') {
+ const recordsList = document.getElementById('records-list');
+ const filteredRecords = filter === 'all' ? records : records.filter(r => r.status === filter);
+ recordsList.innerHTML = filteredRecords.map(record => `
+ <div class="card">
+ <h3>${record.issue}</h3>
+ <p>Status: ${record.status}</p>
+ </div>
+ `).join('');
+}
+
+// Display tickets
+function displayTickets() {
+ const ticketsList = document.getElementById('tickets-list');
+ ticketsList.innerHTML = tickets.map(ticket => `
+ <div class="card">
+ <p>${ticket}</p>
+ </div>
+ `).join('');
+}
+
+// Search inventory
+function searchInventory() {
+ const searchTerm = document.getElementById('search').value.toLowerCase();
+ const filteredInventory = inventory.filter(item =>
+ item.name.toLowerCase().includes(searchTerm)
+ );
+ displayInventory(filteredInventory);
+}
+
+// Handle ticket submission
+document.getElementById('ticket-form').addEventListener('submit', function(e) {
+ e.preventDefault();
+ const issue = document.getElementById('issue').value;
+ tickets.push(issue);
+ displayTickets();
+ this.reset();
+});
+
+// Handle record filtering
+document.getElementById('filter').addEventListener('change', function() {
+ displayRecords(this.value);
+});
+
+// Initial display
+displayInventory(inventory);
+displayRecords();
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..887ee9c
--- /dev/null
+++ b/style.css
@@ -0,0 +1,118 @@
+:root {
+ --primary-color: #1a73e8;
+ --secondary-color: #f1f3f4;
+ --text-color: #202124;
+ --background-color: #ffffff;
+}
+
+body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ background-color: var(--background-color);
+ margin: 0;
+ padding: 0;
+}
+
+header {
+ background: var(--primary-color);
+ color: white;
+ padding: 1rem 2rem;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+nav ul {
+ list-style: none;
+ display: flex;
+ gap: 1rem;
+}
+
+nav a {
+ color: white;
+ text-decoration: none;
+ padding: 0.5rem 1rem;
+ border-radius: 4px;
+ transition: background-color 0.3s;
+}
+
+nav a:hover {
+ background-color: rgba(255, 255, 255, 0.1);
+}
+
+main {
+ padding: 2rem;
+ max-width: 1200px;
+ margin: 0 auto;
+}
+
+section {
+ margin-bottom: 2rem;
+}
+
+h2 {
+ color: var(--primary-color);
+ margin-bottom: 1rem;
+}
+
+.search-container, .filter-container {
+ margin-bottom: 1rem;
+}
+
+input, select, textarea {
+ width: 100%;
+ padding: 0.5rem;
+ margin-top: 0.5rem;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+}
+
+button {
+ background-color: var(--primary-color);
+ color: white;
+ border: none;
+ padding: 0.5rem 1rem;
+ border-radius: 4px;
+ cursor: pointer;
+ transition: background-color 0.3s;
+}
+
+button:hover {
+ background-color: #1557b0;
+}
+
+#inventory-list, #records-list, #tickets-list {
+ display: grid;
+ gap: 1rem;
+}
+
+.card {
+ background: var(--secondary-color);
+ padding: 1rem;
+ border-radius: 4px;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+}
+
+footer {
+ text-align: center;
+ padding: 1rem;
+ background: var(--secondary-color);
+ margin-top: 2rem;
+}
+
+@media (max-width: 768px) {
+ header {
+ flex-direction: column;
+ text-align: center;
+ }
+
+ nav ul {
+ flex-direction: column;
+ gap: 0.5rem;
+ }
+
+ main {
+ padding: 1rem;
+ }
+}
\ No newline at end of file