commit 8e2f0e3a8ac524d7fe34f6196623bdaebd4494f6
Author: root <root@hub.scroll.pub>
Date: 2024-12-28 08:52:03 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..1ff3c11
--- /dev/null
+++ b/body.html
@@ -0,0 +1,94 @@
+<header>
+ <nav>
+ <div class="logo">DegreeFinder</div>
+ <button class="menu-toggle" aria-label="Toggle menu">
+ <span></span><span></span><span></span>
+ </button>
+ <ul class="nav-links">
+ <li><a href="#quiz">Assessment</a></li>
+ <li><a href="#disciplines">Disciplines</a></li>
+ <li><a href="#about">About</a></li>
+ </ul>
+ </nav>
+</header>
+
+<main>
+ <section class="hero">
+ <h1>Find Your Perfect Degree Path</h1>
+ <p>Discover the academic discipline that aligns with your interests and goals</p>
+ <a href="#quiz" class="cta-button">Start Assessment</a>
+ </section>
+
+ <section id="quiz" class="quiz-section">
+ <h2>Degree Assessment</h2>
+ <div class="quiz-container">
+ <div id="question-container">
+ <p class="question">What interests you most?</p>
+ <div class="options">
+ <button class="option" data-field="stem">Science & Technology</button>
+ <button class="option" data-field="arts">Arts & Humanities</button>
+ <button class="option" data-field="business">Business & Economics</button>
+ <button class="option" data-field="social">Social Sciences</button>
+ </div>
+ </div>
+ <div id="results" class="hidden">
+ <h3>Your Recommended Paths</h3>
+ <div class="results-content"></div>
+ <button class="restart-button">Start Over</button>
+ </div>
+ </div>
+ </section>
+
+ <section id="disciplines" class="disciplines-section">
+ <h2>Academic Disciplines</h2>
+ <div class="discipline-grid">
+ <article class="discipline-card">
+ <h3>STEM</h3>
+ <ul>
+ <li>Computer Science</li>
+ <li>Engineering</li>
+ <li>Mathematics</li>
+ <li>Biology</li>
+ </ul>
+ </article>
+ <article class="discipline-card">
+ <h3>Arts & Humanities</h3>
+ <ul>
+ <li>Literature</li>
+ <li>Philosophy</li>
+ <li>Fine Arts</li>
+ <li>History</li>
+ </ul>
+ </article>
+ <article class="discipline-card">
+ <h3>Business</h3>
+ <ul>
+ <li>Finance</li>
+ <li>Marketing</li>
+ <li>Management</li>
+ <li>Economics</li>
+ </ul>
+ </article>
+ <article class="discipline-card">
+ <h3>Social Sciences</h3>
+ <ul>
+ <li>Psychology</li>
+ <li>Sociology</li>
+ <li>Political Science</li>
+ <li>Anthropology</li>
+ </ul>
+ </article>
+ </div>
+ </section>
+</main>
+
+<footer>
+ <div class="footer-content">
+ <p>DegreeFinder - Helping students find their academic path</p>
+ <nav class="footer-nav">
+ <a href="#quiz">Assessment</a>
+ <a href="#disciplines">Disciplines</a>
+ <a href="#about">About</a>
+ </nav>
+ </div>
+</footer>
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..9e19552
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,10 @@
+buildHtml
+baseUrl https://degree-finder.scroll.pub
+metaTags
+ description Find your ideal college degree and discipline through an interactive assessment tool
+ keywords college degree, university major, academic discipline, career path, education planning
+editButton /edit.html
+title Degree Finder | Discover Your Academic Path
+style.css
+body.html
+script.js
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..d43b029
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,20 @@
+{
+ "id": "msg_01JLtRaC12jwv8Zey2cqUZ6j",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "Here's a website that helps users approximate college degrees and disciplines based on their interests and goals:\n\n---domain---\ndegree-finder.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://degree-finder.scroll.pub\nmetaTags\n description Find your ideal college degree and discipline through an interactive assessment tool\n keywords college degree, university major, academic discipline, career path, education planning\neditButton /edit.html\ntitle Degree Finder | Discover Your Academic Path\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav>\n <div class=\"logo\">DegreeFinder</div>\n <button class=\"menu-toggle\" aria-label=\"Toggle menu\">\n <span></span><span></span><span></span>\n </button>\n <ul class=\"nav-links\">\n <li><a href=\"#quiz\">Assessment</a></li>\n <li><a href=\"#disciplines\">Disciplines</a></li>\n <li><a href=\"#about\">About</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section class=\"hero\">\n <h1>Find Your Perfect Degree Path</h1>\n <p>Discover the academic discipline that aligns with your interests and goals</p>\n <a href=\"#quiz\" class=\"cta-button\">Start Assessment</a>\n </section>\n\n <section id=\"quiz\" class=\"quiz-section\">\n <h2>Degree Assessment</h2>\n <div class=\"quiz-container\">\n <div id=\"question-container\">\n <p class=\"question\">What interests you most?</p>\n <div class=\"options\">\n <button class=\"option\" data-field=\"stem\">Science & Technology</button>\n <button class=\"option\" data-field=\"arts\">Arts & Humanities</button>\n <button class=\"option\" data-field=\"business\">Business & Economics</button>\n <button class=\"option\" data-field=\"social\">Social Sciences</button>\n </div>\n </div>\n <div id=\"results\" class=\"hidden\">\n <h3>Your Recommended Paths</h3>\n <div class=\"results-content\"></div>\n <button class=\"restart-button\">Start Over</button>\n </div>\n </div>\n </section>\n\n <section id=\"disciplines\" class=\"disciplines-section\">\n <h2>Academic Disciplines</h2>\n <div class=\"discipline-grid\">\n <article class=\"discipline-card\">\n <h3>STEM</h3>\n <ul>\n <li>Computer Science</li>\n <li>Engineering</li>\n <li>Mathematics</li>\n <li>Biology</li>\n </ul>\n </article>\n <article class=\"discipline-card\">\n <h3>Arts & Humanities</h3>\n <ul>\n <li>Literature</li>\n <li>Philosophy</li>\n <li>Fine Arts</li>\n <li>History</li>\n </ul>\n </article>\n <article class=\"discipline-card\">\n <h3>Business</h3>\n <ul>\n <li>Finance</li>\n <li>Marketing</li>\n <li>Management</li>\n <li>Economics</li>\n </ul>\n </article>\n <article class=\"discipline-card\">\n <h3>Social Sciences</h3>\n <ul>\n <li>Psychology</li>\n <li>Sociology</li>\n <li>Political Science</li>\n <li>Anthropology</li>\n </ul>\n </article>\n </div>\n </section>\n</main>\n\n<footer>\n <div class=\"footer-content\">\n <p>DegreeFinder - Helping students find their academic path</p>\n <nav class=\"footer-nav\">\n <a href=\"#quiz\">Assessment</a>\n <a href=\"#disciplines\">Disciplines</a>\n <a href=\"#about\">About</a>\n </nav>\n </div>\n</footer>\n\n---style.css---\n:root {\n --primary: #2c3e50;\n --secondary: #3498db;\n --accent: #e74c3c;\n --light: #ecf0f1;\n --dark: #2c3e50;\n --transition: all 0.3s ease;\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(--dark);\n background: var(--light);\n}\n\n/* Header & Navigation */\nheader {\n background: var(--primary);\n padding: 1rem;\n position: fixed;\n width: 100%;\n top: 0;\n z-index: 1000;\n box-shadow: 0 2px 10px rgba(0,0,0,0.1);\n}\n\nnav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.logo {\n color: white;\n font-size: 1.5rem;\n font-weight: bold;\n}\n\n.nav-links {\n display: flex;\n list-style: none;\n gap: 2rem;\n}\n\n.nav-links a {\n color: white;\n text-decoration: none;\n transition: var(--transition);\n}\n\n.nav-links a:hover {\n color: var(--secondary);\n}\n\n.menu-toggle {\n display: none;\n}\n\n/* Hero Section */\n.hero {\n height: 100vh;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n padding: 2rem;\n background: linear-gradient(135deg, var(--primary), var(--secondary));\n color: white;\n}\n\n.hero h1 {\n font-size: 3rem;\n margin-bottom: 1rem;\n animation: fadeIn 1s ease-out;\n}\n\n.cta-button {\n display: inline-block;\n padding: 1rem 2rem;\n background: var(--accent);\n color: white;\n text-decoration: none;\n border-radius: 50px;\n margin-top: 2rem;\n transition: var(--transition);\n}\n\n.cta-button:hover {\n transform: translateY(-3px);\n box-shadow: 0 5px 15px rgba(0,0,0,0.2);\n}\n\n/* Quiz Section */\n.quiz-section {\n padding: 5rem 2rem;\n max-width: 800px;\n margin: 0 auto;\n}\n\n.quiz-container {\n background: white;\n padding: 2rem;\n border-radius: 10px;\n box-shadow: 0 5px 20px rgba(0,0,0,0.1);\n}\n\n.options {\n display: grid;\n gap: 1rem;\n margin-top: 2rem;\n}\n\n.option {\n padding: 1rem;\n border: none;\n background: var(--light);\n border-radius: 5px;\n cursor: pointer;\n transition: var(--transition);\n}\n\n.option:hover {\n background: var(--secondary);\n color: white;\n}\n\n/* Disciplines Section */\n.disciplines-section {\n padding: 5rem 2rem;\n background: white;\n}\n\n.discipline-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n max-width: 1200px;\n margin: 2rem auto;\n}\n\n.discipline-card {\n background: var(--light);\n padding: 2rem;\n border-radius: 10px;\n transition: var(--transition);\n}\n\n.discipline-card:hover {\n transform: translateY(-5px);\n box-shadow: 0 5px 15px rgba(0,0,0,0.1);\n}\n\n/* Animations */\n@keyframes fadeIn {\n from { opacity: 0; transform: translateY(20px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n/* Mobile Responsiveness */\n@media (max-width: 768px) {\n .menu-toggle {\n display: block;\n background: none;\n border: none;\n cursor: pointer;\n }\n\n .menu-toggle span {\n display: block;\n width: 25px;\n height: 3px;\n background: white;\n margin: 5px 0;\n transition: var(--transition);\n }\n\n .nav-links {\n display: none;\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n background: var(--primary);\n flex-direction: column;\n padding: 1rem;\n text-align: center;\n }\n\n .nav-links.active {\n display: flex;\n }\n\n .hero h1 {\n font-size: 2rem;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n // Mobile menu toggle\n const menuToggle = document.querySelector('.menu-toggle');\n const navLinks = document.querySelector('.nav-links');\n \n menuToggle?.addEventListener('click', () => {\n navLinks.classList.toggle('active');\n const spans = menuToggle.querySelectorAll('span');\n spans[0].style.transform = navLinks.classList.contains('active') ? 'rotate(45deg) translate(5px, 5px)' : '';\n spans[1].style.opacity = navLinks.classList.contains('active') ? '0' : '1';\n spans[2].style.transform = navLinks.classList.contains('active') ? 'rotate(-45deg) translate(7px, -7px)' : '';\n });\n\n // Quiz functionality\n const questionContainer = document.getElementById('question-container');\n const results = document.getElementById('results');\n const resultsContent = document.querySelector('.results-content');\n const restartButton = document.querySelector('.restart-button');\n \n const degreeRecommendations = {\n stem: ['Computer Science', 'Engineering', 'Mathematics', 'Physics'],\n arts: ['Fine Arts', 'Literature', 'Philosophy', 'Music'],\n business: ['Business Administration', 'Finance', 'Marketing', 'Economics'],\n social: ['Psychology', 'Sociology', 'Political Science', 'Anthropology']\n };\n\n document.querySelectorAll('.option').forEach(button => {\n button.addEventListener('click', () => {\n const field = button.dataset.field;\n showResults(field);\n });\n });\n\n function showResults(field) {\n questionContainer.style.display = 'none';\n results.classList.remove('hidden');\n \n const recommendations = degreeRecommendations[field];\n resultsContent.innerHTML = `\n <p>Based on your interests, here are some recommended degrees:</p>\n <ul>\n ${recommendations.map(degree => `<li>${degree}</li>`).join('')}\n </ul>\n `;\n }\n\n restartButton?.addEventListener('click', () => {\n questionContainer.style.display = 'block';\n results.classList.add('hidden');\n });\n\n // Smooth scrolling for anchor links\n document.querySelectorAll('a[href^=\"#\"]').forEach(anchor => {\n anchor.addEventListener('click', function (e) {\n e.preventDefault();\n const target = document.querySelector(this.getAttribute('href'));\n if (target) {\n target.scrollIntoView({\n behavior: 'smooth'\n });\n }\n });\n });\n});\n\n---end---"
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 275,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 3048
+ }
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..cbe5b31
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# degree-finder.scroll.pub
+Website generated by Claude from prompt: approximate college degree and discipline
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..b1811b5
--- /dev/null
+++ b/script.js
@@ -0,0 +1,64 @@
+document.addEventListener('DOMContentLoaded', () => {
+ // Mobile menu toggle
+ const menuToggle = document.querySelector('.menu-toggle');
+ const navLinks = document.querySelector('.nav-links');
+
+ menuToggle?.addEventListener('click', () => {
+ navLinks.classList.toggle('active');
+ const spans = menuToggle.querySelectorAll('span');
+ spans[0].style.transform = navLinks.classList.contains('active') ? 'rotate(45deg) translate(5px, 5px)' : '';
+ spans[1].style.opacity = navLinks.classList.contains('active') ? '0' : '1';
+ spans[2].style.transform = navLinks.classList.contains('active') ? 'rotate(-45deg) translate(7px, -7px)' : '';
+ });
+
+ // Quiz functionality
+ const questionContainer = document.getElementById('question-container');
+ const results = document.getElementById('results');
+ const resultsContent = document.querySelector('.results-content');
+ const restartButton = document.querySelector('.restart-button');
+
+ const degreeRecommendations = {
+ stem: ['Computer Science', 'Engineering', 'Mathematics', 'Physics'],
+ arts: ['Fine Arts', 'Literature', 'Philosophy', 'Music'],
+ business: ['Business Administration', 'Finance', 'Marketing', 'Economics'],
+ social: ['Psychology', 'Sociology', 'Political Science', 'Anthropology']
+ };
+
+ document.querySelectorAll('.option').forEach(button => {
+ button.addEventListener('click', () => {
+ const field = button.dataset.field;
+ showResults(field);
+ });
+ });
+
+ function showResults(field) {
+ questionContainer.style.display = 'none';
+ results.classList.remove('hidden');
+
+ const recommendations = degreeRecommendations[field];
+ resultsContent.innerHTML = `
+ <p>Based on your interests, here are some recommended degrees:</p>
+ <ul>
+ ${recommendations.map(degree => `<li>${degree}</li>`).join('')}
+ </ul>
+ `;
+ }
+
+ restartButton?.addEventListener('click', () => {
+ questionContainer.style.display = 'block';
+ results.classList.add('hidden');
+ });
+
+ // Smooth scrolling for anchor links
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ anchor.addEventListener('click', function (e) {
+ e.preventDefault();
+ const target = document.querySelector(this.getAttribute('href'));
+ if (target) {
+ target.scrollIntoView({
+ behavior: 'smooth'
+ });
+ }
+ });
+ });
+});
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..77d08f2
--- /dev/null
+++ b/style.css
@@ -0,0 +1,206 @@
+:root {
+ --primary: #2c3e50;
+ --secondary: #3498db;
+ --accent: #e74c3c;
+ --light: #ecf0f1;
+ --dark: #2c3e50;
+ --transition: all 0.3s ease;
+}
+
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ line-height: 1.6;
+ color: var(--dark);
+ background: var(--light);
+}
+
+/* Header & Navigation */
+header {
+ background: var(--primary);
+ padding: 1rem;
+ position: fixed;
+ width: 100%;
+ top: 0;
+ z-index: 1000;
+ box-shadow: 0 2px 10px rgba(0,0,0,0.1);
+}
+
+nav {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ max-width: 1200px;
+ margin: 0 auto;
+}
+
+.logo {
+ color: white;
+ font-size: 1.5rem;
+ font-weight: bold;
+}
+
+.nav-links {
+ display: flex;
+ list-style: none;
+ gap: 2rem;
+}
+
+.nav-links a {
+ color: white;
+ text-decoration: none;
+ transition: var(--transition);
+}
+
+.nav-links a:hover {
+ color: var(--secondary);
+}
+
+.menu-toggle {
+ display: none;
+}
+
+/* Hero Section */
+.hero {
+ height: 100vh;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ padding: 2rem;
+ background: linear-gradient(135deg, var(--primary), var(--secondary));
+ color: white;
+}
+
+.hero h1 {
+ font-size: 3rem;
+ margin-bottom: 1rem;
+ animation: fadeIn 1s ease-out;
+}
+
+.cta-button {
+ display: inline-block;
+ padding: 1rem 2rem;
+ background: var(--accent);
+ color: white;
+ text-decoration: none;
+ border-radius: 50px;
+ margin-top: 2rem;
+ transition: var(--transition);
+}
+
+.cta-button:hover {
+ transform: translateY(-3px);
+ box-shadow: 0 5px 15px rgba(0,0,0,0.2);
+}
+
+/* Quiz Section */
+.quiz-section {
+ padding: 5rem 2rem;
+ max-width: 800px;
+ margin: 0 auto;
+}
+
+.quiz-container {
+ background: white;
+ padding: 2rem;
+ border-radius: 10px;
+ box-shadow: 0 5px 20px rgba(0,0,0,0.1);
+}
+
+.options {
+ display: grid;
+ gap: 1rem;
+ margin-top: 2rem;
+}
+
+.option {
+ padding: 1rem;
+ border: none;
+ background: var(--light);
+ border-radius: 5px;
+ cursor: pointer;
+ transition: var(--transition);
+}
+
+.option:hover {
+ background: var(--secondary);
+ color: white;
+}
+
+/* Disciplines Section */
+.disciplines-section {
+ padding: 5rem 2rem;
+ background: white;
+}
+
+.discipline-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 2rem;
+ max-width: 1200px;
+ margin: 2rem auto;
+}
+
+.discipline-card {
+ background: var(--light);
+ padding: 2rem;
+ border-radius: 10px;
+ transition: var(--transition);
+}
+
+.discipline-card:hover {
+ transform: translateY(-5px);
+ box-shadow: 0 5px 15px rgba(0,0,0,0.1);
+}
+
+/* Animations */
+@keyframes fadeIn {
+ from { opacity: 0; transform: translateY(20px); }
+ to { opacity: 1; transform: translateY(0); }
+}
+
+/* Mobile Responsiveness */
+@media (max-width: 768px) {
+ .menu-toggle {
+ display: block;
+ background: none;
+ border: none;
+ cursor: pointer;
+ }
+
+ .menu-toggle span {
+ display: block;
+ width: 25px;
+ height: 3px;
+ background: white;
+ margin: 5px 0;
+ transition: var(--transition);
+ }
+
+ .nav-links {
+ display: none;
+ position: absolute;
+ top: 100%;
+ left: 0;
+ right: 0;
+ background: var(--primary);
+ flex-direction: column;
+ padding: 1rem;
+ text-align: center;
+ }
+
+ .nav-links.active {
+ display: flex;
+ }
+
+ .hero h1 {
+ font-size: 2rem;
+ }
+}