Skip to content

Commit 0ae1b72

Browse files
authored
Merge pull request #9 from ConsenSys/all-apps
All application components
2 parents eba30cf + fd9ae38 commit 0ae1b72

File tree

6 files changed

+127
-13
lines changed

6 files changed

+127
-13
lines changed

.vscode/settings.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib",
3+
"typescript.enablePromptUseWorkspaceTsdk": true
4+
}

app/page.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Inter } from "next/font/google";
22
import Hero from "../components/Hero";
33
import EditorsPick from "../components/EditorsPick";
4+
import AllApps from "../components/AllApps";
45

56
const inter = Inter({ subsets: ["latin"] });
67

@@ -12,6 +13,7 @@ const Home = async () => {
1213
<Hero />
1314
{/* @ts-expect-error Async Server Component */}
1415
<EditorsPick />
16+
<AllApps />
1517
</div>
1618
);
1719
};

components/AllApps.tsx

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import React from "react";
2+
import AppCard from "./AppCard";
3+
import { H2 } from "./Text";
4+
import { getApplications } from "../lib/applications";
5+
6+
const AllApps = async () => {
7+
const allApplications = await getApplications();
8+
9+
return (
10+
<div className="container px-6 pb-2 mx-auto mt-24">
11+
<H2 className="text-center text-transparent mb-14 bg-gradient-to-br bg-clip-text from-primary to-slate-500">
12+
All Available Tools
13+
</H2>
14+
<div className="grid justify-center gap-4 cursor-pointer md:grid-cols-2 lg:grid-cols-3 md:gap-6 lg:gap-12">
15+
{allApplications.map((data) => (
16+
<AppCard key={data.id} data={data} />
17+
))}
18+
</div>
19+
</div>
20+
);
21+
};
22+
23+
export default AllApps;

dummy-data.ts

+90
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,96 @@ export const applications: IApplication[] = [
4444
],
4545
isEditorsPick: true,
4646
},
47+
{
48+
id: "4",
49+
title: "DaoDesk",
50+
category: ["DeFi", "DAO"],
51+
description:
52+
"Sed tempor vitae urna quis imperdiet. In vehicula cursus sodales. Nullam consequat massa id rhoncus tristique.",
53+
applicationUrl: "https://daodesk.org",
54+
repoUrl: "https://github.com/daodesk/daodesk",
55+
screenshots: [
56+
"https://i.imgur.com/nh12vjO.png",
57+
"https://i.imgur.com/samibbK.png",
58+
"https://i.imgur.com/zVIB9Em.png",
59+
],
60+
isEditorsPick: false,
61+
},
62+
{
63+
id: "5",
64+
title: "TokenSquare",
65+
category: ["DeFi", "DAO"],
66+
description:
67+
"Vestibulum tempor feugiat congue. Donec pretium eros enim. Fusce luctus velit consequat, tristique diam at, pulvinar nibh.",
68+
applicationUrl: "https://daodesk.org",
69+
repoUrl: "https://github.com/daodesk/TokenSquare",
70+
screenshots: [
71+
"https://i.imgur.com/hK2Narh.png",
72+
"https://i.imgur.com/samibbK.png",
73+
"https://i.imgur.com/zVIB9Em.png",
74+
],
75+
isEditorsPick: false,
76+
},
77+
{
78+
id: "6",
79+
title: "CryptoCouncil",
80+
category: ["DeFi", "DAO"],
81+
description:
82+
"Sed tempor vitae urna quis imperdiet. In vehicula cursus sodales. Nullam consequat massa id rhoncus tristique.",
83+
applicationUrl: "https://daodesk.org",
84+
repoUrl: "https://github.com/daodesk/CryptoCouncil",
85+
screenshots: [
86+
"https://i.imgur.com/7cdCRdQ.png",
87+
"https://i.imgur.com/samibbK.png",
88+
"https://i.imgur.com/zVIB9Em.png",
89+
],
90+
isEditorsPick: false,
91+
},
92+
{
93+
id: "7",
94+
title: "DaoDesk",
95+
category: ["DeFi", "DAO"],
96+
description:
97+
"Sed tempor vitae urna quis imperdiet. In vehicula cursus sodales. Nullam consequat massa id rhoncus tristique.",
98+
applicationUrl: "https://daodesk.org",
99+
repoUrl: "https://github.com/daodesk/daodesk",
100+
screenshots: [
101+
"https://i.imgur.com/nh12vjO.png",
102+
"https://i.imgur.com/samibbK.png",
103+
"https://i.imgur.com/zVIB9Em.png",
104+
],
105+
isEditorsPick: false,
106+
},
107+
{
108+
id: "8",
109+
title: "TokenSquare",
110+
category: ["DeFi", "DAO"],
111+
description:
112+
"Vestibulum tempor feugiat congue. Donec pretium eros enim. Fusce luctus velit consequat, tristique diam at, pulvinar nibh.",
113+
applicationUrl: "https://daodesk.org",
114+
repoUrl: "https://github.com/daodesk/TokenSquare",
115+
screenshots: [
116+
"https://i.imgur.com/hK2Narh.png",
117+
"https://i.imgur.com/samibbK.png",
118+
"https://i.imgur.com/zVIB9Em.png",
119+
],
120+
isEditorsPick: false,
121+
},
122+
{
123+
id: "9",
124+
title: "CryptoCouncil",
125+
category: ["DeFi", "DAO"],
126+
description:
127+
"Sed tempor vitae urna quis imperdiet. In vehicula cursus sodales. Nullam consequat massa id rhoncus tristique.",
128+
applicationUrl: "https://daodesk.org",
129+
repoUrl: "https://github.com/daodesk/CryptoCouncil",
130+
screenshots: [
131+
"https://i.imgur.com/7cdCRdQ.png",
132+
"https://i.imgur.com/samibbK.png",
133+
"https://i.imgur.com/zVIB9Em.png",
134+
],
135+
isEditorsPick: false,
136+
},
47137
];
48138

49139
export const searchData = {

package-lock.json

+7-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@types/react": "18.0.30",
1717
"@types/react-dom": "18.0.11",
1818
"classnames": "^2.3.2",
19-
"dotenv": "^16.0.3",
19+
"dotenv": "^16.1.3",
2020
"eslint": "8.36.0",
2121
"eslint-config-next": "13.2.4",
2222
"ethers": "^5.7.2",

0 commit comments

Comments
 (0)