diff --git a/actions.php b/actions.php new file mode 100644 index 0000000..0659768 --- /dev/null +++ b/actions.php @@ -0,0 +1,163 @@ + + + + + + Log Your Action - Chirivia + + + + + + + +
+ +
+ +
+
+

Log Your Green Action

+ + 🐣
says thank you!'; + } elseif ($answer === 'no') { + $message = '
🐣
says you should go do it asap!'; + } + } + ?> + + +
+ +

+ Log another action +
+ +

Did you do something good for the environment today?

+
+
+ + +
+
+ + + +
+ + + + + diff --git a/assets/pasted-20251004-192255-8c7c39e6.webp b/assets/pasted-20251004-192255-8c7c39e6.webp new file mode 100644 index 0000000..93108fb Binary files /dev/null and b/assets/pasted-20251004-192255-8c7c39e6.webp differ diff --git a/assets/pasted-20251004-214303-680a8e12.webp b/assets/pasted-20251004-214303-680a8e12.webp new file mode 100644 index 0000000..f0a4e4e Binary files /dev/null and b/assets/pasted-20251004-214303-680a8e12.webp differ diff --git a/assets/pasted-20251004-214642-63e1d23c.webp b/assets/pasted-20251004-214642-63e1d23c.webp new file mode 100644 index 0000000..8d3b256 Binary files /dev/null and b/assets/pasted-20251004-214642-63e1d23c.webp differ diff --git a/assets/pasted-20251004-222033-3b718197.webp b/assets/pasted-20251004-222033-3b718197.webp new file mode 100644 index 0000000..5403202 Binary files /dev/null and b/assets/pasted-20251004-222033-3b718197.webp differ diff --git a/assets/pasted-20251004-231356-34be6417.webp b/assets/pasted-20251004-231356-34be6417.webp new file mode 100644 index 0000000..5403202 Binary files /dev/null and b/assets/pasted-20251004-231356-34be6417.webp differ diff --git a/assets/pasted-20251004-232116-3451ebca.jpg b/assets/pasted-20251004-232116-3451ebca.jpg new file mode 100644 index 0000000..79cfdfd Binary files /dev/null and b/assets/pasted-20251004-232116-3451ebca.jpg differ diff --git a/assets/pasted-20251004-232406-9a846679.png b/assets/pasted-20251004-232406-9a846679.png new file mode 100644 index 0000000..cd7251a Binary files /dev/null and b/assets/pasted-20251004-232406-9a846679.png differ diff --git a/assets/pasted-20251005-003013-33f48a9a.png b/assets/pasted-20251005-003013-33f48a9a.png new file mode 100644 index 0000000..bb10136 Binary files /dev/null and b/assets/pasted-20251005-003013-33f48a9a.png differ diff --git a/assets/pasted-20251005-003524-d4bed2e1.png b/assets/pasted-20251005-003524-d4bed2e1.png new file mode 100644 index 0000000..d9ed975 Binary files /dev/null and b/assets/pasted-20251005-003524-d4bed2e1.png differ diff --git a/assets/pasted-20251005-003819-6e811280.png b/assets/pasted-20251005-003819-6e811280.png new file mode 100644 index 0000000..b08435f Binary files /dev/null and b/assets/pasted-20251005-003819-6e811280.png differ diff --git a/assets/pasted-20251005-004414-8785f3f1.png b/assets/pasted-20251005-004414-8785f3f1.png new file mode 100644 index 0000000..724919a Binary files /dev/null and b/assets/pasted-20251005-004414-8785f3f1.png differ diff --git a/assets/pasted-20251005-145045-e02a01f3.png b/assets/pasted-20251005-145045-e02a01f3.png new file mode 100644 index 0000000..6365e44 Binary files /dev/null and b/assets/pasted-20251005-145045-e02a01f3.png differ diff --git a/assets/pasted-20251005-170401-70cc8986.png b/assets/pasted-20251005-170401-70cc8986.png new file mode 100644 index 0000000..38afe16 Binary files /dev/null and b/assets/pasted-20251005-170401-70cc8986.png differ diff --git a/assets/vm-shot-2025-10-04T19-17-47-673Z.jpg b/assets/vm-shot-2025-10-04T19-17-47-673Z.jpg new file mode 100644 index 0000000..1961b6c Binary files /dev/null and b/assets/vm-shot-2025-10-04T19-17-47-673Z.jpg differ diff --git a/gcp_creds/.htaccess b/gcp_creds/.htaccess new file mode 100644 index 0000000..14249c5 --- /dev/null +++ b/gcp_creds/.htaccess @@ -0,0 +1 @@ +Deny from all \ No newline at end of file diff --git a/index.php b/index.php index 7205f3d..7b6cd7c 100644 --- a/index.php +++ b/index.php @@ -1,150 +1,421 @@ - + - - - New Style - - - - - - - - - - - - - - - - - - - + + + Chirivia - Save the Planet, Save Your Chircuit + + + + -
-
-

Analyzing your requirements and generating your website…

-
- Loading… -
-

AI is collecting your requirements and applying the first changes.

-

This page will update automatically as the plan is implemented.

-

Runtime: PHP — UTC

+ + + + +
+
+
+

Chirivia

+

Save the Planet, Save Your Chircuit.

+
+
+ +
+ Play Trivia + Log an Action + Streaks +
+ +
+
+
+ A cute, healthy pet chircuit. + A happy, playful pet chircuit. +
+
+

Your Pet Chircuit

+

Keep me alive by learning about our planet!

+
+ 🔥 Streak: 🔥 +
+
+
+ +
+
+

About Chirivia

+

Chirivia makes learning about environmental issues fun and engaging. Every correct answer helps you maintain your streak and contributes to a (virtual) healthier planet, keeping your pet happy and healthy.

+

You can also log real-world actions to get extra points!

+
+ A person planting a small tree, symbolizing environmental action. +
+
+
+ + + + + + +
+
+ +
+
+
+

Chat with us!

+ × +
+
+
+

Hi there! How can I help you today?

+
+
+ +
-
- + + + - + \ No newline at end of file diff --git a/privacy.php b/privacy.php new file mode 100644 index 0000000..36f44dc --- /dev/null +++ b/privacy.php @@ -0,0 +1,51 @@ + + + + + + Privacy Policy - Chirivia + + + + + + +
+

Privacy Policy

+

This is a placeholder for the Privacy Policy.

+

Information about how user data is collected, used, and protected will be detailed here.

+ Back to Home +
+ + diff --git a/quiz.php b/quiz.php new file mode 100644 index 0000000..06a7d12 --- /dev/null +++ b/quiz.php @@ -0,0 +1,366 @@ + 'What is the impact of climate change on the planet?', + 'options' => [ + 'Rising sea levels', + 'More natural disasters', + 'Increased temperatures globally', + 'All of the above' + ], + 'answer' => 'All of the above' + ], + [ + 'question' => 'Heat waves enter the atmosphere and are trapped because of the thick layer of gases that surround the planet. This is called…', + 'options' => [ + 'Thick Atmosphere Effect', + 'Greenhouse Effect', + 'Increasing Heat Effect', + 'None of the above' + ], + 'answer' => 'Greenhouse Effect' + ], + [ + 'question' => 'When did climate change begin?', + 'options' => [ + 'When the Industrial Revolution began', + 'When the world population was larger than two billion people', + 'It always has existed', + 'Yesterday!' + ], + 'answer' => ['When the Industrial Revolution began', 'It always has existed'] + ] +]; + +$question_index = isset($_GET['q']) ? (int)$_GET['q'] : 0; + +if ($question_index === 0) { + unset($_SESSION['quiz_completed_reward']); +} + +$feedback = ''; + +if (isset($_POST['answer'])) { + $selected_answer = $_POST['answer']; + $correct_answer = $questions[$question_index]['answer']; + + $is_correct = false; + if (is_array($correct_answer)) { + if (in_array($selected_answer, $correct_answer)) { + $is_correct = true; + } + } else { + if ($selected_answer == $correct_answer) { + $is_correct = true; + } + } + + if ($is_correct) { + $feedback = '

Correct! Great job.

Happy Chircuit
'; + $question_index++; + } else { + $_SESSION['streak'] = 0; + $feedback = '
Not quite! Try again.
Sad Chircuit
'; + } +} + +?> + + + + + + Trivia Quiz - Chirivia + + + + + + +
+

Trivia Quiz

+ +

+ +
+
+ + + +
+
+ +

Quiz Complete!

+

You've answered all the questions! Your streak is now !

+
+ Chircuit with a strawberry + Chircuit eating a strawberry + Happy Chircuit +
+ Back to Home + +
+ + + +
+
+ +
+
+
+

Chat with us!

+ × +
+
+
+

Hi there! How can I help you today?

+
+
+ +
+
+ + + + + \ No newline at end of file diff --git a/streaks.php b/streaks.php new file mode 100644 index 0000000..7bc08a8 --- /dev/null +++ b/streaks.php @@ -0,0 +1,178 @@ + + + + + + + Your Streaks - Chirivia + + + + + + +
+
+ +
+
+ +
+
+
+ Streaks Calendar +
+
+

Track Your Progress

+

Your commitment to learning and taking action creates a powerful impact. Keep the momentum going!

+

+ 🔥 Current Streak: 🔥 +

+ Back to Home +
+
+
+ + + + \ No newline at end of file