Skip to content

Commit

Permalink
Merge pull request #3 from com-480-data-visualization/killian
Browse files Browse the repository at this point in the history
Partioned css files
  • Loading branch information
yseoo authored May 26, 2024
2 parents 60c3c18 + 2a0e078 commit f3fe543
Show file tree
Hide file tree
Showing 6 changed files with 190 additions and 205 deletions.
45 changes: 45 additions & 0 deletions assets/css/button.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/* Styles for round buttons */
.round-button {
background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
border: none;
border-radius: 50%; /* Makes it round */
padding: 10px 15px;
margin: 5px;
cursor: pointer;
transition: all 0.3s;
}

.round-button:hover {
background-color: rgba(255, 255, 255, 0.7);
transform: scale(1.1);
}

/* Styles for stadium buttons */
.stadium-button {
background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
border: none;
border-radius: 20px; /* Creates the rounded ends */
padding: 10px 20px; /* control the size of the button */
font-size: 16px;
cursor: pointer;
transition: all 0.3s;
color: #000;
text-align: center;
display: inline-block; /* Allows the buttons to be aligned inline */
margin: 10px; /* Spacing between buttons */
}

.stadium-button:hover {
background-color: rgba(255, 255, 255, 0.7); /* Lightens the button on hover */
transform: translateY(-2px); /* Slight raise effect on hover */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stadium-button:active {
background-color: rgba(122, 122, 122, 0.5); /* Darker color when button is pressed */
}

.stadium-button.clicked {
background-color: rgba(122, 122, 122, 0.5); /* Darker color when button is clicked */
transform: translateY(1px);
}
66 changes: 66 additions & 0 deletions assets/css/globe.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/* Styles for the header in the globe section */
.header {
text-align: center;
top: 0;
}

/* Styles for the content of the globe section */
.content {
display: flex;
justify-content: space-between;
align-items: stretch; /* Ensures that children stretch to fill the parent's height */
width: 90%;
height: auto;
}

/* Styles for the globe container */
.globe-box {
flex: 3;
display: flex;
align-items: center;
justify-content: center;
padding: 15px;
margin-right: 20px; /* Space between the globe and the sidebar */
background-color: rgba(255, 255, 255, 0.3);
border-radius: 5px;
}

/* Styles for the sidebar container */
.sidebar {
flex: 1;
display: flex;
flex-direction: column;
padding: 10px;
background-color: rgba(255, 255, 255, 0.3);
border-radius: 5px;
width: 500px; /* Fixed width for the sidebar so it doesn't vary for specific event description*/
}

#checkboxes, #infoPanel {
margin-bottom: 20px; /* Spacing between sections of the sidebar*/
}

#controls {
margin-bottom: 5px; /* Slightly less spacing between the controls and the bottom of the sidepanel*/
}

#checkboxes h2, #infoPanel h2, #controls h2 {
margin-bottom: 10px; /* Spacing below each title */
text-align: center;
}

#infoPanel {
flex-grow: 1; /* Allow the panel to grow to fill the remaining space */
text-align: left; /* Align text to the left */
}

#infoPanel, #controls, #checkboxes {
padding: 10px;
background-color: rgba(255, 255, 255, 0.15);
border-radius: 3px;
}

#controls input[type="range"], #controls p {
text-align: center;
width: 100%; /* Full width for easier interaction */
}
72 changes: 72 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/* Reset CSS */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
border: 0;
}

/* Global styles */
body {
font-family: 'Arial', sans-serif;
font-size: 1rem;
line-height: 1.6;
color: #e4e4e4;
margin: 0;
padding: 0;
}

/* Styles for the Sections in FullPageJS*/
.section {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
background-image: url("../img/background.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
text-align: center;
}

/*Sytle for the titles and text*/
.title {
font-size: 3rem;
font-weight: bold;
margin-bottom: 20px;
}

.title.main {
font-size: 4rem;
margin-bottom: 40px;
}

.text {
font-size: 1.4rem;
color: #ffffff;
padding: 0 100px;
margin-bottom: 20px;
}

.text.main {
font-size: 2rem;
padding: 0 200px;
margin-bottom: 40px;
}

/* 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 */
}
}
200 changes: 0 additions & 200 deletions assets/css/style.css

This file was deleted.

2 changes: 1 addition & 1 deletion assets/scripts/globe.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

// Initialize the globe with default settings
const myGlobe = Globe()(document.getElementById('globeViz'))
const myGlobe = Globe()(document.getElementById('globe'))
.globeImageUrl('//unpkg.com/three-globe/example/img/earth-blue-marble.jpg')
.backgroundImageUrl('//unpkg.com/three-globe/example/img/night-sky.png')
.width(850)
Expand Down
Loading

0 comments on commit f3fe543

Please sign in to comment.