Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added JSON Server Support in the Growth Page | Issue #493 #537

Merged
merged 5 commits into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions PROJECT_STRUCTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@
│ │ ├── hover-card.jsx
│ │ ├── input.jsx
│ │ ├── label.jsx
│ │ ├── loading.jsx
│ │ ├── menubar.jsx
│ │ ├── navigation-menu.jsx
│ │ ├── notification.jsx
Expand Down
72 changes: 72 additions & 0 deletions data.json
Original file line number Diff line number Diff line change
Expand Up @@ -48247,5 +48247,77 @@
]
}
}
],
"overviewProducts":[
{
"title": "Google Play",
"description": "Publish your apps and games, grow your audience, boost engagement, and earn revenue.",
"image": "/gro1.png"
},
{
"title": "Google AdMob",
"description": "Monetize mobile apps with targeted, in-app advertising that respects user experience.",
"image": "/gro2.png"
},
{
"title": "Google Ads",
"description": "Promote your website, products, and app to the right users with Google Ads.",
"image": "/gro3.svg"
},
{
"title": "Firebase",
"description": "An app development platform that helps you build and grow apps and games users love.",
"image": "/gro4.svg"
}
],
"allProducts":[
{
"title": "Firebase In-App Messaging",
"description": "Firebase In-App Messaging helps you engage your app's active users by sending them targeted, contextual messages that encourage them to use key app features."
},
{
"title": "Firebase Cloud Messaging",
"description": "Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably send messages at no cost."
},
{
"title": "Chrome Extensions",
"description": "Learn how to develop Chrome extensions."
},
{
"title": "Google Ads API",
"description": "Build tools to manage large Google Ads accounts and campaigns."
},
{
"title": "Privacy Sandbox",
"description": "Privacy-focused APIs and updates for cookies, advertising, identity, personalization, and fraud prevention."
},
{
"title": "Google Play's billing system",
"description": "Google Play’s billing system Sell digital in-app products and subscriptions in your app."
},
{
"title": "Distribute Your Apps & Games on Google Play",
"description": "Utilize Google Play to distribute your apps and games, which has the ability to reach over 2 billion Android devices and increase total app downloads."
},
{
"title": "Google Play Console",
"description": "Publish your apps and games with Google Play Console and grow your business on Google Play."
},
{
"title": "Interactive Media Ads SDKs",
"description": "The IMA SDKs enable publishers to monetize video, audio, or gaming content with video advertising."
},
{
"title": "AdSense",
"description": "Google AdSense provides a free, flexible way to earn money from your websites, mobile sites, and site search results."
},
{
"title": "Google Ads",
"description": "Create and manage ads that reach users looking for your products or services on Google Search, Display, YouTube, and more."
},
{
"title": "AdMob",
"description": "Discover how to monetize your mobile apps with targeted in-app advertising that matches criteria you set."
}
]
}
1 change: 1 addition & 0 deletions repo_structure.txt
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@
│ │ ├── hover-card.jsx
│ │ ├── input.jsx
│ │ ├── label.jsx
│ │ ├── loading.jsx
│ │ ├── menubar.jsx
│ │ ├── navigation-menu.jsx
│ │ ├── notification.jsx
Expand Down
22 changes: 21 additions & 1 deletion src/app/(pages)/growth/page.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,32 @@
'use client';
import React, { useState } from 'react';
import React, { useState, useEffect } from 'react';
import { motion } from 'framer-motion';
import { Search } from 'lucide-react';
import ProductsNavbar from '../../../components/Global/ProductsNavbar';

// Growth and Monetization Page Component
const GrowthMonetizationPage = () => {
const [selectedTab, setSelectedTab] = useState("Growth and monetization");
const [overviewProducts, setOverviewProducts] = useState([]);
const [allProducts, setAllProducts] = useState([]);

useEffect(() => {
const fetchProducts = async () => {
try {
const overviewResponse = await fetch('http://localhost:5000/overviewProducts');
const allResponse = await fetch('http://localhost:5000/allProducts');
const overviewData = await overviewResponse.json();
const allData = await allResponse.json();

setOverviewProducts(overviewData);
setAllProducts(allData);
} catch (error) {
console.error('Error fetching product data:', error);
}
};

fetchProducts();
}, []);

return (
<div className="bg-white text-black">
Expand Down
Loading