-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharticles.js
300 lines (298 loc) · 10 KB
/
articles.js
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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
// // Temporaire:
// // à definir dans types.ts à la racine de l'application
// export type Post = {
// id: number,
// category: string,
// title: string,
// image: string,
// caption: string,
// date: string | Date,
// minutesToRead: number,
// author: string,
// nbViews: number,
// nbComments: number,
// slug: string,
// content?: string,
// };
// export const POSTS: Post[] = [
// {
// id: 1,
// category: "React",
// title: "React State Management: Choosing the Right Solution",
// image: "/react-state-management.jpg",
// caption:
// "Explore different state management solutions in React and choose the one that fits your needs.",
// date: "2023-01-15",
// minutesToRead: 10,
// author: "John ReactDev",
// nbViews: 25,
// nbComments: 8,
// slug: "react-state-management-choosing-right-solution",
// },
// {
// id: 2,
// category: "Next.js",
// title: "Server-Side Rendering with Next.js: A Practical Guide",
// image: "/nextjs-ssr.jpg",
// caption:
// "Learn how to implement server-side rendering in Next.js for improved performance and SEO.",
// date: "2023-02-02",
// minutesToRead: 12,
// author: "Alice NextJSDev",
// nbViews: 18,
// nbComments: 5,
// slug: "server-side-rendering-nextjs-practical-guide",
// },
// {
// id: 3,
// category: "React Native",
// title: "Building Cross-Platform Mobile Apps with React Native",
// image: "/react-native-cross-platform.jpg",
// caption:
// "Step-by-step guide to building cross-platform mobile applications using React Native.",
// date: "2023-02-18",
// minutesToRead: 15,
// author: "Bob MobileDev",
// nbViews: 32,
// nbComments: 10,
// slug: "building-cross-platform-mobile-apps-react-native",
// },
// {
// id: 4,
// category: "CSS",
// title: "Advanced CSS Techniques for Modern Web Design",
// image: "/advanced-css-techniques.jpg",
// caption:
// "Explore advanced CSS techniques to enhance the visual appeal and interactivity of your web designs.",
// date: "2023-03-05",
// minutesToRead: 8,
// author: "Eva CSSDesigner",
// nbViews: 22,
// nbComments: 7,
// slug: "advanced-css-techniques-modern-web-design",
// },
// {
// id: 5,
// category: "JavaScript",
// title: "Mastering JavaScript Promises and Asynchronous Programming",
// image: "/javascript-promises-async.jpg",
// caption:
// "In-depth tutorial on mastering JavaScript promises and asynchronous programming concepts.",
// date: "2023-03-20",
// minutesToRead: 14,
// author: "Peter JSNinja",
// nbViews: 28,
// nbComments: 6,
// slug: "mastering-javascript-promises-asynchronous-programming",
// },
// {
// id: 6,
// category: "React",
// title: "Building Reusable React Components: Best Practices",
// image: "/reusable-react-components.jpg",
// caption:
// "Best practices and tips for building reusable and maintainable React components in your projects.",
// date: "2023-04-10",
// minutesToRead: 11,
// author: "Grace Reacter",
// nbViews: 35,
// nbComments: 9,
// slug: "building-reusable-react-components-best-practices",
// },
// {
// id: 7,
// category: "Next.js",
// title: "Dynamic Routes in Next.js: A Comprehensive Guide",
// image: "/nextjs-dynamic-routes.jpg",
// caption:
// "Comprehensive guide on implementing dynamic routes in Next.js for flexible page rendering.",
// date: "2023-04-25",
// minutesToRead: 13,
// author: "David NextJSPro",
// nbViews: 19,
// nbComments: 4,
// slug: "dynamic-routes-nextjs-comprehensive-guide",
// },
// {
// id: 8,
// category: "React Native",
// title: "State Management in React Native Apps: Redux vs. Context API",
// image: "/react-native-state-management.jpg",
// caption:
// "Comparison of state management solutions, Redux and Context API, in React Native applications.",
// date: "2023-05-12",
// minutesToRead: 18,
// author: "Mia RNDeveloper",
// nbViews: 40,
// nbComments: 11,
// slug: "state-management-react-native-redux-context-api",
// },
// {
// id: 9,
// category: "CSS",
// title: "Responsive Design Patterns with CSS Grid and Flexbox",
// image: "/responsive-design-css.jpg",
// caption:
// "Explore responsive design patterns using CSS Grid and Flexbox for modern web layouts.",
// date: "2023-06-01",
// minutesToRead: 9,
// author: "Ryan CSSMaster",
// nbViews: 27,
// nbComments: 8,
// slug: "responsive-design-patterns-css-grid-flexbox",
// },
// {
// id: 10,
// category: "JavaScript",
// title: "ES6+ Features Every JavaScript Developer Should Know",
// image: "/es6-javascript.jpg",
// caption:
// "Overview of essential ES6+ features and how they can improve your JavaScript development.",
// date: "2023-06-18",
// minutesToRead: 16,
// author: "Sara JSExplorer",
// nbViews: 33,
// nbComments: 10,
// slug: "es6-features-javascript-developers-should-know",
// },
// {
// id: 11,
// category: "React",
// title: "React Hooks: A Deep Dive into Modern React State Management",
// image: "/react-hooks-deep-dive.jpg",
// caption:
// "In-depth exploration of React Hooks and their role in modern React state management.",
// date: "2023-07-05",
// minutesToRead: 12,
// author: "Tom ReactHooksFan",
// nbViews: 24,
// nbComments: 6,
// slug: "react-hooks-deep-dive-modern-react-state-management",
// },
// {
// id: 12,
// category: "Next.js",
// title: "SEO Optimization in Next.js: Best Practices for Higher Rankings",
// image: "/nextjs-seo-optimization.jpg",
// caption:
// "Best practices for optimizing your Next.js applications for search engines and higher rankings.",
// date: "2023-07-20",
// minutesToRead: 14,
// author: "Lily NextJSSEO",
// nbViews: 31,
// nbComments: 9,
// slug: "seo-optimization-nextjs-best-practices-higher-rankings",
// },
// {
// id: 13,
// category: "React Native",
// title: "Navigation in React Native: Choosing the Right Navigation Library",
// image: "/react-native-navigation.jpg",
// caption:
// "Guide to choosing the right navigation library for seamless navigation in React Native apps.",
// date: "2023-08-08",
// minutesToRead: 10,
// author: "Mike RNNavigator",
// nbViews: 23,
// nbComments: 7,
// slug: "navigation-react-native-choosing-right-library",
// },
// {
// id: 14,
// category: "CSS",
// title: "SASS and SCSS: Enhancing CSS with Preprocessors",
// image: "/sass-scss-css.jpg",
// caption:
// "Introduction to SASS and SCSS and how they enhance CSS with variables, mixins, and more.",
// date: "2023-08-25",
// minutesToRead: 15,
// author: "Diana CSSPreprocessor",
// nbViews: 29,
// nbComments: 8,
// slug: "sass-scss-enhancing-css-preprocessors",
// },
// {
// id: 15,
// category: "JavaScript",
// title: "Modern JavaScript Tooling: Babel, Webpack, and Beyond",
// image: "/modern-javascript-tooling.jpg",
// caption:
// "Exploring modern JavaScript tooling with Babel, Webpack, and other essential tools.",
// date: "2023-09-12",
// minutesToRead: 13,
// author: "Chris JSToolingExpert",
// nbViews: 36,
// nbComments: 11,
// slug: "modern-javascript-tooling-babel-webpack-beyond",
// },
// {
// id: 16,
// category: "React",
// title: "Testing React Components: A Comprehensive Guide",
// image: "/testing-react-components.jpg",
// caption:
// "Comprehensive guide to testing React components effectively for robust and reliable code.",
// date: "2023-09-28",
// minutesToRead: 17,
// author: "Mark ReactTestingPro",
// nbViews: 38,
// nbComments: 12,
// slug: "testing-react-components-comprehensive-guide",
// },
// {
// id: 17,
// category: "Next.js",
// title: "Authentication in Next.js: Implementing Secure User Authentication",
// image: "/nextjs-authentication.jpg",
// caption:
// "Implementing secure user authentication in Next.js applications for enhanced security.",
// date: "2023-10-15",
// minutesToRead: 14,
// author: "Olivia NextAuth",
// nbViews: 34,
// nbComments: 10,
// slug: "authentication-nextjs-implementing-secure-user-authentication",
// },
// {
// id: 18,
// category: "React Native",
// title: "Optimizing React Native Apps for Performance: Best Practices",
// image: "/react-native-performance.jpg",
// caption:
// "Best practices for optimizing React Native apps to deliver a high-performance user experience.",
// date: "2023-10-30",
// minutesToRead: 11,
// author: "Tim RNPerformance",
// nbViews: 26,
// nbComments: 7,
// slug: "optimizing-react-native-apps-performance-best-practices",
// },
// {
// id: 19,
// category: "CSS",
// title: "CSS-in-JS: Styling React Applications with Styled Components",
// image: "/css-in-js-styled-components.jpg",
// caption:
// "Introduction to CSS-in-JS and styling React applications with Styled Components for modular styling.",
// date: "2023-11-15",
// minutesToRead: 12,
// author: "Victoria CSSInJS",
// nbViews: 30,
// nbComments: 9,
// slug: "css-in-js-styling-react-applications-styled-components",
// },
// {
// id: 20,
// category: "JavaScript",
// title: "Functional Programming in JavaScript: Principles and Practices",
// image: "/functional-programming-javascript.jpg",
// caption:
// "Understanding the principles and practices of functional programming in JavaScript.",
// date: "2023-11-30",
// minutesToRead: 16,
// author: "Alex FunctionalJS",
// nbViews: 37,
// nbComments: 11,
// slug: "functional-programming-javascript-principles-practices",
// },
// ];