commit 547eb364a899be73771faeed9328c3191ed6ca3d
Author: root <root@hub.scroll.pub>
Date: 2025-01-05 00:10:19 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..9f4cf01
--- /dev/null
+++ b/body.html
@@ -0,0 +1,44 @@
+<header>
+ <h1>Univiz</h1>
+ <p>Your guide to comparing North American universities</p>
+</header>
+
+<main>
+ <section class="search-section">
+ <div class="search-container">
+ <input type="text" id="searchInput" placeholder="Search universities..." aria-label="Search universities">
+ <button id="searchButton">Search</button>
+ </div>
+ </section>
+
+ <section class="comparison-section">
+ <div class="filters">
+ <h2>Filters</h2>
+ <div class="filter-group">
+ <label for="location">Location:</label>
+ <select id="location">
+ <option value="all">All</option>
+ <option value="usa">USA</option>
+ <option value="canada">Canada</option>
+ <option value="mexico">Mexico</option>
+ </select>
+ </div>
+ <div class="filter-group">
+ <label for="tuition">Max Tuition:</label>
+ <input type="range" id="tuition" min="0" max="100000" value="50000">
+ <span id="tuitionValue">$50,000</span>
+ </div>
+ </div>
+
+ <div class="results">
+ <h2>University Comparison</h2>
+ <div class="university-grid" id="universityGrid">
+ <!-- University cards will be dynamically inserted here -->
+ </div>
+ </div>
+ </section>
+</main>
+
+<footer>
+ <p>Made with ❤️ for students</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..108bf4a
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://univiz.scroll.pub
+metaTags
+editButton /edit.html
+title Univiz - Compare North American Universities for High School Students
+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..9797a29
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "209ab940-b409-434a-a596-d075ab29d448",
+ "object": "chat.completion",
+ "created": 1736035791,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nuniviz.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://univiz.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Univiz - Compare North American Universities for High School Students\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>Univiz</h1>\n <p>Your guide to comparing North American universities</p>\n</header>\n\n<main>\n <section class=\"search-section\">\n <div class=\"search-container\">\n <input type=\"text\" id=\"searchInput\" placeholder=\"Search universities...\" aria-label=\"Search universities\">\n <button id=\"searchButton\">Search</button>\n </div>\n </section>\n\n <section class=\"comparison-section\">\n <div class=\"filters\">\n <h2>Filters</h2>\n <div class=\"filter-group\">\n <label for=\"location\">Location:</label>\n <select id=\"location\">\n <option value=\"all\">All</option>\n <option value=\"usa\">USA</option>\n <option value=\"canada\">Canada</option>\n <option value=\"mexico\">Mexico</option>\n </select>\n </div>\n <div class=\"filter-group\">\n <label for=\"tuition\">Max Tuition:</label>\n <input type=\"range\" id=\"tuition\" min=\"0\" max=\"100000\" value=\"50000\">\n <span id=\"tuitionValue\">$50,000</span>\n </div>\n </div>\n\n <div class=\"results\">\n <h2>University Comparison</h2>\n <div class=\"university-grid\" id=\"universityGrid\">\n <!-- University cards will be dynamically inserted here -->\n </div>\n </div>\n </section>\n</main>\n\n<footer>\n <p>Made with ❤️ for students</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #1a73e8;\n --secondary-color: #202124;\n --background-color: #f8f9fa;\n --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Segoe UI', system-ui, sans-serif;\n line-height: 1.6;\n color: var(--secondary-color);\n background-color: var(--background-color);\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n}\n\nheader {\n background: var(--primary-color);\n color: white;\n padding: 2rem 1rem;\n text-align: center;\n}\n\nheader h1 {\n font-size: 2.5rem;\n margin-bottom: 0.5rem;\n}\n\n.search-section {\n padding: 2rem 1rem;\n background: white;\n box-shadow: var(--card-shadow);\n}\n\n.search-container {\n max-width: 800px;\n margin: 0 auto;\n display: flex;\n gap: 1rem;\n}\n\n#searchInput {\n flex: 1;\n padding: 0.75rem;\n border: 2px solid #ddd;\n border-radius: 8px;\n font-size: 1rem;\n}\n\n#searchButton {\n padding: 0.75rem 2rem;\n background: var(--primary-color);\n color: white;\n border: none;\n border-radius: 8px;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n\n#searchButton:hover {\n background: #1557b0;\n}\n\n.comparison-section {\n display: grid;\n grid-template-columns: 250px 1fr;\n gap: 2rem;\n max-width: 1200px;\n margin: 2rem auto;\n padding: 0 1rem;\n}\n\n.filters {\n background: white;\n padding: 1.5rem;\n border-radius: 8px;\n box-shadow: var(--card-shadow);\n}\n\n.filter-group {\n margin-bottom: 1.5rem;\n}\n\n.filter-group label {\n display: block;\n margin-bottom: 0.5rem;\n font-weight: 500;\n}\n\n.filter-group select,\n.filter-group input {\n width: 100%;\n padding: 0.5rem;\n border: 2px solid #ddd;\n border-radius: 4px;\n}\n\n.university-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));\n gap: 1.5rem;\n}\n\n.university-card {\n background: white;\n border-radius: 8px;\n box-shadow: var(--card-shadow);\n overflow: hidden;\n transition: transform 0.3s ease;\n}\n\n.university-card:hover {\n transform: translateY(-5px);\n}\n\n.university-card img {\n width: 100%;\n height: 180px;\n object-fit: cover;\n}\n\n.university-card-content {\n padding: 1.5rem;\n}\n\n.university-card h3 {\n margin-bottom: 0.5rem;\n}\n\n.university-card p {\n color: #666;\n margin-bottom: 0.5rem;\n}\n\nfooter {\n margin-top: auto;\n text-align: center;\n padding: 1.5rem;\n background: var(--secondary-color);\n color: white;\n}\n\n@media (max-width: 768px) {\n .comparison-section {\n grid-template-columns: 1fr;\n }\n \n .search-container {\n flex-direction: column;\n }\n \n #searchButton {\n width: 100%;\n }\n}\n---script.js---\n// Sample university data\nconst universities = [\n {\n name: \"Harvard University\",\n location: \"USA\",\n tuition: 51000,\n image: \"harvard.jpg\",\n description: \"Ivy League university in Cambridge, Massachusetts\"\n },\n {\n name: \"University of Toronto\",\n location: \"Canada\",\n tuition: 45000,\n image: \"toronto.jpg\",\n description: \"Leading Canadian university in Ontario\"\n },\n {\n name: \"Stanford University\",\n location: \"USA\",\n tuition: 53000,\n image: \"stanford.jpg\",\n description: \"Private research university in California\"\n },\n {\n name: \"Universidad Nacional Autónoma de México\",\n location: \"Mexico\",\n tuition: 800,\n image: \"unam.jpg\",\n description: \"Public research university in Mexico City\"\n }\n];\n\n// DOM Elements\nconst searchInput = document.getElementById('searchInput');\nconst searchButton = document.getElementById('searchButton');\nconst locationFilter = document.getElementById('location');\nconst tuitionFilter = document.getElementById('tuition');\nconst tuitionValue = document.getElementById('tuitionValue');\nconst universityGrid = document.getElementById('universityGrid');\n\n// Event Listeners\nsearchButton.addEventListener('click', filterUniversities);\nlocationFilter.addEventListener('change', filterUniversities);\ntuitionFilter.addEventListener('input', updateTuitionValue);\ntuitionFilter.addEventListener('change', filterUniversities);\n\n// Initial render\nrenderUniversities(universities);\n\nfunction renderUniversities(data) {\n universityGrid.innerHTML = data.map(university => `\n <div class=\"university-card\">\n <img src=\"${university.image}\" alt=\"${university.name}\">\n <div class=\"university-card-content\">\n <h3>${university.name}</h3>\n <p>${university.description}</p>\n <p><strong>Location:</strong> ${university.location}</p>\n <p><strong>Tuition:</strong> $${university.tuition.toLocaleString()}</p>\n </div>\n </div>\n `).join('');\n}\n\nfunction filterUniversities() {\n const searchTerm = searchInput.value.toLowerCase();\n const location = locationFilter.value;\n const maxTuition = parseInt(tuitionFilter.value);\n\n const filtered = universities.filter(university => {\n const matchesSearch = university.name.toLowerCase().includes(searchTerm);\n const matchesLocation = location === 'all' || university.location.toLowerCase() === location;\n const matchesTuition = university.tuition <= maxTuition;\n return matchesSearch && matchesLocation && matchesTuition;\n });\n\n renderUniversities(filtered);\n}\n\nfunction updateTuitionValue() {\n tuitionValue.textContent = `$${parseInt(tuitionFilter.value).toLocaleString()}`;\n}\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 245,
+ "completion_tokens": 1852,
+ "total_tokens": 2097,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 245
+ },
+ "system_fingerprint": "fp_3a5770e1b4"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..55ea82c
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# univiz.scroll.pub
+Website generated by DeepSeek from prompt: a website to compare north america universities for high school students
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..eec1b2e
--- /dev/null
+++ b/script.js
@@ -0,0 +1,81 @@
+// Sample university data
+const universities = [
+ {
+ name: "Harvard University",
+ location: "USA",
+ tuition: 51000,
+ image: "harvard.jpg",
+ description: "Ivy League university in Cambridge, Massachusetts"
+ },
+ {
+ name: "University of Toronto",
+ location: "Canada",
+ tuition: 45000,
+ image: "toronto.jpg",
+ description: "Leading Canadian university in Ontario"
+ },
+ {
+ name: "Stanford University",
+ location: "USA",
+ tuition: 53000,
+ image: "stanford.jpg",
+ description: "Private research university in California"
+ },
+ {
+ name: "Universidad Nacional Autónoma de México",
+ location: "Mexico",
+ tuition: 800,
+ image: "unam.jpg",
+ description: "Public research university in Mexico City"
+ }
+];
+
+// DOM Elements
+const searchInput = document.getElementById('searchInput');
+const searchButton = document.getElementById('searchButton');
+const locationFilter = document.getElementById('location');
+const tuitionFilter = document.getElementById('tuition');
+const tuitionValue = document.getElementById('tuitionValue');
+const universityGrid = document.getElementById('universityGrid');
+
+// Event Listeners
+searchButton.addEventListener('click', filterUniversities);
+locationFilter.addEventListener('change', filterUniversities);
+tuitionFilter.addEventListener('input', updateTuitionValue);
+tuitionFilter.addEventListener('change', filterUniversities);
+
+// Initial render
+renderUniversities(universities);
+
+function renderUniversities(data) {
+ universityGrid.innerHTML = data.map(university => `
+ <div class="university-card">
+ <img src="${university.image}" alt="${university.name}">
+ <div class="university-card-content">
+ <h3>${university.name}</h3>
+ <p>${university.description}</p>
+ <p><strong>Location:</strong> ${university.location}</p>
+ <p><strong>Tuition:</strong> $${university.tuition.toLocaleString()}</p>
+ </div>
+ </div>
+ `).join('');
+}
+
+function filterUniversities() {
+ const searchTerm = searchInput.value.toLowerCase();
+ const location = locationFilter.value;
+ const maxTuition = parseInt(tuitionFilter.value);
+
+ const filtered = universities.filter(university => {
+ const matchesSearch = university.name.toLowerCase().includes(searchTerm);
+ const matchesLocation = location === 'all' || university.location.toLowerCase() === location;
+ const matchesTuition = university.tuition <= maxTuition;
+ return matchesSearch && matchesLocation && matchesTuition;
+ });
+
+ renderUniversities(filtered);
+}
+
+function updateTuitionValue() {
+ tuitionValue.textContent = `$${parseInt(tuitionFilter.value).toLocaleString()}`;
+}
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..d38e6b2
--- /dev/null
+++ b/style.css
@@ -0,0 +1,162 @@
+:root {
+ --primary-color: #1a73e8;
+ --secondary-color: #202124;
+ --background-color: #f8f9fa;
+ --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
+}
+
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ line-height: 1.6;
+ color: var(--secondary-color);
+ background-color: var(--background-color);
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+}
+
+header {
+ background: var(--primary-color);
+ color: white;
+ padding: 2rem 1rem;
+ text-align: center;
+}
+
+header h1 {
+ font-size: 2.5rem;
+ margin-bottom: 0.5rem;
+}
+
+.search-section {
+ padding: 2rem 1rem;
+ background: white;
+ box-shadow: var(--card-shadow);
+}
+
+.search-container {
+ max-width: 800px;
+ margin: 0 auto;
+ display: flex;
+ gap: 1rem;
+}
+
+#searchInput {
+ flex: 1;
+ padding: 0.75rem;
+ border: 2px solid #ddd;
+ border-radius: 8px;
+ font-size: 1rem;
+}
+
+#searchButton {
+ padding: 0.75rem 2rem;
+ background: var(--primary-color);
+ color: white;
+ border: none;
+ border-radius: 8px;
+ cursor: pointer;
+ transition: background 0.3s ease;
+}
+
+#searchButton:hover {
+ background: #1557b0;
+}
+
+.comparison-section {
+ display: grid;
+ grid-template-columns: 250px 1fr;
+ gap: 2rem;
+ max-width: 1200px;
+ margin: 2rem auto;
+ padding: 0 1rem;
+}
+
+.filters {
+ background: white;
+ padding: 1.5rem;
+ border-radius: 8px;
+ box-shadow: var(--card-shadow);
+}
+
+.filter-group {
+ margin-bottom: 1.5rem;
+}
+
+.filter-group label {
+ display: block;
+ margin-bottom: 0.5rem;
+ font-weight: 500;
+}
+
+.filter-group select,
+.filter-group input {
+ width: 100%;
+ padding: 0.5rem;
+ border: 2px solid #ddd;
+ border-radius: 4px;
+}
+
+.university-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
+ gap: 1.5rem;
+}
+
+.university-card {
+ background: white;
+ border-radius: 8px;
+ box-shadow: var(--card-shadow);
+ overflow: hidden;
+ transition: transform 0.3s ease;
+}
+
+.university-card:hover {
+ transform: translateY(-5px);
+}
+
+.university-card img {
+ width: 100%;
+ height: 180px;
+ object-fit: cover;
+}
+
+.university-card-content {
+ padding: 1.5rem;
+}
+
+.university-card h3 {
+ margin-bottom: 0.5rem;
+}
+
+.university-card p {
+ color: #666;
+ margin-bottom: 0.5rem;
+}
+
+footer {
+ margin-top: auto;
+ text-align: center;
+ padding: 1.5rem;
+ background: var(--secondary-color);
+ color: white;
+}
+
+@media (max-width: 768px) {
+ .comparison-section {
+ grid-template-columns: 1fr;
+ }
+
+ .search-container {
+ flex-direction: column;
+ }
+
+ #searchButton {
+ width: 100%;
+ }
+}
\ No newline at end of file