-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblogs.html
253 lines (232 loc) · 13.9 KB
/
blogs.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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<!DOCTYPE html>
<html lang="en">
<head>
<title>Blogs | TPI - Computer Programming Club</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description"
content="Join TPI - Computer Programming Club to learn and explore the world of coding. Our experienced instructors will guide you through the fundamentals of programming languages such as Java, Python, and C++. Whether you're a beginner looking to get started or a seasoned programmer looking to expand your skillset, our club has something for everyone. With hands-on projects, hackathons, and workshops, you'll have the opportunity to put your skills to the test and develop your knowledge in a collaborative and supportive environment. Join us today and take your programming skills to the next level!">
<meta name="keywords"
content="TPI,TPICPC,Computer Programming Club,Programming Club,Programming,Java,Python,C++,Coding,Learn,Explore,Instructors,Workshops,Hackathons,Projects,Hands-on,Skills,Knowledge,Supportive Environment,Join,Next Level">
<meta name="author" content="TPI - Computer Programming Club">
<meta name="robots" content="index, follow">
<meta name="googlebot" content="index, follow">
<meta name="google" content="nositelinkssearchbox">
<meta name="google" content="notranslate">
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"
integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="https://unpkg.com/[email protected]/dist/ionicons.js"></script>
<script>
tailwind.config = {
// content: [
// "./pages/**/*.{js,ts,jsx,tsx}",
// "./components/**/*.{js,ts,jsx,tsx}",
// ],
theme: {
screens: {
sm: "375px",
md: "768px",
lg: "1024px",
xl: "1440px",
},
container: {
center: true,
padding: {
DEFAULT: "1rem",
lg: "3rem",
},
},
extend: {
colors: {
primary: "#4a83c4",
secondary: "#667085",
cpcYellow: "#fbba31",
cpcRed: "#b32a1c",
},
// backgroundImage: {
// 'hero-img': "url('/Images/Container.svg')",
// }
},
},
plugins: [],
};
</script>
</head>
<body>
<header class="bg-white">
<!-- navbar start -->
<nav class="container bg-white flex justify-between items-center">
<a href="index.html">
<img class="w-20 cursor-pointer mt-3" src="images/tpicpclogo.png" alt="">
</a>
<div id="nav-links"
class="md:static absolute bg-white left-0 top-[-100%] md:w-auto w-full flex items-center px-5">
<ul class="flex md:flex-row flex-col md:items-center md:gap-[4vw] gap-6">
<li>
<a class="hover:text-primary decoration-2 font-bold" href="index.html">Home</a>
</li>
<li>
<a class="hover:text-primary decoration-2 font-bold" href="team.html">Team</a>
</li>
<li>
<a class="hover:text-primary decoration-2 font-bold" href="blogs.html">Blogs</a>
</li>
<li>
<a class="hover:text-primary decoration-2 font-bold" href="event.html">Events</a>
</li>
<li class="md:hidden lg:flex">
<a target="_blank" href="https://www.facebook.com/tpicpc"><i
class="fa-brands fa-facebook-f hover:text-primary cursor-pointer md:px-2 text-2xl mt-2"></i>
</a>
<a target="_blank" href="https://www.youtube.com/@tpicpc"><i
class="fa-brands fa-youtube hover:text-cpcRed cursor-pointer text-2xl md:px-3 mt-2"></i>
</a>
<a target="_blank" href="https://www.instagram.com/tpicpc"><i
class="fa-brands fa-instagram hover:text-primary cursor-pointer text-2xl md:px-3 mt-2"></i>
</a>
<a target="_blank" href="https://github.com/tpicpc"><i
class="fa-brands fa-github hover:text-secondary cursor-pointer md:px-3 text-2xl mt-2"></i>
</a>
<a target="_blank" href="https://www.linkedin.com/company/tpicpc/"><i
class="fa-brands fa-linkedin-in hover:text-cpcRed cursor-pointer text-2xl md:px-3 mt-2"></i>
</a>
<!-- <a target="_blank" href="https://github.com/tpicpc"><ion-icon name="logo-github"
class="hover:text-secondary cursor-pointer md:px-2 text-2xl mt-2 "></ion-icon></a> -->
<!-- <a target="_blank" href="https://www.facebook.com/tpicpc"><ion-icon name="logo-facebook"
class="hover:text-primary cursor-pointer md:px-2 text-2xl mt-2 "></ion-icon></a> -->
<!-- <a target="_blank" href="https://www.youtube.com/@tpicpc"><ion-icon name="logo-youtube"
class="hover:text-cpcRed cursor-pointer text-2xl md:px-2 mt-2 "></ion-icon></a> -->
<!-- <a target="_blank" href="https://www.instagram.com/tpicpc"><ion-icon name="logo-instagram"
class="hover:text-primary cursor-pointer text-2xl md:px-2 mt-2"></ion-icon></a> -->
<!-- <a target="_blank" href="https://www.linkedin.com/company/tpicpc/"><ion-icon
name="logo-linkedin"
class="hover:text-cpcRed cursor-pointer text-2xl md:px-2 mt-2"></ion-icon></a> -->
</li>
</ul>
</div>
<div class="flex items-center gap-6">
<a href="https://forms.gle/DasAW1sHs5RfbYNb9" target="_blank"
class="hidden md:flex bg-primary text-white px-5 py-2 rounded-full hover:bg-secondary animate-ping absolute h-10 w-[100px]"></a>
<a href="https://forms.gle/DasAW1sHs5RfbYNb9" target="_blank"
class="hidden md:flex bg-primary text-white px-5 py-2 rounded-full hover:bg-secondary relative ">Join Now</a>
<ion-icon onclick="menuIcons(this)" name="menu"
class="text-3xl cursor-pointer md:hidden hover:text-primary"></ion-icon>
</div>
</nav>
</header>
<section class="bg-gradient-to-r from-cyan-500 to-blue-500 h-64">
<div class="container">
<h2 class="flex items-center justify-center pt-24 font-bold text-3xl md:text-6xl text-white ">Blogs
</h2>
</div>
</section>
<section class="text-gray-600 body-font">
<div class="container px-5 py-24 mx-auto">
<div id="blog-card" class="flex flex-wrap -m-4">
<!-- <div class="p-4 md:w-1/3">
<div class="h-full border-2 border-gray-200 border-opacity-60 rounded-lg overflow-hidden">
<img class="lg:h-48 md:h-36 w-full object-cover object-center"
src="https://dummyimage.com/720x400" alt="blog">
<div class="p-6">
<h2 class="tracking-widest text-xs title-font font-medium text-gray-400 mb-1">CATEGORY
</h2>
<h1 class="title-font text-lg font-medium text-gray-900 mb-3">The Catalyzer</h1>
<p class="leading-relaxed mb-3">Photo booth fam kinfolk cold-pressed sriracha leggings
jianbing microdosing tousled waistcoat.</p>
<div class="flex items-center flex-wrap ">
<a class="text-indigo-500 inline-flex items-center md:mb-2 lg:mb-0">Learn More
<svg class="w-4 h-4 ml-2" viewBox="0 0 24 24" stroke="currentColor"
stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path d="M5 12h14"></path>
<path d="M12 5l7 7-7 7"></path>
</svg>
</a>
</div>
</div>
</div>
</div> -->
</div>
</div>
</section>
<footer class="bg-slate-800">
<div class="container">
<div class="lg:flex lg:justify-between">
<div class=" flex justify-center items-center">
<img class="md:h-[150px] md:w-[150px] lg:h-32 lg:w-32" src="images/TPI CPC TR -03.png" alt="">
</div>
<div class="text-center lg:w-[500px] mt-10 ">
<h1 class="text-3xl text-white">About TPI CPC</h1>
<p class="my-6 text-white">TPI CPC is the most primitive and extensive club as well as the biggest
club in Thakurgaon Polytechnic Institute.We work together to explore every field of Computer
Science .</p>
</div>
<div class="mt-10">
<div>
<h1 class="text-3xl text-white text-center">Find Us On</h1>
</div>
<div class="flex justify-center items-center mt-6">
<a target="_blank" href="https://www.facebook.com/tpicpc"><i
class="fa-brands fa-facebook-f hover:text-primary text-2xl p-3 text-white"></i></a>
<a target="_blank" href="https://www.youtube.com/@tpicpc"><i
class="fa-brands fa-youtube hover:text-cpcRed text-2xl p-3 text-white"></i></a>
<a target="_blank" href="https://www.instagram.com/tpicpc"><i
class="fa-brands fa-instagram hover:text-primary text-2xl p-3 text-white"></i></a>
<a target="_blank" href="https://github.com/tpicpc"><i
class="fa-brands fa-github hover:text-primary text-2xl p-3 text-white"></i></a>
<a target="_blank" href="https://www.linkedin.com/company/tpicpc/"><i
class="fa-brands fa-linkedin-in hover:text-cpcRed text-2xl p-3 text-white"></i></a>
</div>
<div class="text-center mt-8">
<a target="_blank" href="https://www.facebook.com/groups/thakurgaonpolytechnicinstituteofficial"><h1 class="text-white text-xl hover:text-primary hover:underline">Tpi Official Group</h1></a>
</div>
</div>
</div>
<p class="text-center text-white py-8 lg:pr-[100px] ">2023 ©TPI - Computer Programming Club</p>
</div>
</footer>
<script>
const loadBlog = () => {
fetch('https://api.rss2json.com/v1/api.json?rss_url=https://medium.com/feed/@sahinur')
.then(res => res.json())
.then(data => displayBlogs(data))
}
const displayBlogs = blogs => {
console.log(blogs.items[0])
const blogHtml= blogs.items.map(blog => getBlogHtml(blog))
const blogContainer = document.getElementById('blog-card')
blogContainer.innerHTML = blogHtml.join('');
}
const getBlogHtml = (blogs) => {
return `
<div class="p-4 md:w-1/3">
<div class="h-full border-2 border-gray-200 border-opacity-60 rounded-lg overflow-hidden">
<img class="lg:h-48 md:h-36 w-full object-cover object-center transform
transition duration-1000 hover:scale-110"
src="${blogs.thumbnail}" alt="blog">
<div class="p-6">
<h2 class="tracking-widest text-xs title-font font-medium text-gray-400 mb-1"><span style = "color: black; font-size:">AUTHOR : ${blogs.author}</span>
</h2>
<h1 class="title-font text-lg font-medium text-gray-900 mb-3">${blogs.title}</h1>
<p class="leading-relaxed mb-3">Photo booth fam kinfolk cold-pressed sriracha leggings
jianbing microdosing tousled waistcoat.</p>
<div class="flex items-center flex-wrap ">
<a target = "_blank" href = "${blogs.link}" class="text-indigo-500 inline-flex items-center md:mb-2 lg:mb-0">Learn More
<svg class="w-4 h-4 ml-2" viewBox="0 0 24 24" stroke="currentColor"
stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path d="M5 12h14"></path>
<path d="M12 5l7 7-7 7"></path>
</svg>
</a>
</div>
</div>
</div>
</div>
`;
}
loadBlog();
</script>
</body>
</html>