-
+
About Us
We are a team of students currently enrolled in COM-480 Data Visualization at EPFL, undertaking
diff --git a/script.js b/script.js
index dde94f0..db05a4a 100644
--- a/script.js
+++ b/script.js
@@ -3,8 +3,7 @@ new fullpage('#fullpage', {
autoScrolling: true,
navigation: true,
licenseKey: 'gplv3-license',
- slideNavigation: true,
- navigationTooltips: ['Home', 'About', 'Projects', 'Contact'],
+ sectionsColor: ['#f2f2f2', '#ffcbc4', '#ffcbc4', '#c4d9ff', '#c4d9ff', '#c5ffc4', '#c5ffc4', '#ddc4ff', '#ddc4ff', '#f2f2f2'],
});
// Select all buttons with the class "stadium-button"
@@ -12,14 +11,26 @@ const buttons = d3.selectAll(".stadium-button");
// Add click event listener to each button
buttons.on("click", function() {
+
// Remove "clicked" class from all buttons to ensure one button is clicked at a time
buttons.classed("clicked", false);
// Add "clicked" class to the clicked button
d3.select(this).classed("clicked", true);
+ // Get the value of the clicked button
let value = d3.select(this).text();
- console.log("Button value:", value);
+
+ // Select the image element
+ const img = d3.select('#map');
+
+ // Change the image source based on the value of the clicked button
+ if (value === "Points") {
+ img.attr("src", "img/points_map.jpg");
+ }
+ else if (value === "Heatmap") {
+ img.attr("src", "img/heatmap_map.jpg");
+ }
});
// Get the slider element
@@ -28,4 +39,4 @@ const slider = d3.select("sliderMap");
// Output the current value when the slider value changes
slider.oninput = function() {
console.log(this.value);
-};
\ No newline at end of file
+};
diff --git a/style.css b/style.css
index d2e8fc4..a07b70e 100644
--- a/style.css
+++ b/style.css
@@ -9,31 +9,45 @@
/* Global styles */
body {
font-family: 'Arial', sans-serif;
- font-size: 16px;
+ font-size: 1rem;
line-height: 1.6;
color: #333;
- background-color: #f4f4f4;
margin: 0;
padding: 0;
}
/* Specific styles */
+
+/* Styles for the Sections*/
.section {
text-align: center;
}
+/*Sytle for the titles and text*/
.title {
- font-size: 36px;
+ font-size: 3rem;
font-weight: bold;
margin-bottom: 20px;
}
+
+.title.main {
+ font-size: 4rem;
+ margin-bottom: 40px;
+}
+
.text {
- font-size: 18px;
+ font-size: 1.4rem;
color: #666;
padding: 0 100px;
margin-bottom: 20px;
}
+.text.main {
+ font-size: 2rem;
+ padding: 0 200px;
+ margin-bottom: 40px;
+}
+
/* Styles for the section header */
.header {
text-align: center;
@@ -56,6 +70,7 @@ body {
transform: scale(1.1);
}
+/* Styles for stadium buttons */
.stadium-button {
background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
border: none;
@@ -67,7 +82,7 @@ body {
color: #000;
text-align: center;
display: inline-block; /* Allows the buttons to be aligned inline */
- margin: 5px; /* Spacing between buttons */
+ margin: 10px; /* Spacing between buttons */
}
.stadium-button:hover {
@@ -94,8 +109,8 @@ body {
.image-box {
width: 90%;
- height: 600px;
- background-color: #ddd; /* Placeholder for the image */
+ height: 40%;
+ background-color: #2e2e2e; /* Placeholder for the image */
text-align: center;
padding: 40px;
margin-right: 40px;
@@ -103,14 +118,26 @@ body {
}
-.slider {
- width: 80%; /* Adjust width to make it slimmer */
- margin: 0 auto; /* Center the slider horizontally */
-}
-
-/* Style adjustments for fullPage.js */
+/* Style adjustments for the map image */
#event_map.section {
display: flex;
flex-direction: column;
justify-content: space-between;
+}
+
+/* Styles for the logo */
+#logo {
+ width: 200px;
+ height: auto;
+ animation: floatAnimation 2s ease-in-out infinite alternate;
+}
+
+/* Animation for the logo */
+@keyframes floatAnimation {
+ 0% {
+ transform: translateX(-3px) translateY(-3px); /* Initial position */
+ }
+ 100% {
+ transform: translateX(3px) translateY(3px); /* Final position */
+ }
}
\ No newline at end of file