-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
167 lines (143 loc) · 7.87 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html>
<head>
<title>Claudio Crema - Portfolio</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
body,h1,h2,h3,h4,h5,h6 {font-family: "Lato", sans-serif;}
body, html {
height: 100%;
color: #777;
line-height: 1.8;
}
/* Create a Parallax Effect */
.bgimg-1, .bgimg-2, .bgimg-3 {
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
/* First image (Logo. Full height) */
.bgimg-1 {
background-image: url('https://images.pexels.com/photos/2574997/pexels-photo-2574997.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
min-height: 100%;
}
/* Second image (Portfolio) */
.bgimg-2 {
background-image: url("/w3images/parallax2.jpg");
min-height: 400px;
}
/* Third image (Contact) */
.bgimg-3 {
background-image: url("/w3images/parallax3.jpg");
min-height: 400px;
}
.w3-wide {letter-spacing: 10px;}
.w3-hover-opacity {cursor: pointer;}
/* Turn off parallax scrolling for tablets and phones */
@media only screen and (max-device-width: 1600px) {
.bgimg-1, .bgimg-2, .bgimg-3 {
background-attachment: scroll;
min-height: 400px;
}
}
</style>
</head>
<body>
<!-- Navbar (sit on top) -->
<div class="w3-top">
<!-- <div class="w3-bar" id="myNavbar">
<a class="w3-bar-item w3-button w3-hover-black w3-hide-medium w3-hide-large w3-right" href="javascript:void(0);" onclick="toggleFunction()" title="Toggle Navigation Menu">
<i class="fa fa-bars"></i>
</a>
<a href="#home" class="w3-bar-item w3-button">HOME</a>
<a href="#about" class="w3-bar-item w3-button w3-hide-small"><i class="fa fa-user"></i> ABOUT</a>
<a href="#portfolio" class="w3-bar-item w3-button w3-hide-small"><i class="fa fa-th"></i> PORTFOLIO</a>
<a href="#contact" class="w3-bar-item w3-button w3-hide-small"><i class="fa fa-envelope"></i> CONTACT</a>
<a href="#" class="w3-bar-item w3-button w3-hide-small w3-right w3-hover-red">
<i class="fa fa-search"></i>
</a>
</div> -->
<!-- Navbar on small screens -->
<!-- <div id="navDemo" class="w3-bar-block w3-white w3-hide w3-hide-large w3-hide-medium">
<a href="#about" class="w3-bar-item w3-button" onclick="toggleFunction()">ABOUT</a>
<a href="#portfolio" class="w3-bar-item w3-button" onclick="toggleFunction()">PORTFOLIO</a>
<a href="#contact" class="w3-bar-item w3-button" onclick="toggleFunction()">CONTACT</a>
<a href="#" class="w3-bar-item w3-button">SEARCH</a>
</div> -->
</div>
<!-- First Parallax Image with Logo Text -->
<div class="bgimg-1 w3-display-container w3-opacity-min" id="home">
<div class="w3-display-middle" style="white-space:nowrap; text-align: center;">
<span class="w3-center w3-padding-narrow w3-black w3-xxxlarge w3-wide w3-animate-opacity">TITANIC CHALLENGE <br/>by Claudio Crema
</span>
</div>
</div>
<!-- Container (About Section) -->
<div class="w3-content w3-container w3-padding-64" id="about">
<h3 class="w3-center"><p >Everything you need to know about the <a href="https://www.kaggle.com/">Kaggle</a> Titanic challenge, presented by <br />
<a href="https://linktr.ee/claudiocrema">Claudio Crema</a>.</p></h3>
<!-- Intro -->
<p style="font-size:18px;">As you probably know, the <a href="https://en.wikipedia.org/wiki/Sinking_of_the_Titanic">sinking of the Titanic</a> was a tragic event that occurred on April 15th, 1912.</br>Of the 1309 passengers, 809 died. In this presentation I will analyze data of the disaster.</br>Tip: try the charts, they are interactive!</p>
<!-- Survival by sex chart -->
<p style="font-size:22px;"><u>Passenger survival by sex</u></p>
<p style="font-size:18px;">In the first chart, I analyzed passengers' survival rate by sex.</br> As expected, Titanic male passengers were real gentlemen: 81% of them died, while 73% of women survived. I can hear them yelling "Ladies first!"</br>More in details:</br> - Males survival rate = 19%</br> - Females survival rate = 73%</p>
<embed style="margin: 0 auto;" type="text/html" src="Scripts/iframe_figures/figure_18.html" width="2500" height="850">
<!-- Survival by class chart -->
<p style="font-size:22px;"><u>Passenger survival by ticket class</u></p>
<p style="font-size:18px;">In the second chart, I analyzed passengers' survival rate by ticket class.<br /> Needless to say, there are no surprises here. First class passengers had the highest survival rate of 62%, which decreased to 43% for second class, and it got to a dramatic 26% for third class. They may have been gentlemen, but for sure they were classist as well!</br></br>More in details:</br> - 1st class survival rate = 62%</br> - 2nd class survival rate = 43%</br> - 3rd class survival rate = 26%</p>
<embed style="margin: 0 auto;" type="text/html" src="Scripts/iframe_figures/figure_19.html" width="2500" height="850">
<!-- Survival by age chart -->
<p style="font-size:22px;"><u>Passenger survival by age</u></p>
<p style="font-size:18px;">Now ket's have a look at passengers' survival rate by age.<br /> I defined five age ranges (expressed in years):</br> - <u>Babies</u>: age < 3, survival rate = 63%</br> - <u>Kids</u>: 4 < age < 17, survival rate = 50%</br> - <u>Adults</u>: 18 < age < 40, survival rate = 38%</br> - <u>Middle aged men</u>: 41 < age < 60, survival rate = 42%</br> - <u>Elderlies</u>: age > 61, survival rate = 24%</br>Looks like the motto was "Ladies <u>and babies</u> first!"</p>
<embed style="margin: 0 auto;" type="text/html" src="Scripts/iframe_figures/figure_15.html" width="2500" height="850">
<p style="font-size:18px;">More updates will follow soon...</p>
<p>You can find the code I wrote to create this presentation <a href="https://github.com/LivingDeadCloud/LivingDeadCloud.github.io">here</a></p>
</div>
<!-- Container (Contact Section) -->
<div class="w3-content w3-container w3-padding-64" id="contact">
<h3 class="w3-center">Contacts</h3>
<p class="w3-center"><em>I'd love your feedback! </br> <i class="fa fa-envelope fa-fw w3-hover-text-black w3-xlarge w3-margin-right"></i> Email: [email protected]<br></em></p>
</div>
<!-- Footer -->
<footer class="w3-center w3-black w3-padding-64 w3-opacity w3-hover-opacity-off">
<a href="#home" class="w3-button w3-light-grey"><i class="fa fa-arrow-up w3-margin-right"></i>To the top</a>
<div class="w3-xlarge w3-section">
<a href="https://www.linkedin.com/in/claudio-crema-phd-4aa49567/"><i class="fa fa-linkedin w3-hover-opacity"></i> </a>
</div>
<p>Powered by <a href="https://www.w3schools.com/w3css/default.asp" title="W3.CSS" target="_blank" class="w3-hover-text-green">w3.css</a></p>
</footer>
<script>
// Modal Image Gallery
function onClick(element) {
document.getElementById("img01").src = element.src;
document.getElementById("modal01").style.display = "block";
var captionText = document.getElementById("caption");
captionText.innerHTML = element.alt;
}
// Change style of navbar on scroll
window.onscroll = function() {myFunction()};
function myFunction() {
var navbar = document.getElementById("myNavbar");
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
navbar.className = "w3-bar" + " w3-card" + " w3-animate-top" + " w3-white";
} else {
navbar.className = navbar.className.replace(" w3-card w3-animate-top w3-white", "");
}
}
// Used to toggle the menu on small screens when clicking on the menu button
function toggleFunction() {
var x = document.getElementById("navDemo");
if (x.className.indexOf("w3-show") == -1) {
x.className += " w3-show";
} else {
x.className = x.className.replace(" w3-show", "");
}
}
</script>
</body>
</html>