Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"extends": ["eslint:recommended", "google"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"env": {
"browser": true,
"es6": true
},
"ignorePatterns": ["examples/**/*.js"],
"globals": {
"L": "readonly",
"d3": "readonly",
"topojson": "readonly"
},
"rules": {
"indent": ["error", 2, { "VariableDeclarator": 1 }],
"max-len": "off",
"object-curly-spacing": "off",
"operator-linebreak": [
"error",
"after",
{ "overrides": { "?": "ignore", ":": "ignore" } }
],
"require-jsdoc": "off"
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules/
.DS_Store
.vscode/
19 changes: 19 additions & 0 deletions assets/volcano.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
321 changes: 321 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,321 @@
/* stylelint-disable color-function-notation */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap|Roboto');

body {
margin: 0;
font-family: Roboto, sans-serif;
font-size: 0.7vw;
}

main {
display: grid;
grid-template-columns: 44vw 18vw 18vw auto;
grid-template-rows: 8vh 22vh 34vh 32vh;
height: 100vh;
width:100vw;
box-sizing: border-box;
background-color: #e4e4e4;

}

p {
letter-spacing: 0.01vw;
margin: 0.7vw;
}

img{
grid-column: 4 / 5;
grid-row: 1 / 2;
width: 60px;
height: auto;
margin-left: 10px;
}

.header-container {
grid-column: 1 / 5;
grid-row: 1 / 2;
background-color: rgb(30, 30, 32) ;
position: relative;
display:flex;
}

h1 {
font-size: 2.7vw;
letter-spacing: 0.3vw;
font-family: 'Bebas Neue', cursive;
color:#fcfafa;
margin: 0;
padding-left: 10px;
padding-top: 10px;
position: relative;
z-index: 1;
white-space: nowrap;
overflow: hidden;
}

h1 {
filter: drop-shadow(1px 1px 2px rgba(74, 72, 72, 50%))
drop-shadow(0 -5px 1px hsl(0deg, 54%, 36%));
}

h1:hover {
animation: glitch .3s linear infinite;
cursor: pointer;
}

@keyframes glitch {
0% {
transform: translate(0);
}

20% {
transform: translate(-2px, 2px);
}

40% {
transform: translate(-2px, -2px);
}

60% {
transform: translate(2px, 2px);
}

80% {
transform: translate(2px, -2px);
}

100% {
transform: translate(0);
}
}


h3 {
font-size: 1.15vw;
font-family: Roboto, sans-serif;
letter-spacing: 0.01vw;
margin: 0;
padding-left: 0.8vw;
padding-top: 0.5vw;
}

h4 {
font-size: 1vw;
font-family: Roboto, sans-serif;
letter-spacing: 0.01vw;
margin: 0;
padding-left: 1vw;
padding-top: 0.5vw;
padding-bottom: 0.5vw

}


#tooltip {
position: absolute;
visibility: hidden;
background-color: white;
padding: 5px;
border: 1px solid #ccc;
border-radius: 2px;
font-family: Roboto, sans-serif;
font-size: 12px;
z-index: 10;
}


#globe-container {
grid-column: 1 / 2;
grid-row: 2 / 5;
position: relative;
height: 100%;
background-color: #f8f7f7;
}

#globe {
width: 100%;
height: 100%;
background-color: #f8f7f7;
}

#volcano-type {
position: absolute;
top: 0.7vw;
right: 1vw;
z-index: 1;
padding: 4px 2px;
font-size: 0.7vw;
background-color: grey;
color: white;
border: 1px solid #ccc;
border-radius: 5px;
}


#volcano-type:hover {
background-color: rgb(255, 171, 171);
}

#note {
position: absolute;
font-size: 0.7vw;
top: 1.8vw;
padding-left: 0.6vw;
}

.yellow-dot {
display: inline-block;
width: 8px;
height: 8px;
background-color: #16335D;
border-radius: 50%;
margin-right: 5px;
}

.copyright {
text-align: left;
position: absolute;
font-size: 0.7vw;
color: #666;
z-index: 1;
padding-top: 79vh;
padding-left: 0.6vw;

}

.copyright p {
margin: 5px 0; /* Adjust this value to change the spacing */
}


#donut1 {
grid-column: 2 / 3;
grid-row: 3 / 4;
margin-left: 5px;
margin-top: 1vw;

}

#donut2 {
grid-column: 3 / 4;
grid-row: 3 / 4;
margin-left: 2px;
margin-top: 1vw;

}


#lollipop-container {
grid-column: 2 / 5;
grid-row: 4 / 5;
flex-direction: column;
padding: 0.8vw;

}


#small-globe {
grid-column: 4 / 5;
grid-row: 3 / 4;
width: 100%;
height: 100%;
margin-top: 7px;

}

#selection {
grid-column: 4 / 5;
grid-row: 2 / 3;
display: flex;
flex-direction: column;
}

.selection-group {
display: flex;
align-items: center;
padding-left: 1vw;
padding-bottom: 0.4vw;
}


.selection-group label {
margin-right: 6px;
font-size: 0.8vw;
}

#country-select, #year-select {
padding: 1px, 2px;
font-size: 0.7vw;
background-color: #808080;
color: white;
border: 1px solid #ccc;
border-radius: 5px;
}

#country-select:hover {
background-color: rgb(255, 171, 171);
}

#year-select:hover {
background-color: rgb(255, 171, 171);
}



#info-display {
line-height: 0.7;
padding-left: 0.42vw;

}

.eruption-info {
font-size: 0.75vw;
font-family: Roboto, sans-serif;
color: #070707;
margin:0;
}

#description{
font-size: 0.8vw;
letter-spacing: 0.01vw;
line-height: 20.5px;
grid-column: 2 / 4;
grid-row: 2 / 3;
margin-top: 0%;
padding: 0.6vw;
}

#button-container {
display: flex;
gap: 20px;
}

button {
background-color: grey;
border: none;
color: white;
padding: 1px 25px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 0.7vw;
border-radius: 5px;
cursor: pointer;
height: 25px;
margin-top: 0.6vw;
transition: background-color 0.3s, transform 0.2s;
}

button:hover {
background-color: rgb(255, 171, 171);
transform: translateY(-2px);
}

button:active {
transform: translateY(1px);
}

button:focus {
outline: none;
}

9 changes: 9 additions & 0 deletions data/ByContinent.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Type,count,pct
Africa,150,9.94
Asia,479,31.74
Antarctica,18,1.19
Europe,51,3.38
North America,274,18.16
Oceania,50,3.31
Sea,292,19.35
South America,194,12.86
7 changes: 7 additions & 0 deletions data/ByType.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Type,count,pct
Caldera & Complex,96,6.36
Cone Types,125,8.28
Explosive & Crater,73,4.84
Other,243,16.1
Shield & Strato,862,57.12
Submarine & Glacial,110,7.29
1 change: 1 addition & 0 deletions data/countries-110m.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data/land-50m.json

Large diffs are not rendered by default.

Loading