diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000..aee8181
Binary files /dev/null and b/.DS_Store differ
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 6f3a291..250032a 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,3 +1,6 @@
{
- "liveServer.settings.port": 5501
+ "liveServer.settings.port": 5501,
+ "githubPullRequests.ignoredPullRequestBranches": [
+ "main"
+ ]
}
\ No newline at end of file
diff --git a/Iceparts/.DS_Store b/Iceparts/.DS_Store
new file mode 100644
index 0000000..e61a425
Binary files /dev/null and b/Iceparts/.DS_Store differ
diff --git a/Iceparts/Icebear_body_1.svg b/Iceparts/Icebear_body_1.svg
new file mode 100644
index 0000000..01986e8
--- /dev/null
+++ b/Iceparts/Icebear_body_1.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Iceparts/Icebear_ear_1.svg b/Iceparts/Icebear_ear_1.svg
new file mode 100644
index 0000000..dcc9e12
--- /dev/null
+++ b/Iceparts/Icebear_ear_1.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Iceparts/Icebear_face_1.svg b/Iceparts/Icebear_face_1.svg
new file mode 100644
index 0000000..2fe6c76
--- /dev/null
+++ b/Iceparts/Icebear_face_1.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Iceparts/Icebear_footLeft_1.svg b/Iceparts/Icebear_footLeft_1.svg
new file mode 100644
index 0000000..ea5f7eb
--- /dev/null
+++ b/Iceparts/Icebear_footLeft_1.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Iceparts/Icebear_footRight_1.svg b/Iceparts/Icebear_footRight_1.svg
new file mode 100644
index 0000000..8fa043f
--- /dev/null
+++ b/Iceparts/Icebear_footRight_1.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Iceparts/Icebear_headBase_1.svg b/Iceparts/Icebear_headBase_1.svg
new file mode 100644
index 0000000..084841e
--- /dev/null
+++ b/Iceparts/Icebear_headBase_1.svg
@@ -0,0 +1,95 @@
+
+
diff --git a/Iceparts/Icebear_legLeft_1.svg b/Iceparts/Icebear_legLeft_1.svg
new file mode 100644
index 0000000..347ea25
--- /dev/null
+++ b/Iceparts/Icebear_legLeft_1.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Iceparts/Icebear_legRight_1.svg b/Iceparts/Icebear_legRight_1.svg
new file mode 100644
index 0000000..cc73a9b
--- /dev/null
+++ b/Iceparts/Icebear_legRight_1.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Iceparts/Icebear_tail_1.svg b/Iceparts/Icebear_tail_1.svg
new file mode 100644
index 0000000..007fdef
--- /dev/null
+++ b/Iceparts/Icebear_tail_1.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Iceparts/Iceberg_base_1.svg b/Iceparts/Iceberg_base_1.svg
new file mode 100644
index 0000000..cf06fe2
--- /dev/null
+++ b/Iceparts/Iceberg_base_1.svg
@@ -0,0 +1,31 @@
+
+
\ No newline at end of file
diff --git a/Iceparts/Iceberg_bottom_1.svg b/Iceparts/Iceberg_bottom_1.svg
new file mode 100644
index 0000000..7ef9488
--- /dev/null
+++ b/Iceparts/Iceberg_bottom_1.svg
@@ -0,0 +1,19 @@
+
+
\ No newline at end of file
diff --git a/Iceparts/Iceberg_overlay_1.svg b/Iceparts/Iceberg_overlay_1.svg
new file mode 100644
index 0000000..788d0f7
--- /dev/null
+++ b/Iceparts/Iceberg_overlay_1.svg
@@ -0,0 +1,92 @@
+
+
\ No newline at end of file
diff --git a/Iceparts/Iceberg_overlay_2.svg b/Iceparts/Iceberg_overlay_2.svg
new file mode 100644
index 0000000..b85eaf0
--- /dev/null
+++ b/Iceparts/Iceberg_overlay_2.svg
@@ -0,0 +1,122 @@
+
+
\ No newline at end of file
diff --git a/Iceparts/Iceberg_platform_1.svg b/Iceparts/Iceberg_platform_1.svg
new file mode 100644
index 0000000..35c1f10
--- /dev/null
+++ b/Iceparts/Iceberg_platform_1.svg
@@ -0,0 +1,11 @@
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
index d5ff804..68d1d9f 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,26 @@
+[](https://classroom.github.com/a/E1TYCvbT)
[](https://classroom.github.com/online_ide?assignment_repo_id=10934183&assignment_repo_type=AssignmentRepo)
+
+
+
+What the project does
+This product is a story telling website that shows how important it is to take care of the environment because the ice is melting on the north pole where animals live. This story is inspired on the UN´s sustainable goal nr 14, life under water.
+
+Why the project is useful
+Our project is useful because it can prevent the ice melting, water full of trash and global warming, we also talk about how the reader can help the planet.
+
+How users can get started with the project
+The projects start when you begin to scroll downwards
+
+Where users can get help with your project
+Users can click on the picture of nr 14 goal to go to the main Un site to read more about the subject (Does not work on the website because something is blocking the img)
+
+Which technology is used
+HTML, CSS/SCSS and JavaScript
+
+Who maintains and contributes to the project
+Nora Lundquist, Guro Karlsen and Martin Heggholmen
+
+
+There were some things we could´t figure out with the media queries, we tried to make it as responsive as possible but could not figure out hoe to get the bottom text smaller (Nora send you a teams message on it without a replay on the problem)
+The SVG of the polobear/iceberg is for some odd reason taking up a lot of space and is causing the MQ to have a large margin space on the right side of the screen. (also send a message about this with no luck)
\ No newline at end of file
diff --git a/images/.DS_Store b/images/.DS_Store
new file mode 100644
index 0000000..0e58955
Binary files /dev/null and b/images/.DS_Store differ
diff --git a/images/SVG/toxic.svg b/images/SVG/toxic.svg
new file mode 100644
index 0000000..fb3de63
--- /dev/null
+++ b/images/SVG/toxic.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/cloud1.svg b/images/cloud1.svg
new file mode 100644
index 0000000..1e3e99c
--- /dev/null
+++ b/images/cloud1.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/cloud2.svg b/images/cloud2.svg
new file mode 100644
index 0000000..6940c16
--- /dev/null
+++ b/images/cloud2.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/cloud3.svg b/images/cloud3.svg
new file mode 100644
index 0000000..b283968
--- /dev/null
+++ b/images/cloud3.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/cloud4.svg b/images/cloud4.svg
new file mode 100644
index 0000000..43259cb
--- /dev/null
+++ b/images/cloud4.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/cloud5.svg b/images/cloud5.svg
new file mode 100644
index 0000000..ebbb530
--- /dev/null
+++ b/images/cloud5.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/cloud6.svg b/images/cloud6.svg
new file mode 100644
index 0000000..2cbc74e
--- /dev/null
+++ b/images/cloud6.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/cloud7.svg b/images/cloud7.svg
new file mode 100644
index 0000000..f7ee785
--- /dev/null
+++ b/images/cloud7.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/deadfish 1.svg b/images/deadfish 1.svg
new file mode 100644
index 0000000..1b5dd6d
--- /dev/null
+++ b/images/deadfish 1.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/deadfish 2.svg b/images/deadfish 2.svg
new file mode 100644
index 0000000..ec0a218
--- /dev/null
+++ b/images/deadfish 2.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/favicon.ico b/images/favicon.ico
new file mode 100644
index 0000000..5fcdda1
Binary files /dev/null and b/images/favicon.ico differ
diff --git a/images/fish/.DS_Store b/images/fish/.DS_Store
new file mode 100644
index 0000000..55057b4
Binary files /dev/null and b/images/fish/.DS_Store differ
diff --git a/images/fish/SVG/oceanfloor.svg b/images/fish/SVG/oceanfloor.svg
new file mode 100644
index 0000000..bd21458
--- /dev/null
+++ b/images/fish/SVG/oceanfloor.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/fish/big-fish-2.svg b/images/fish/big-fish-2.svg
new file mode 100644
index 0000000..a35d1b5
--- /dev/null
+++ b/images/fish/big-fish-2.svg
@@ -0,0 +1,138 @@
+
+
\ No newline at end of file
diff --git a/images/fish/big-fish.svg b/images/fish/big-fish.svg
new file mode 100644
index 0000000..2cd0071
--- /dev/null
+++ b/images/fish/big-fish.svg
@@ -0,0 +1,258 @@
+
+
\ No newline at end of file
diff --git a/images/fish/cluster-fish.svg b/images/fish/cluster-fish.svg
new file mode 100644
index 0000000..a8a07a3
--- /dev/null
+++ b/images/fish/cluster-fish.svg
@@ -0,0 +1,220 @@
+
+
\ No newline at end of file
diff --git a/images/fish/light_fish.png b/images/fish/light_fish.png
new file mode 100644
index 0000000..78a4fd1
Binary files /dev/null and b/images/fish/light_fish.png differ
diff --git a/images/fish/light_fish.svg b/images/fish/light_fish.svg
new file mode 100644
index 0000000..1ae9a04
--- /dev/null
+++ b/images/fish/light_fish.svg
@@ -0,0 +1,185 @@
+
+
\ No newline at end of file
diff --git a/images/fish/small-amount-fish.svg b/images/fish/small-amount-fish.svg
new file mode 100644
index 0000000..876c731
--- /dev/null
+++ b/images/fish/small-amount-fish.svg
@@ -0,0 +1,70 @@
+
+
\ No newline at end of file
diff --git a/images/fish/small-fish.svg b/images/fish/small-fish.svg
new file mode 100644
index 0000000..a97b700
--- /dev/null
+++ b/images/fish/small-fish.svg
@@ -0,0 +1,185 @@
+
+
\ No newline at end of file
diff --git a/images/goal-14.png b/images/goal-14.png
new file mode 100644
index 0000000..832a9aa
Binary files /dev/null and b/images/goal-14.png differ
diff --git a/images/oceanfloor.svg b/images/oceanfloor.svg
new file mode 100644
index 0000000..bd21458
--- /dev/null
+++ b/images/oceanfloor.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/osos.svg b/images/osos.svg
deleted file mode 100644
index c423c69..0000000
--- a/images/osos.svg
+++ /dev/null
@@ -1,239 +0,0 @@
-
-
-
diff --git a/images/seaweed1.svg b/images/seaweed1.svg
new file mode 100644
index 0000000..fe3feaf
--- /dev/null
+++ b/images/seaweed1.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/seaweed2.svg b/images/seaweed2.svg
new file mode 100644
index 0000000..5bad280
--- /dev/null
+++ b/images/seaweed2.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/toxic.svg b/images/toxic.svg
new file mode 100644
index 0000000..fb3de63
--- /dev/null
+++ b/images/toxic.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/trash/.DS_Store b/images/trash/.DS_Store
new file mode 100644
index 0000000..9bd4c7b
Binary files /dev/null and b/images/trash/.DS_Store differ
diff --git a/images/trash/trash-bag.svg b/images/trash/trash-bag.svg
new file mode 100644
index 0000000..a58814c
--- /dev/null
+++ b/images/trash/trash-bag.svg
@@ -0,0 +1,45 @@
+
+
\ No newline at end of file
diff --git a/images/trash/trash-can.svg b/images/trash/trash-can.svg
new file mode 100644
index 0000000..e958641
--- /dev/null
+++ b/images/trash/trash-can.svg
@@ -0,0 +1,39 @@
+
+
\ No newline at end of file
diff --git a/images/trash/trash-paper.svg b/images/trash/trash-paper.svg
new file mode 100644
index 0000000..852d417
--- /dev/null
+++ b/images/trash/trash-paper.svg
@@ -0,0 +1,55 @@
+
+
\ No newline at end of file
diff --git a/images/trash/trash-sock.svg b/images/trash/trash-sock.svg
new file mode 100644
index 0000000..71fc844
--- /dev/null
+++ b/images/trash/trash-sock.svg
@@ -0,0 +1,37 @@
+
+
\ No newline at end of file
diff --git a/images/trash/trash-spoon.svg b/images/trash/trash-spoon.svg
new file mode 100644
index 0000000..467b87b
--- /dev/null
+++ b/images/trash/trash-spoon.svg
@@ -0,0 +1,27 @@
+
+
\ No newline at end of file
diff --git a/images/trash/trashbag.svg b/images/trash/trashbag.svg
new file mode 100644
index 0000000..3fada9a
--- /dev/null
+++ b/images/trash/trashbag.svg
@@ -0,0 +1,45 @@
+
+
\ No newline at end of file
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..dda99aa
--- /dev/null
+++ b/index.html
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
+ Assignment_3 group_9
+
+
+
+
+
+ Switch to landscape mode for the best viewing experience.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
This is Barnard, he lives on an iceberg in the north pole. Lately because of pollution, he´s home has slowly started to melt
+
+
+
+
This means he have to swim all the time and eventually be so tired he’s going to drown.
+
+
+
+
Arctic sea ice recedes every summer,
+ but still covers millions of square miles of ocean today.
+ But the Arctic is warming faster than anywhere else on
+ Earth and ice-free summers could become a reality.
+
+
+
+
+
Human activities are at the root of this problem, because of the carbon dioxide from industry's, co2 gasses from cars and other greenhouse gasses.
+
+
+
+
Changes in water temperature causes algae to leave coral reefs,
+ turning them white and making them vulnerable to
+ disease and death—a phenomenon known as coral bleaching.
+
+
+
+
+
This have raised temperatures, especially on the poles. As a result, icebergs are rapidly melting into the sea and retreating on land.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
If we dont do something...
+ Rising sea levels could impact 1 billion people by the year 2050. Heat waves will become more frequent and severe around the world,
+ affecting hundreds of millions—or even billions—of people if we don’t act.
+
+
+
Things YOU can do to help:
+
+
Recycle your trash properly
+
Save energy at home
+
Walk or bicycle instead of taking your car
+
+
+
Act now to save other animals like Barnard
+
+
+
+
\ No newline at end of file
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..0d969d9
--- /dev/null
+++ b/index.js
@@ -0,0 +1,97 @@
+// Intersection Observer for background color change
+const callback = (entries, observer) => {
+ entries.forEach(entry => {
+ if (entry.isIntersecting) {
+ document.body.style.backgroundColor = entry.target.dataset.color;
+ }
+ });
+};
+
+const changes = document.querySelectorAll('.change');
+const colorObserver = new IntersectionObserver(callback, { threshold: .9 });
+
+changes.forEach(change => {
+ colorObserver.observe(change);
+});
+
+// Scroll event handling for .scroll-section__howtofix elements
+const howToFixElems = document.querySelectorAll('.scroll-section__howtofix');
+const totalSections = howToFixElems.length;
+
+window.addEventListener("scroll", function() {
+ const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
+ const scrollPercentage = (scrollTop / (document.documentElement.scrollHeight - document.documentElement.clientHeight)) * 100;
+
+ let activeIndex = Math.floor(scrollPercentage / (100 / totalSections));
+
+ howToFixElems.forEach((elem, index) => {
+ if (index === activeIndex) {
+ elem.classList.remove("fade-out");
+ elem.style.transform = `translateY(${scrollTop}px)`;
+ } else {
+ elem.classList.add("fade-out");
+ elem.style.transform = '';
+ }
+ });
+});
+
+// Intersection Observer for fade-in of .scroll-section__bottom
+document.addEventListener("DOMContentLoaded", function() {
+ const bottomText = document.querySelector('.scroll-section__bottom');
+
+ const fadeInCallback = (entries, observer) => {
+ entries.forEach(entry => {
+ if (entry.isIntersecting) {
+ entry.target.classList.add('fade-in');
+ observer.unobserve(entry.target);
+ }
+ });
+ };
+
+ const fadeInObserver = new IntersectionObserver(fadeInCallback, { threshold: 0.1 });
+ fadeInObserver.observe(bottomText);
+});
+// to create particles for the toxic barrel on random areas within 5ww size.
+const particles = document.querySelectorAll('.particle');
+
+particles.forEach((particle, index) => {
+ particle.style.left = `${83.5 + Math.random() * 5}vw`;
+});
+
+// Function to detect if the device is mobile or not
+function isMobileDevice() {
+ return (typeof window.orientation !== "undefined") || (navigator.userAgent.indexOf('IEMobile') !== -1);
+};
+
+// Event listener for window resize
+window.addEventListener('resize', function() {
+var landscapeMessage = document.getElementById('landscape-message');
+
+// only displays "switch tot landscape mode if its a mobile device"
+if (!isMobileDevice()) {
+ landscapeMessage.style.display = 'none';
+ return;
+}
+
+if (window.innerHeight > window.innerWidth) {
+ landscapeMessage.style.display = 'block';
+} else {
+ landscapeMessage.style.display = 'none';
+}
+}, false);
+
+// Check if its a mobile device
+if (isMobileDevice() && window.innerHeight > window.innerWidth) {
+document.getElementById('landscape-message').style.display = 'block';
+}
+
+// Button to hide the message
+document.getElementById('ok-button').addEventListener('click', function() {
+document.getElementById('landscape-message').style.display = 'none';
+});
+
+//if its a pc remove the whole message, I had to ad this because it sometimes loaded in by defaultt
+// on pc
+if (!isMobileDevice()) {
+ document.getElementById('landscape-message').style.display = 'none';
+}
\ No newline at end of file
diff --git a/public/index.html b/public/index.html
deleted file mode 100644
index cfdc35d..0000000
--- a/public/index.html
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
-
-
-
-
-Assignment_3 group_9
-
-
-
-
-
-