commit 199ed14ac1e9c05f2c3058d61a09a7a1ab3fb918
Author: root <root@hub.scroll.pub> Date: 2024-12-28 00:44:09 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..d25f472 --- /dev/null +++ b/body.html @@ -0,0 +1,29 @@ +<header> + <h1>Career Compass</h1> + <p>Discover your ideal career path through interactive exploration.</p> +</header> + +<main> + <section id="intro"> + <h2>Where do you see yourself in 5 years?</h2> + <button id="startBtn">Start Your Journey</button> + </section> + + <section id="quiz" class="hidden"> + <div id="questionContainer"> + <h2 id="question"></h2> + <div id="options"></div> + </div> + <button id="backBtn" class="hidden">Back</button> + </section> + + <section id="results" class="hidden"> + <h2>Your Career Path</h2> + <div id="resultContent"></div> + <button id="restartBtn">Start Over</button> + </section> +</main> + +<footer> + <p>Take the first step towards your future today.</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..dd94e11 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://careercompass.scroll.pub +metaTags +editButton /edit.html +title Career Compass - Find Your Path +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..a0d7d74 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "459fddac-d646-4fb5-9aec-1b438e045715", + "object": "chat.completion", + "created": 1735346627, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\ncareercompass.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://careercompass.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Career Compass - Find Your Path\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>Career Compass</h1>\n <p>Discover your ideal career path through interactive exploration.</p>\n</header>\n\n<main>\n <section id=\"intro\">\n <h2>Where do you see yourself in 5 years?</h2>\n <button id=\"startBtn\">Start Your Journey</button>\n </section>\n\n <section id=\"quiz\" class=\"hidden\">\n <div id=\"questionContainer\">\n <h2 id=\"question\"></h2>\n <div id=\"options\"></div>\n </div>\n <button id=\"backBtn\" class=\"hidden\">Back</button>\n </section>\n\n <section id=\"results\" class=\"hidden\">\n <h2>Your Career Path</h2>\n <div id=\"resultContent\"></div>\n <button id=\"restartBtn\">Start Over</button>\n </section>\n</main>\n\n<footer>\n <p>Take the first step towards your future today.</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #2563eb;\n --secondary-color: #1e40af;\n --background-color: #f8fafc;\n --text-color: #1e293b;\n --border-radius: 8px;\n --transition-speed: 0.3s;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: system-ui, -apple-system, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n background-color: var(--background-color);\n padding: 2rem;\n max-width: 800px;\n margin: 0 auto;\n}\n\nheader {\n text-align: center;\n margin-bottom: 2rem;\n}\n\nh1 {\n color: var(--primary-color);\n font-size: 2.5rem;\n margin-bottom: 0.5rem;\n}\n\nsection {\n background: white;\n padding: 2rem;\n border-radius: var(--border-radius);\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n margin-bottom: 1rem;\n}\n\nbutton {\n background-color: var(--primary-color);\n color: white;\n border: none;\n padding: 0.8rem 1.5rem;\n border-radius: var(--border-radius);\n cursor: pointer;\n font-size: 1rem;\n transition: background-color var(--transition-speed);\n}\n\nbutton:hover {\n background-color: var(--secondary-color);\n}\n\n#options {\n display: grid;\n gap: 1rem;\n margin: 1.5rem 0;\n}\n\n.option {\n padding: 1rem;\n border: 1px solid #ddd;\n border-radius: var(--border-radius);\n cursor: pointer;\n transition: all var(--transition-speed);\n}\n\n.option:hover {\n background-color: var(--background-color);\n border-color: var(--primary-color);\n}\n\n.hidden {\n display: none;\n}\n\n#results {\n text-align: center;\n}\n\n#resultContent {\n margin: 2rem 0;\n font-size: 1.2rem;\n}\n\n@media (max-width: 600px) {\n body {\n padding: 1rem;\n }\n \n h1 {\n font-size: 2rem;\n }\n \n section {\n padding: 1rem;\n }\n}\n---script.js---\nconst quizData = [\n {\n question: \"What type of work environment do you prefer?\",\n options: [\n { text: \"Structured and organized\", path: \"corporate\" },\n { text: \"Creative and flexible\", path: \"creative\" },\n { text: \"Fast-paced and challenging\", path: \"startup\" }\n ]\n },\n {\n question: \"What are you most passionate about?\",\n options: [\n { text: \"Helping others\", path: \"helping\" },\n { text: \"Solving complex problems\", path: \"problem-solving\" },\n { text: \"Creating new things\", path: \"creating\" }\n ]\n },\n {\n question: \"What's your ideal work style?\",\n options: [\n { text: \"Team collaboration\", path: \"team\" },\n { text: \"Independent work\", path: \"independent\" },\n { text: \"Leadership roles\", path: \"leadership\" }\n ]\n }\n];\n\nconst careerPaths = {\n corporate: {\n helping: [\"Human Resources\", \"Corporate Training\"],\n \"problem-solving\": [\"Management Consulting\", \"Financial Analysis\"],\n creating: [\"Product Management\", \"Corporate Strategy\"]\n },\n creative: {\n helping: [\"Graphic Design\", \"UI/UX Design\"],\n \"problem-solving\": [\"Creative Direction\", \"Advertising\"],\n creating: [\"Content Creation\", \"Art Direction\"]\n },\n startup: {\n helping: [\"Customer Success\", \"Community Management\"],\n \"problem-solving\": [\"Data Science\", \"Software Engineering\"],\n creating: [\"Entrepreneurship\", \"Product Development\"]\n }\n};\n\nlet currentQuestion = 0;\nlet userPath = [];\n\nconst startBtn = document.getElementById('startBtn');\nconst quizSection = document.getElementById('quiz');\nconst questionEl = document.getElementById('question');\nconst optionsEl = document.getElementById('options');\nconst backBtn = document.getElementById('backBtn');\nconst resultsSection = document.getElementById('results');\nconst resultContent = document.getElementById('resultContent');\nconst restartBtn = document.getElementById('restartBtn');\n\nstartBtn.addEventListener('click', startQuiz);\nbackBtn.addEventListener('click', previousQuestion);\nrestartBtn.addEventListener('click', restartQuiz);\n\nfunction startQuiz() {\n document.getElementById('intro').classList.add('hidden');\n quizSection.classList.remove('hidden');\n loadQuestion();\n}\n\nfunction loadQuestion() {\n const currentQuizData = quizData[currentQuestion];\n questionEl.textContent = currentQuizData.question;\n optionsEl.innerHTML = '';\n \n currentQuizData.options.forEach(option => {\n const button = document.createElement('div');\n button.classList.add('option');\n button.textContent = option.text;\n button.addEventListener('click', () => selectOption(option.path));\n optionsEl.appendChild(button);\n });\n \n backBtn.classList.toggle('hidden', currentQuestion === 0);\n}\n\nfunction selectOption(path) {\n userPath.push(path);\n if (currentQuestion < quizData.length - 1) {\n currentQuestion++;\n loadQuestion();\n } else {\n showResults();\n }\n}\n\nfunction previousQuestion() {\n if (currentQuestion > 0) {\n currentQuestion--;\n userPath.pop();\n loadQuestion();\n }\n}\n\nfunction showResults() {\n quizSection.classList.add('hidden');\n resultsSection.classList.remove('hidden');\n \n const [environment, passion, workStyle] = userPath;\n const possibleCareers = careerPaths[environment][passion];\n \n resultContent.innerHTML = `\n <p>Based on your preferences, here are some career paths to consider:</p>\n <ul>\n ${possibleCareers.map(career => `<li>${career}</li>`).join('')}\n </ul>\n <p>Remember, this is just a starting point. Explore these options further to find your perfect fit!</p>\n `;\n}\n\nfunction restartQuiz() {\n currentQuestion = 0;\n userPath = [];\n resultsSection.classList.add('hidden');\n quizSection.classList.remove('hidden');\n loadQuestion();\n}\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 278, + "completion_tokens": 1676, + "total_tokens": 1954, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 278 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..7e1237c --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# careercompass.scroll.pub +Website generated by DeepSeek from prompt: i want to make a website that will help me decide what career path i want to take. be creative it should have some interactivity and just be general at first then consolidate the next options available after a choice is made \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..da7e24c --- /dev/null +++ b/script.js @@ -0,0 +1,124 @@ +const quizData = [ + { + question: "What type of work environment do you prefer?", + options: [ + { text: "Structured and organized", path: "corporate" }, + { text: "Creative and flexible", path: "creative" }, + { text: "Fast-paced and challenging", path: "startup" } + ] + }, + { + question: "What are you most passionate about?", + options: [ + { text: "Helping others", path: "helping" }, + { text: "Solving complex problems", path: "problem-solving" }, + { text: "Creating new things", path: "creating" } + ] + }, + { + question: "What's your ideal work style?", + options: [ + { text: "Team collaboration", path: "team" }, + { text: "Independent work", path: "independent" }, + { text: "Leadership roles", path: "leadership" } + ] + } +]; + +const careerPaths = { + corporate: { + helping: ["Human Resources", "Corporate Training"], + "problem-solving": ["Management Consulting", "Financial Analysis"], + creating: ["Product Management", "Corporate Strategy"] + }, + creative: { + helping: ["Graphic Design", "UI/UX Design"], + "problem-solving": ["Creative Direction", "Advertising"], + creating: ["Content Creation", "Art Direction"] + }, + startup: { + helping: ["Customer Success", "Community Management"], + "problem-solving": ["Data Science", "Software Engineering"], + creating: ["Entrepreneurship", "Product Development"] + } +}; + +let currentQuestion = 0; +let userPath = []; + +const startBtn = document.getElementById('startBtn'); +const quizSection = document.getElementById('quiz'); +const questionEl = document.getElementById('question'); +const optionsEl = document.getElementById('options'); +const backBtn = document.getElementById('backBtn'); +const resultsSection = document.getElementById('results'); +const resultContent = document.getElementById('resultContent'); +const restartBtn = document.getElementById('restartBtn'); + +startBtn.addEventListener('click', startQuiz); +backBtn.addEventListener('click', previousQuestion); +restartBtn.addEventListener('click', restartQuiz); + +function startQuiz() { + document.getElementById('intro').classList.add('hidden'); + quizSection.classList.remove('hidden'); + loadQuestion(); +} + +function loadQuestion() { + const currentQuizData = quizData[currentQuestion]; + questionEl.textContent = currentQuizData.question; + optionsEl.innerHTML = ''; + + currentQuizData.options.forEach(option => { + const button = document.createElement('div'); + button.classList.add('option'); + button.textContent = option.text; + button.addEventListener('click', () => selectOption(option.path)); + optionsEl.appendChild(button); + }); + + backBtn.classList.toggle('hidden', currentQuestion === 0); +} + +function selectOption(path) { + userPath.push(path); + if (currentQuestion < quizData.length - 1) { + currentQuestion++; + loadQuestion(); + } else { + showResults(); + } +} + +function previousQuestion() { + if (currentQuestion > 0) { + currentQuestion--; + userPath.pop(); + loadQuestion(); + } +} + +function showResults() { + quizSection.classList.add('hidden'); + resultsSection.classList.remove('hidden'); + + const [environment, passion, workStyle] = userPath; + const possibleCareers = careerPaths[environment][passion]; + + resultContent.innerHTML = ` + <p>Based on your preferences, here are some career paths to consider:</p> + <ul> + ${possibleCareers.map(career => `<li>${career}</li>`).join('')} + </ul> + <p>Remember, this is just a starting point. Explore these options further to find your perfect fit!</p> + `; +} + +function restartQuiz() { + currentQuestion = 0; + userPath = []; + resultsSection.classList.add('hidden'); + quizSection.classList.remove('hidden'); + loadQuestion(); +} \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..f2fd011 --- /dev/null +++ b/style.css @@ -0,0 +1,104 @@ +:root { + --primary-color: #2563eb; + --secondary-color: #1e40af; + --background-color: #f8fafc; + --text-color: #1e293b; + --border-radius: 8px; + --transition-speed: 0.3s; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: system-ui, -apple-system, sans-serif; + line-height: 1.6; + color: var(--text-color); + background-color: var(--background-color); + padding: 2rem; + max-width: 800px; + margin: 0 auto; +} + +header { + text-align: center; + margin-bottom: 2rem; +} + +h1 { + color: var(--primary-color); + font-size: 2.5rem; + margin-bottom: 0.5rem; +} + +section { + background: white; + padding: 2rem; + border-radius: var(--border-radius); + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + margin-bottom: 1rem; +} + +button { + background-color: var(--primary-color); + color: white; + border: none; + padding: 0.8rem 1.5rem; + border-radius: var(--border-radius); + cursor: pointer; + font-size: 1rem; + transition: background-color var(--transition-speed); +} + +button:hover { + background-color: var(--secondary-color); +} + +#options { + display: grid; + gap: 1rem; + margin: 1.5rem 0; +} + +.option { + padding: 1rem; + border: 1px solid #ddd; + border-radius: var(--border-radius); + cursor: pointer; + transition: all var(--transition-speed); +} + +.option:hover { + background-color: var(--background-color); + border-color: var(--primary-color); +} + +.hidden { + display: none; +} + +#results { + text-align: center; +} + +#resultContent { + margin: 2rem 0; + font-size: 1.2rem; +} + +@media (max-width: 600px) { + body { + padding: 1rem; + } + + h1 { + font-size: 2rem; + } + + section { + padding: 1rem; + } +} \ No newline at end of file