diff --git a/student-dashboard.html b/student-dashboard.html index b8b51cb..6fa9977 100644 --- a/student-dashboard.html +++ b/student-dashboard.html @@ -1,144 +1,252 @@ - + + - Penguin Hub | Student Dashboard - - - - - - User Profile - - - -
-

User : User

-
- - - - - + +
+
+

Penguin Bot

+
+
+ +
+ +
+ - - + function handleBotResponse(userMessage) { + // Define responses based on user input + const responses = { + 'tell me about famous mathematicians': 'Mathematics has seen many brilliant minds. Would you like to learn about a famous mathematician?', +'tell me about the periodic table': 'The periodic table is a fundamental tool in chemistry. What specific element or concept are you curious about?', +'tell me about the water cycle': 'The water cycle is a fascinating natural process. Would you like to understand its stages?', +'tell me about famous inventors': 'Inventors have shaped our world. Who is your favorite inventor or their invention?', +'tell me about renewable energy': 'Renewable energy is crucial for a sustainable future. Which renewable energy source interests you?', +'tell me about climate change': 'Climate change is a pressing issue. What aspect of climate change would you like to explore?', +'tell me about the human body': 'The human body is a marvel of biology. Is there a specific organ or system you want to know more about?', +'tell me about famous authors': 'Authors have penned timeless classics. Would you like to learn about a famous author or their works?', +'tell me about famous artists': 'Artists have created masterpieces. Who is your favorite artist or art movement?', +'tell me about the Industrial Revolution': 'The Industrial Revolution transformed society. Is there a particular aspect you're interested in?', +'tell me about world capitals': 'The world has many diverse capitals. Would you like to learn about a specific country\'s capital?', +'tell me about historical figures': 'History is filled with influential figures. Who would you like to know more about?', +'tell me about the human brain': 'The brain is a complex organ. What aspect of neuroscience intrigues you?', +'tell me about space exploration': 'Space exploration has led to incredible discoveries. Is there a specific mission or event you want to learn about?', +'tell me about famous astronauts': 'Astronauts are modern-day explorers. Who is your favorite astronaut or space mission?', +'tell me about DNA': 'DNA is the blueprint of life. What do you want to know about genetics and DNA structure?', +'tell me about animal behavior': 'Animal behavior is diverse and fascinating. Is there a particular animal's behavior you're curious about?', +'tell me about computer programming languages': 'Programming languages power software development. Which programming language would you like to explore?', +'tell me about the human rights movement': 'Human rights have been a crucial part of history. Is there a specific human rights activist or movement you're interested in?', +'tell me about classical music': 'Classical music has a rich history. Who is your favorite composer or composition?', +'tell me about famous philosophers': 'Philosophers have shaped our understanding of the world. Would you like to learn about a famous philosopher or philosophical concept?', +'tell me about the Earth's layers': 'The Earth has multiple layers. What aspect of geology or the Earth's structure intrigues you?', +'tell me about ancient civilizations': 'Ancient civilizations left a lasting legacy. Which ancient civilization are you curious about?', +'tell me about the food pyramid': 'The food pyramid guides healthy eating. What dietary topic would you like to explore?', +'tell me about art history': 'Art history spans centuries. Is there a specific art movement or era you're interested in?', +'tell me about chemistry concepts': 'Chemistry explains the world around us. What chemical concept or reaction would you like to understand?', +'tell me about famous musicians': 'Musicians have made significant contributions to music. Who is your favorite musician or band?', +'tell me about robotics': 'Robotics is a field of innovation. What aspect of robotics or robot design interests you?', +'tell me about cultural traditions': 'Cultural traditions vary globally. Is there a specific cultural tradition you'd like to learn about?', +'tell me about the scientific method': 'The scientific method is a foundation of research. How would you like to explore this scientific process?', +'tell me about the history of photography': 'Photography has evolved over time. What aspect of photography or famous photographer would you like to know more about?', +'tell me about environmental conservation': 'Environmental conservation is vital for our planet. What environmental issue or initiative are you interested in?', +'tell me about world landmarks': 'The world is full of iconic landmarks. Is there a particular landmark or monument you'd like to know more about?', +'tell me about famous speeches': 'Famous speeches have inspired change. Would you like to learn about a particular historical speech or orator?', +'tell me about the solar system': 'The solar system is vast and intriguing. What celestial body or space phenomenon would you like to explore?', +'tell me about healthy living': 'Healthy living encompasses various aspects of well-being. What health and wellness topic interests you?', +'tell me about famous battles': 'Historical battles have shaped nations. Is there a specific battle or military leader you're curious about?', +'tell me about cybersecurity': 'Cybersecurity is critical in the digital age. What aspect of online security or hacking interests you?', +'tell me about world religions': 'World religions have diverse beliefs and practices. Is there a specific religion or spiritual concept you'd like to explore?', +'tell me about quantum physics': 'Quantum physics delves into the mysterious world of particles. What quantum concept or phenomenon intrigues you?', +'tell me about literature genres': 'Literature offers various genres. Which literary genre or specific book would you like to discuss?', +'tell me about cultural diversity': 'Cultural diversity enriches our world. Is there a particular aspect of cultural diversity you'd like to learn about?', +'tell me about climate solutions': 'Climate solutions are crucial for a sustainable future. What climate-friendly practices or innovations interest you?', +'tell me about historical revolutions': 'Historical revolutions have shaped societies. Is there a specific revolution or revolutionary figure you're interested in?', +'tell me about genetic engineering': 'Genetic engineering has transformative potential. What genetic modification or application would you like to understand?', +'tell me about nutrition and dieting': 'Nutrition plays a vital role in health. What dietary or nutrition-related topic intrigues you?', +'tell me about classical literature': 'Classical literature offers timeless works. Is there a classic author or literary work you'd like to explore?', +'tell me about entrepreneurship': 'Entrepreneurship drives innovation. What aspect of entrepreneurship or successful entrepreneurs interests you?', +'tell me about wildlife conservation': 'Wildlife conservation is essential for biodiversity. What endangered species or conservation efforts would you like to know more about?', +'tell me about famous art movements': 'Art movements have left a mark on the art world. Which art movement or artistic style intrigues you?', +'tell me about astronomy facts': 'Astronomy is full of fascinating facts. What cosmic phenomena or astronomical fact would you like to explore?', +'tell me about famous psychologists': 'Psychologists have contributed to our understanding of the mind. Is there a famous psychologist or psychological concept you'd like to learn about?', +'tell me about renewable energy technologies': 'Renewable energy technologies are advancing. What renewable energy technology or innovation interests you?', +'tell me about literature adaptations': 'Literature often inspires adaptations. Is there a book-to-movie adaptation or literary adaptation you're curious about?', +'tell me about historical mysteries': 'Historical mysteries intrigue curious minds. Is there a historical enigma or unsolved mystery you'd like to delve into?', +'tell me about computer science concepts': 'Computer science is a broad field. What computer science concept or technology would you like to explore?', +'tell me about world explorers': 'Explorers have ventured into the unknown. Who is your favorite explorer, voyage, or discovery?', +'tell me about environmental activism': 'Environmental activism advocates for a greener planet. What environmental activist or movement interests you?', +'tell me about famous chefs': 'Chefs create culinary delights. Is there a famous chef, cuisine, or cooking technique you'd like to know more about?', +'tell me about architecture styles': 'Architecture styles define structures. Which architectural style or iconic building intrigues you?', +'tell me about social justice': 'Social justice is a pursuit of fairness. What social justice issue, activist, or movement would you like to learn about?', +'tell me about computer programming frameworks': 'Programming frameworks simplify development. What programming framework or library interests you?', +'tell me about world festivals': 'World festivals celebrate diverse cultures. Is there a particular cultural festival or celebration you're interested in?', +'tell me about famous philosophers and their philosophies': 'Philosophers have shaped our thinking. Would you like to explore a specific philosopher and their philosophy?', +'tell me about physics concepts': 'Physics explains the fundamental laws of the universe. What physics concept, theory, or phenomenon would you like to delve into?', +'tell me about famous women in history': 'Women have made significant contributions to history. Is there a specific influential woman you'd like to learn about?', +'tell me about the history of art movements': 'Art movements have defined artistic eras. Which art movement or artistic period would you like to explore?', +'tell me about robotics innovations': 'Robotics continues to advance. What robotic innovation or application intrigues you?', +'tell me about cultural customs and traditions': 'Cultural customs enrich our world. Is there a specific cultural practice, tradition, or ceremony you're curious about?', +'tell me about human anatomy and physiology': 'The human body is a marvel of biology. What aspect of human anatomy or physiology would you like to understand?', +'tell me about famous classical composers': 'Classical composers have left a legacy of music. Who is your favorite classical composer or composition?', +'tell me about ancient history civilizations': 'Ancient civilizations have left enduring legacies. Which ancient civilization or historical period are you interested in?', +'tell me about the culinary arts': 'The culinary arts create culinary masterpieces. Is there a specific culinary technique, dish, or cuisine you'd like to explore?', +'tell me about chemistry experiments': 'Chemistry experiments reveal fascinating reactions. What chemistry experiment or demonstration would you like to know more about?', +'tell me about technological advancements': 'Technology continually evolves. What technological advancement or innovation interests you?', +'tell me about cultural festivals and traditions': 'Cultural festivals showcase diversity. Is there a cultural festival or tradition you'd like to learn about?', +'tell me about historical discoveries': 'Historical discoveries have shaped our understanding. Is there a specific archaeological discovery or historical find you're curious about?', +'tell me about sustainable living practices': 'Sustainable living is vital for the planet. What sustainable lifestyle practices or initiatives interest you?', +'tell me about influential political figures': 'Political figures have impacted history. Is there a specific political leader, figure, or movement you'd like to learn about?', +'tell me about the wonders of the natural world': 'The natural world is full of wonders. What natural phenomenon, wildlife, or ecosystem intrigues you?', +'tell me about neuroscience and the brain': 'Neuroscience explores the mysteries of the brain. What aspect of neuroscience or brain function would you like to explore?', +'tell me about space exploration missions': 'Space exploration missions have expanded our knowledge of the cosmos. Is there a specific space mission or discovery you'd like to know more about?', +'tell me about famous female scientists': 'Female scientists have made significant contributions. Is there a specific pioneering woman in science you'd like to learn about?', +'tell me about energy conservation': 'Energy conservation is important for sustainability. What energy-saving practices or innovations interest you?', +'tell me about historical leaders and their legacies': 'Historical leaders have left enduring legacies. Is there a specific historical leader or their impact you'd like to explore?', +'tell me about the mysteries of the universe': 'The universe holds many mysteries. What cosmic mystery or astronomical phenomenon intrigues you?', +'tell me about mental health and well-being': 'Mental health is essential for overall well-being. What mental health topic or self-care practice would you like to learn about?', +'tell me about influential musicians and their contributions': 'Musicians have shaped music history. Is there a specific influential musician or musical genre you'd like to explore?', +'tell me about advancements in artificial intelligence': 'Artificial intelligence is advancing rapidly. What AI technology, application, or development interests you?', +'tell me about famous environmentalists and their impact': 'Environmentalists have championed conservation. Is there a specific environmentalist or environmental movement you'd like to know more about?', +'tell me about world geography and landmarks': 'Geography showcases diverse landscapes and landmarks. Is there a particular geographical feature or landmark you're interested in?', +'tell me about the history of revolutions': 'Revolutions have reshaped societies. Is there a specific historical revolution or revolutionary leader you'd like to delve into?', +'tell me about genetic engineering applications': 'Genetic engineering has diverse applications. What genetic modification or biotechnology application intrigues you?', +'tell me about healthy eating and nutrition': 'Healthy eating is crucial for well-being. What nutritional advice or dietary topic interests you?', +}; + + // Check if the user's message matches a predefined response + const botResponse = responses[userMessage.toLowerCase()]; + // If there's a predefined response, display it; otherwise, provide a default response + if (botResponse) { + addMessage('bot', botResponse); + } else { + addMessage('bot', 'I\'m not sure how to respond to that. Please feel free to ask me a question.'); + } + } + +