Skip to content

Commit e57909a

Browse files
authored
Merge pull request #551 from Shariq2003/JSON_WhitePapers
Added JSON Server Support in the WhitePapers Page | Issue #493
2 parents e43f009 + 72f91f0 commit e57909a

File tree

4 files changed

+80
-30
lines changed

4 files changed

+80
-30
lines changed

PROJECT_STRUCTURE.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
│ ├── Newsletter.png
2323
│ ├── arcade1.png
2424
│ ├── arcade2.png
25+
│ ├── art1.jpeg
26+
│ ├── art2.jpeg
27+
│ ├── art3.jpeg
28+
│ ├── art4.jpeg
29+
│ ├── art5.jpeg
2530
│ ├── avatar.png
2631
│ ├── avatar1.png
2732
│ ├── certi 1.svg
@@ -115,6 +120,9 @@
115120
│ ├── techeq2.webp
116121
│ ├── truth1.png
117122
│ ├── vision.webp
123+
│ ├── voy1.png
124+
│ ├── voy2.jpeg
125+
│ ├── voy3.png
118126
│ └── week1.png
119127
├── repo_structure.txt
120128
├── security.md
@@ -183,6 +191,8 @@
183191
│ │ │ │ │ └── page.jsx
184192
│ │ │ │ ├── page.jsx
185193
│ │ │ │ └── resources.js
194+
│ │ │ ├── ReverseEngineeringLab/
195+
│ │ │ │ └── page.jsx
186196
│ │ │ ├── RulesAndRegulations/
187197
│ │ │ │ └── page.jsx
188198
│ │ │ ├── SignIn/
@@ -207,6 +217,10 @@
207217
│ │ │ │ └── techStacks.js
208218
│ │ │ ├── TermsAndConditions/
209219
│ │ │ │ └── page.jsx
220+
│ │ │ ├── Voyages/
221+
│ │ │ │ └── page.jsx
222+
│ │ │ ├── ai-art-gallery/
223+
│ │ │ │ └── page.jsx
210224
│ │ │ ├── ai-ml/
211225
│ │ │ │ └── page.jsx
212226
│ │ │ ├── alumini/
@@ -234,6 +248,10 @@
234248
│ │ │ │ └── page.jsx
235249
│ │ │ ├── db-overview/
236250
│ │ │ │ └── page.jsx
251+
│ │ │ ├── detox-zone/
252+
│ │ │ │ └── page.jsx
253+
│ │ │ ├── dev-nightmare/
254+
│ │ │ │ └── page.jsx
237255
│ │ │ ├── devStudent/
238256
│ │ │ │ └── page.jsx
239257
│ │ │ ├── devfest/

data.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48331,5 +48331,33 @@
4833148331
"description": "Discover how to monetize your mobile apps with targeted in-app advertising that matches criteria you set.",
4833248332
"tags": ["Mobile", "Advertising"]
4833348333
}
48334+
],
48335+
"whitepapers": [
48336+
{
48337+
"category": "Featured Whitepapers",
48338+
"items": [
48339+
{ "title": "Boston Consulting Group: Any company can become a resilient data champion", "description": "Insights from 700 global business leaders reveal the secrets to data maturity." },
48340+
{ "title": "Deliver software securely", "description": "Learn industry standards and best practices to secure every stage in your software supply chain." },
48341+
{ "title": "Evaluate your cloud migration options", "description": "Devise your migration strategy that empowers both the business and IT." },
48342+
{ "title": "Understand the principles of cost optimization", "description": "Discover five ways to reduce overall cloud spend with a cost optimization strategy." },
48343+
{ "title": "Designing Cloud Teams", "description": "How to Build a Better Cloud Center of Excellence." }
48344+
]
48345+
},
48346+
{
48347+
"category": "AI and ML",
48348+
"items": [
48349+
{ "title": "A Platform Approach to Scaling Generative AI in the Enterprise", "description": "Explore why AI platforms, not just models, are important for scaling generative AI for enterprises." },
48350+
{ "title": "Enabling Generative AI Value: Creating An Evaluation Framework for Your Organization", "description": "Explore how to develop a framework to evaluate generative AI beyond basic task metrics." },
48351+
{ "title": "Selecting the right model Customization and Augmentation techniques", "description": "Use RAG, fine-tuning, prompt engineering, and other techniques to improve performance." }
48352+
]
48353+
},
48354+
{
48355+
"category": "Cloud Basics",
48356+
"items": [
48357+
{ "title": "Google’s guide to innovation", "description": "Learn how Google developed a work culture that fosters creative thinking." },
48358+
{ "title": "Increasing business value with better IT operations: A guide to SRE", "description": "Learn what SRE is and how it can improve IT operations." },
48359+
{ "title": "SAP on Google Cloud: High availability", "description": "Architect SAP systems in Google Cloud for high availability." }
48360+
]
48361+
}
4833448362
]
4833548363
}

repo_structure.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
│ ├── Newsletter.png
1919
│ ├── arcade1.png
2020
│ ├── arcade2.png
21+
│ ├── art1.jpeg
22+
│ ├── art2.jpeg
23+
│ ├── art3.jpeg
24+
│ ├── art4.jpeg
25+
│ ├── art5.jpeg
2126
│ ├── avatar.png
2227
│ ├── avatar1.png
2328
│ ├── certi 1.svg
@@ -111,6 +116,9 @@
111116
│ ├── techeq2.webp
112117
│ ├── truth1.png
113118
│ ├── vision.webp
119+
│ ├── voy1.png
120+
│ ├── voy2.jpeg
121+
│ ├── voy3.png
114122
│ └── week1.png
115123
├── repo_structure.txt
116124
├── security.md
@@ -179,6 +187,8 @@
179187
│ │ │ │ │ └── page.jsx
180188
│ │ │ │ ├── page.jsx
181189
│ │ │ │ └── resources.js
190+
│ │ │ ├── ReverseEngineeringLab/
191+
│ │ │ │ └── page.jsx
182192
│ │ │ ├── RulesAndRegulations/
183193
│ │ │ │ └── page.jsx
184194
│ │ │ ├── SignIn/
@@ -203,6 +213,10 @@
203213
│ │ │ │ └── techStacks.js
204214
│ │ │ ├── TermsAndConditions/
205215
│ │ │ │ └── page.jsx
216+
│ │ │ ├── Voyages/
217+
│ │ │ │ └── page.jsx
218+
│ │ │ ├── ai-art-gallery/
219+
│ │ │ │ └── page.jsx
206220
│ │ │ ├── ai-ml/
207221
│ │ │ │ └── page.jsx
208222
│ │ │ ├── alumini/
@@ -230,6 +244,10 @@
230244
│ │ │ │ └── page.jsx
231245
│ │ │ ├── db-overview/
232246
│ │ │ │ └── page.jsx
247+
│ │ │ ├── detox-zone/
248+
│ │ │ │ └── page.jsx
249+
│ │ │ ├── dev-nightmare/
250+
│ │ │ │ └── page.jsx
233251
│ │ │ ├── devStudent/
234252
│ │ │ │ └── page.jsx
235253
│ │ │ ├── devfest/

src/app/(pages)/whitepapers/page.jsx

Lines changed: 16 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,22 @@
11
"use client"
2-
import React from 'react';
3-
4-
const whitepapers = [
5-
{
6-
category: "Featured Whitepapers",
7-
items: [
8-
{ title: "Boston Consulting Group: Any company can become a resilient data champion", description: "Insights from 700 global business leaders reveal the secrets to data maturity." },
9-
{ title: "Deliver software securely", description: "Learn industry standards and best practices to secure every stage in your software supply chain." },
10-
{ title: "Evaluate your cloud migration options", description: "Devise your migration strategy that empowers both the business and IT." },
11-
{ title: "Understand the principles of cost optimization", description: "Discover five ways to reduce overall cloud spend with a cost optimization strategy." },
12-
{ title: "Designing Cloud Teams", description: "How to Build a Better Cloud Center of Excellence." },
13-
],
14-
},
15-
{
16-
category: "AI and ML",
17-
items: [
18-
{ title: "A Platform Approach to Scaling Generative AI in the Enterprise", description: "Explore why AI platforms, not just models, are important for scaling generative AI for enterprises." },
19-
{ title: "Enabling Generative AI Value: Creating An Evaluation Framework for Your Organization", description: "Explore how to develop a framework to evaluate generative AI beyond basic task metrics." },
20-
{ title: "Selecting the right model Customization and Augmentation techniques", description: "Use RAG, fine-tuning, prompt engineering, and other techniques to improve performance." },
21-
],
22-
},
23-
{
24-
category: "Cloud Basics",
25-
items: [
26-
{ title: "Google’s guide to innovation", description: "Learn how Google developed a work culture that fosters creative thinking." },
27-
{ title: "Increasing business value with better IT operations: A guide to SRE", description: "Learn what SRE is and how it can improve IT operations." },
28-
{ title: "SAP on Google Cloud: High availability", description: "Architect SAP systems in Google Cloud for high availability." },
29-
],
30-
},
31-
];
2+
import React, { useState, useEffect } from 'react';
323

334
const WhitepapersPage = () => {
5+
const [whitepapers, setWhitepapers] = useState([]);
6+
7+
useEffect(() => {
8+
const fetchWhitepapers = async () => {
9+
try {
10+
const response = await fetch('http://localhost:5000/whitepapers');
11+
const data = await response.json();
12+
setWhitepapers(data);
13+
} catch (error) {
14+
console.error("Error fetching whitepapers:", error);
15+
}
16+
};
17+
18+
fetchWhitepapers();
19+
}, []);
3420
return (
3521
<div className="bg-gray-50 min-h-screen p-6">
3622
{/* Header Section */}

0 commit comments

Comments
 (0)