-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtimeline.html
210 lines (209 loc) · 6.51 KB
/
timeline.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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Portfolio</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="style.css" />
<style>
.show-case {
max-width: 100%;
height: 80vh;
background-color: rgb(0, 85, 141);
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.container p {
color: cyan;
font-weight: bold;
font-style: italic;
font-size: large;
font-weight: bold;
}
.container-bottom {
margin: 80px;
}
.container-bottom p {
font-size: 2rem;
font-weight: bold;
}
.container-first,
.container-second,
.container-third,
.container-fourth {
margin: 50px;
text-transform: capitalize;
}
.container-first p,
.container-second p,
.container-third p,
.container-fourth p {
font-weight: bold;
color: blue;
text-transform: capitalize;
}
.container-first img {
height: 200px;
}
#date {
color: rgba(0, 0, 0, 0.4);
font-weight: bold;
}
#dummy {
margin: 10px;
color: rgba(0, 0, 0, 0.4);
}
.badge {
margin: 10px;
color: rgba(0, 0, 0, 0.4);
}
@media only screen and (max-width: 600px) {
body {
font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
"Lucida Sans", Arial, sans-serif;
}
.container {
display: flex;
justify-content: center;
align-items: center;
max-width: 60%;
flex-direction: column;
}
.container p {
font-style: normal;
margin: 10px;
}
.container-bottom,
p {
margin: 0;
}
.container p {
color: white;
font-size: 15px;
}
.container-first img {
width: 100%;
height: 110px;
}
}
</style>
</head>
<body>
<header class="show-case">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">Timeline</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarNavDropdown"
aria-controls="navbarNavDropdown"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="index.html"
>Home</a
>
</li>
<li class="nav-item">
<a class="nav-link active" href="#">Timeline</a>
</li>
<li class="nav-item">
<a class="nav-link" href="services.html">Services</a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.html">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<p>
"Everyone Should Know How To Program A Computer, Becuase It Teaches
<br />
You How To Think"
</p>
<div class="container-bottom">
<p>
<b> I've spend <span class="seconds"></span> seconds on earth</b>
</p>
</div>
</div>
</header>
<div class="content">
<div class="container-fourth">
<p id="date">2018-2020</p>
<p>Higher Secondary School Days</p>
<p id="dummy">G.M.H.S.S PERINTHALMANNA</p>
<span class="badge bg-info text-dark">Friendship</span>
<span class="badge bg-info text-dark">C++</span>
<span class="badge bg-info text-dark">Data Structures</span>
<span class="badge bg-info text-dark">Html</span>
<span class="badge bg-info text-dark">Css</span>
<span class="badge bg-info text-dark">Javascript</span>
<span class="badge bg-info text-dark">PHP</span>
</div>
<div class="container-third">
<p id="date">2015-2018</p>
<p>HSS School Days</p>
<p id="dummy">PTMHSS THAZHEKODE</p>
<span class="badge bg-info text-dark">friendship</span>
<span class="badge bg-info text-dark">it@school</span>
<span class="badge bg-info text-dark">html</span>
<span class="badge bg-info text-dark">css</span>
<span class="badge bg-info text-dark">python</span>
</div>
<div class="container-second">
<p id="date">2006-2014</p>
<p>my primary school days</p>
<p id="dummy">Ais English Medium School</p>
<span class="badge bg-info text-dark">Friendship</span>
</div>
<div class="container-first">
<p id="date">2002 JULY</p>
<p>Born as the second child of my parents</p>
<img src="https://www.tintu.in/assets/animated/child.gif" alt="" />
<p id="dummy">Welcome to earth ; Enjoy</p>
<span class="badge bg-info text-dark">Nursing Home Perinthalmanna</span>
</div>
</div>
</body>
</html>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0"
crossorigin="anonymous"
></script>
<script>
function earthSeconds() {
let _initial = "2002-07-18T06:00:00.593Z";
let fromTime = new Date(_initial);
let toTime = new Date();
let differenceTravel = toTime.getTime() - fromTime.getTime();
let earthSec = Math.floor(differenceTravel / 1000);
let earthDays = Math.floor(earthSec / 86400);
document.querySelector(".seconds").textContent = earthSec;
}
setInterval(earthSeconds, 1000);
</script>