-
Notifications
You must be signed in to change notification settings - Fork 0
/
timeline.html
112 lines (100 loc) · 2.36 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Timeline with Photos</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
.container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.timeline {
position: relative;
margin-top: 40px;
padding: 20px 0;
}
.timeline-item {
position: relative;
padding-left: 50px;
margin-bottom: 40px;
}
.timeline-item::before {
content: '';
position: absolute;
top: 0;
left: 25px;
width: 2px;
height: 100%;
background-color: #333;
}
.timeline-date {
position: absolute;
top: -15px;
left: 0;
font-size: 14px;
font-weight: bold;
}
.timeline-content {
background-color: #f9f9f9;
padding: 10px 20px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.timeline-title {
margin-top: 0;
}
.timeline-description {
margin-bottom: 0;
}
.timeline-img {
max-width: 100%;
height: auto;
border-radius: 5px;
margin-top: 10px;
}
</style>
</head>
<body>
<div class="container">
<h1>Timeline with Photos</h1>
<div class="timeline">
<div class="timeline-item">
<div class="timeline-date">mar 2023</div>
<div class="timeline-content">
<h3 class="timeline-title">Patan</h3>
<p class="timeline-description">What a time.</p>
<img class="timeline-img" src="krn.jpg" alt="Photo 1">
</div>
</div>
<div class="timeline-item">
<div class="timeline-date"> mar 2023</div>
<div class="timeline-content">
<h3 class="timeline-title">at patan</h3>
<p class="timeline-description">What a time.</p>
<img class="timeline-img" src="bth.jpg" alt="Photo 2">
</div>
</div>
<div class="timeline-item">
<div class="timeline-date">Mar 2023</div>
<div class="timeline-content">
<h3 class="timeline-title">Event 3</h3>
<p class="timeline-description">Description of Event 3.</p>
<img class="timeline-img" src="krn1.jpg" alt="Photo 3">
</div>
</div>
<!-- Add more timeline items here -->
</div>
</div>
</body>
</html>