commit 4c4fbc73ea6e48c873b94f7fd26f997681e7f02b
Author: root <root@hub.scroll.pub> Date: 2024-12-28 04:01:04 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..3f3d31a --- /dev/null +++ b/body.html @@ -0,0 +1,65 @@ +<header class="hero"> + <div class="hero-content"> + <h1>AncestryFit</h1> + <p>Your personalized fitness journey, rooted in your heritage.</p> + <a href="#planner" class="cta-button">Start Your Plan</a> + </div> +</header> + +<section id="about" class="section"> + <h2>About AncestryFit</h2> + <p>We create customized workout plans tailored to your ancestry and current fitness level. Our comprehensive planner helps you achieve your goals efficiently and sustainably.</p> +</section> + +<section id="planner" class="section"> + <h2>Create Your Plan</h2> + <form id="fitness-form"> + <div class="form-group"> + <label for="ancestry">Your Ancestry:</label> + <select id="ancestry" name="ancestry" required> + <option value="">Select...</option> + <option value="african">African</option> + <option value="asian">Asian</option> + <option value="european">European</option> + <option value="native-american">Native American</option> + <option value="pacific-islander">Pacific Islander</option> + <option value="mixed">Mixed</option> + </select> + </div> + + <div class="form-group"> + <label for="fitness-level">Fitness Level:</label> + <select id="fitness-level" name="fitness-level" required> + <option value="">Select...</option> + <option value="beginner">Beginner</option> + <option value="intermediate">Intermediate</option> + <option value="advanced">Advanced</option> + </select> + </div> + + <div class="form-group"> + <label for="goal">Your Goal:</label> + <select id="goal" name="goal" required> + <option value="">Select...</option> + <option value="weight-loss">Weight Loss</option> + <option value="muscle-gain">Muscle Gain</option> + <option value="endurance">Endurance</option> + <option value="flexibility">Flexibility</option> + </select> + </div> + + <button type="submit" class="cta-button">Generate Plan</button> + </form> + + <div id="plan-result" class="hidden"> + <h3>Your Personalized Plan</h3> + <div id="plan-content"></div> + </div> +</section> + +<footer> + <nav> + <a href="#about">About</a> + <a href="#planner">Planner</a> + </nav> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..4e98edc --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://ancestryfit.scroll.pub +metaTags +editButton /edit.html +title AncestryFit - Personalized Workouts Based on Your Heritage & Fitness Level +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..ddf95f0 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "dcb28ffb-4b03-4276-a481-db6d7c4bb339", + "object": "chat.completion", + "created": 1735358441, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\nancestryfit.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://ancestryfit.scroll.pub\nmetaTags\neditButton /edit.html\ntitle AncestryFit - Personalized Workouts Based on Your Heritage & Fitness Level\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header class=\"hero\">\n <div class=\"hero-content\">\n <h1>AncestryFit</h1>\n <p>Your personalized fitness journey, rooted in your heritage.</p>\n <a href=\"#planner\" class=\"cta-button\">Start Your Plan</a>\n </div>\n</header>\n\n<section id=\"about\" class=\"section\">\n <h2>About AncestryFit</h2>\n <p>We create customized workout plans tailored to your ancestry and current fitness level. Our comprehensive planner helps you achieve your goals efficiently and sustainably.</p>\n</section>\n\n<section id=\"planner\" class=\"section\">\n <h2>Create Your Plan</h2>\n <form id=\"fitness-form\">\n <div class=\"form-group\">\n <label for=\"ancestry\">Your Ancestry:</label>\n <select id=\"ancestry\" name=\"ancestry\" required>\n <option value=\"\">Select...</option>\n <option value=\"african\">African</option>\n <option value=\"asian\">Asian</option>\n <option value=\"european\">European</option>\n <option value=\"native-american\">Native American</option>\n <option value=\"pacific-islander\">Pacific Islander</option>\n <option value=\"mixed\">Mixed</option>\n </select>\n </div>\n \n <div class=\"form-group\">\n <label for=\"fitness-level\">Fitness Level:</label>\n <select id=\"fitness-level\" name=\"fitness-level\" required>\n <option value=\"\">Select...</option>\n <option value=\"beginner\">Beginner</option>\n <option value=\"intermediate\">Intermediate</option>\n <option value=\"advanced\">Advanced</option>\n </select>\n </div>\n \n <div class=\"form-group\">\n <label for=\"goal\">Your Goal:</label>\n <select id=\"goal\" name=\"goal\" required>\n <option value=\"\">Select...</option>\n <option value=\"weight-loss\">Weight Loss</option>\n <option value=\"muscle-gain\">Muscle Gain</option>\n <option value=\"endurance\">Endurance</option>\n <option value=\"flexibility\">Flexibility</option>\n </select>\n </div>\n \n <button type=\"submit\" class=\"cta-button\">Generate Plan</button>\n </form>\n \n <div id=\"plan-result\" class=\"hidden\">\n <h3>Your Personalized Plan</h3>\n <div id=\"plan-content\"></div>\n </div>\n</section>\n\n<footer>\n <nav>\n <a href=\"#about\">About</a>\n <a href=\"#planner\">Planner</a>\n </nav>\n</footer>\n---style.css---\n:root {\n --primary-color: #1a73e8;\n --secondary-color: #34a853;\n --background-color: #f5f5f5;\n --text-color: #333;\n}\n\nbody {\n font-family: 'Segoe 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\n.hero {\n background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n color: white;\n padding: 4rem 1rem;\n text-align: center;\n}\n\n.hero-content {\n max-width: 800px;\n margin: 0 auto;\n}\n\n.cta-button {\n display: inline-block;\n padding: 0.8rem 2rem;\n background-color: white;\n color: var(--primary-color);\n text-decoration: none;\n border-radius: 25px;\n transition: all 0.3s ease;\n}\n\n.cta-button:hover {\n background-color: var(--secondary-color);\n color: white;\n}\n\n.section {\n padding: 2rem 1rem;\n max-width: 800px;\n margin: 0 auto;\n}\n\n.form-group {\n margin-bottom: 1.5rem;\n}\n\nlabel {\n display: block;\n margin-bottom: 0.5rem;\n}\n\nselect {\n width: 100%;\n padding: 0.8rem;\n border: 1px solid #ddd;\n border-radius: 4px;\n}\n\n#plan-result {\n margin-top: 2rem;\n padding: 1.5rem;\n background-color: white;\n border-radius: 8px;\n box-shadow: 0 2px 4px rgba(0,0,0,0.1);\n}\n\n.hidden {\n display: none;\n}\n\nfooter {\n text-align: center;\n padding: 1.5rem;\n background-color: var(--primary-color);\n color: white;\n}\n\nfooter a {\n color: white;\n text-decoration: none;\n margin: 0 1rem;\n}\n\n@media (max-width: 600px) {\n .hero {\n padding: 2rem 1rem;\n }\n \n .cta-button {\n width: 100%;\n }\n}\n---script.js---\ndocument.getElementById('fitness-form').addEventListener('submit', function(e) {\n e.preventDefault();\n \n const ancestry = document.getElementById('ancestry').value;\n const fitnessLevel = document.getElementById('fitness-level').value;\n const goal = document.getElementById('goal').value;\n \n const planContent = generatePlan(ancestry, fitnessLevel, goal);\n \n document.getElementById('plan-content').innerHTML = planContent;\n document.getElementById('plan-result').classList.remove('hidden');\n});\n\nfunction generatePlan(ancestry, fitnessLevel, goal) {\n const plans = {\n beginner: {\n 'weight-loss': 'Start with 30 minutes of walking daily and basic bodyweight exercises.',\n 'muscle-gain': 'Begin with light weights and focus on proper form.',\n 'endurance': 'Start with short cardio sessions and gradually increase duration.',\n 'flexibility': 'Begin with basic stretching routines and yoga poses.'\n },\n intermediate: {\n 'weight-loss': 'Incorporate HIIT workouts and strength training 3-4 times a week.',\n 'muscle-gain': 'Focus on progressive overload and compound exercises.',\n 'endurance': 'Add interval training and longer cardio sessions.',\n 'flexibility': 'Incorporate dynamic stretching and more advanced yoga poses.'\n },\n advanced: {\n 'weight-loss': 'Combine intense strength training with HIIT and proper nutrition.',\n 'muscle-gain': 'Focus on advanced training techniques and nutrition optimization.',\n 'endurance': 'Incorporate long-distance training and sport-specific drills.',\n 'flexibility': 'Practice advanced yoga and mobility exercises.'\n }\n };\n \n const ancestryTips = {\n african: 'Consider incorporating high-intensity workouts and explosive movements.',\n asian: 'Focus on balance and flexibility with martial arts-inspired exercises.',\n european: 'Incorporate strength training and endurance exercises.',\n 'native-american': 'Include functional movements and outdoor activities.',\n 'pacific-islander': 'Focus on bodyweight exercises and functional strength.',\n mixed: 'Combine elements from different ancestral backgrounds.'\n };\n \n const basePlan = plans[fitnessLevel][goal];\n const ancestryTip = ancestryTips[ancestry];\n \n return `\n <p>${basePlan}</p>\n <p><strong>Ancestry Tip:</strong> ${ancestryTip}</p>\n <p>Remember to stay consistent and listen to your body. Adjust the plan as needed based on your progress.</p>\n `;\n}\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 256, + "completion_tokens": 1710, + "total_tokens": 1966, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 256 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..8ef7805 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# ancestryfit.scroll.pub +Website generated by DeepSeek from prompt: fitness website that personalizes workouts based on someones ancestry and fitness levels. very comprehensive planner to reach goals \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..79063c2 --- /dev/null +++ b/script.js @@ -0,0 +1,53 @@ +document.getElementById('fitness-form').addEventListener('submit', function(e) { + e.preventDefault(); + + const ancestry = document.getElementById('ancestry').value; + const fitnessLevel = document.getElementById('fitness-level').value; + const goal = document.getElementById('goal').value; + + const planContent = generatePlan(ancestry, fitnessLevel, goal); + + document.getElementById('plan-content').innerHTML = planContent; + document.getElementById('plan-result').classList.remove('hidden'); +}); + +function generatePlan(ancestry, fitnessLevel, goal) { + const plans = { + beginner: { + 'weight-loss': 'Start with 30 minutes of walking daily and basic bodyweight exercises.', + 'muscle-gain': 'Begin with light weights and focus on proper form.', + 'endurance': 'Start with short cardio sessions and gradually increase duration.', + 'flexibility': 'Begin with basic stretching routines and yoga poses.' + }, + intermediate: { + 'weight-loss': 'Incorporate HIIT workouts and strength training 3-4 times a week.', + 'muscle-gain': 'Focus on progressive overload and compound exercises.', + 'endurance': 'Add interval training and longer cardio sessions.', + 'flexibility': 'Incorporate dynamic stretching and more advanced yoga poses.' + }, + advanced: { + 'weight-loss': 'Combine intense strength training with HIIT and proper nutrition.', + 'muscle-gain': 'Focus on advanced training techniques and nutrition optimization.', + 'endurance': 'Incorporate long-distance training and sport-specific drills.', + 'flexibility': 'Practice advanced yoga and mobility exercises.' + } + }; + + const ancestryTips = { + african: 'Consider incorporating high-intensity workouts and explosive movements.', + asian: 'Focus on balance and flexibility with martial arts-inspired exercises.', + european: 'Incorporate strength training and endurance exercises.', + 'native-american': 'Include functional movements and outdoor activities.', + 'pacific-islander': 'Focus on bodyweight exercises and functional strength.', + mixed: 'Combine elements from different ancestral backgrounds.' + }; + + const basePlan = plans[fitnessLevel][goal]; + const ancestryTip = ancestryTips[ancestry]; + + return ` + <p>${basePlan}</p> + <p><strong>Ancestry Tip:</strong> ${ancestryTip}</p> + <p>Remember to stay consistent and listen to your body. Adjust the plan as needed based on your progress.</p> + `; +} \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..54f97ed --- /dev/null +++ b/style.css @@ -0,0 +1,99 @@ +:root { + --primary-color: #1a73e8; + --secondary-color: #34a853; + --background-color: #f5f5f5; + --text-color: #333; +} + +body { + font-family: 'Segoe UI', sans-serif; + line-height: 1.6; + color: var(--text-color); + background-color: var(--background-color); + margin: 0; + padding: 0; +} + +.hero { + background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); + color: white; + padding: 4rem 1rem; + text-align: center; +} + +.hero-content { + max-width: 800px; + margin: 0 auto; +} + +.cta-button { + display: inline-block; + padding: 0.8rem 2rem; + background-color: white; + color: var(--primary-color); + text-decoration: none; + border-radius: 25px; + transition: all 0.3s ease; +} + +.cta-button:hover { + background-color: var(--secondary-color); + color: white; +} + +.section { + padding: 2rem 1rem; + max-width: 800px; + margin: 0 auto; +} + +.form-group { + margin-bottom: 1.5rem; +} + +label { + display: block; + margin-bottom: 0.5rem; +} + +select { + width: 100%; + padding: 0.8rem; + border: 1px solid #ddd; + border-radius: 4px; +} + +#plan-result { + margin-top: 2rem; + padding: 1.5rem; + background-color: white; + border-radius: 8px; + box-shadow: 0 2px 4px rgba(0,0,0,0.1); +} + +.hidden { + display: none; +} + +footer { + text-align: center; + padding: 1.5rem; + background-color: var(--primary-color); + color: white; +} + +footer a { + color: white; + text-decoration: none; + margin: 0 1rem; +} + +@media (max-width: 600px) { + .hero { + padding: 2rem 1rem; + } + + .cta-button { + width: 100%; + } +} \ No newline at end of file