Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
162 lines (141 loc) · 3.47 KB
/
Copy pathindex.html
File metadata and controls
162 lines (141 loc) · 3.47 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
<meta name="theme-color" content="#121212">
<title>My GitHub Blog</title>
<style>
/* Base Styles */
body {
margin: 0;
padding: 0;
font-family: 'Open Sans', sans-serif;
background-color: #121212;
color: #f1f1f1;
line-height: 1.6;
}
a {
color: #42a5f5;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
h1, h2, h3 {
font-weight: bold;
margin: 1.5rem 0 1rem;
}
p {
margin: 0.5rem 0;
}
/* Container */
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
/* Header */
.header {
text-align: center;
padding: 2rem 1rem;
background-color: #1e1e1e;
border-radius: 15px;
margin-bottom: 2rem;
}
.header h1 {
margin: 0;
color: #f9f9f9;
}
.header p {
color: #b3b3b3;
font-size: 1.2rem;
}
/* Blog Post Cards */
.blog-post {
background-color: #1e1e1e;
margin: 1rem 0;
padding: 1.5rem;
border-radius: 15px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
transition: transform 0.2s, box-shadow 0.2s;
}
.blog-post:hover {
background-color: #0e0e0e;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}
.blog-post h2 {
color: #e0e0e0;
margin: 0 0 0.5rem;
}
.blog-post p {
color: #b3b3b3;
font-size: 0.9rem;
}
.blog-post a {
display: inline-block;
margin-top: 1rem;
font-size: 0.9rem;
background-color: #42a5f5;
color: #fff;
padding: 0.5rem 1rem;
border-radius: 5px;
transition: background-color 0.2s;
text-decoration: none;
}
.blog-post a:hover {
background-color: #1e88e5;
}
.blog-post datemode {
display: inline-block;
margin-top: 0.5rem;
pedding: 5px 5;
border:none;
border-radius: 5px;
background-color: #595959;
color: #ffffff;
font-size: 10px;
}
/* Footer */
.footer {
text-align: center;
margin-top: 2rem;
padding: 1rem 0;
font-size: 0.9rem;
color: #b3b3b3;
}
.footer a {
color: #42a5f5;
}
</style>
</head>
<body>
<div class="container">
<!-- Header -->
<div class="header">
<h1>My GitHub Blog</h1>
<p>Welcome to my personal blog hosted on GitHub.</p>
</div>
<!-- Blog Posts -->
<div class="blog-post">
<h2>Post Title 1</h2>
<p>Posted on: December 6, 2024</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan urna sit amet elit commodo...</p>
<a href="#">Read More</a>
</div>
<div class="blog-post">
<h2>Post Title 2</h2>
<p>Posted on: December 5, 2024</p>
<p>Curabitur vel sem id orci feugiat placerat at at lacus. Vestibulum ante ipsum primis in faucibus...</p>
<a href="#">Read More</a>
</div>
<!-- Footer -->
<div class="footer">
<p>Made with ❤️ by <a href="https://github.com/your-username">Your GitHub</a></p>
</div>
</div>
</body>
</html>