Skip to content

Commit bdfbf21

Browse files
Fix missing pages.
1 parent 057cab4 commit bdfbf21

File tree

17 files changed

+392
-290
lines changed

17 files changed

+392
-290
lines changed

src/components/fundable/LargeProjectCard.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import styles from "./styles.module.css";
22
import React from "react";
3-
import IconContainer from "./IconContainer";
43
import LinkToGetAQuote from "./LinkToGetAQuote";
54
import { useHistory, useLocation } from "@docusaurus/router";
65

@@ -43,9 +42,22 @@ export default function LargeProjectCard({ project }) {
4342
<LargeProjectCardContent project={project} />
4443
<div className="row">
4544
<div className="col col--12">
46-
<div><LinkToGetAQuote label={"GET A QUOTE"} pageName={project.pageName} /></div>
45+
<div><LinkToGetAQuote label={"GET A QUOTE"} pageName={project.pageName} /></div>
4746
</div>
4847
</div>
4948
</div>
5049
);
5150
}
51+
/*
52+
export default function LargeProjectCard({ project }) {
53+
return (
54+
<div className={styles.large_project_card}>
55+
<LargeProjectCardContent project={project} />
56+
<div className="row">
57+
<div className="col col--12">
58+
<div><LinkToGetAQuote label={"GET A QUOTE"} pageName={project.pageName} /></div>
59+
</div>
60+
</div>
61+
</div>
62+
);
63+
}*/

src/components/fundable/LargeProjectCardPage.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { useHistory, useLocation } from "@docusaurus/router";
2-
import { useEffect } from "react";
3-
import styles from "./styles.module.css";
4-
import LargeProjectCard from "./LargeProjectCard";
5-
import { getCategoryFromProjectPageName } from ".";
6-
import FundableProjects from ".";
7-
import Layout from "@theme/Layout";
1+
import React from 'react';
2+
import Layout from '@theme/Layout';
3+
import { useHistory, useLocation } from '@docusaurus/router';
4+
import { useEffect } from 'react';
85
import { Route } from 'react-router-dom';
9-
6+
import { getCategoryFromProjectPageName } from ".";
7+
import styles from "@site/src/components/about/styles.module.css";
8+
import FundableProjects from '.';
9+
import LargeProjectCard from './LargeProjectCard';
1010

1111
export default function LargeProjectCardPage() {
1212
const location = useLocation();
@@ -51,6 +51,7 @@ export default function LargeProjectCardPage() {
5151
const { pageName } = match.params; /* extract the dynamic part from the url i.e. the pageName*/
5252
const projectsByCategory = getCategoryFromProjectPageName(pageName);
5353
const project = projectsByCategory.find((project) => project.pageName === pageName);
54+
console.log('project:', project)
5455
if (!project) return null;
5556

5657
return (
@@ -68,12 +69,13 @@ export default function LargeProjectCardPage() {
6869
}}
6970
onClick={handleClose}
7071
/>
71-
<LargeProjectCard project={project} />
72+
<LargeProjectCard project={project}/>
7273
</div>
7374
</div>
7475
);
7576
}}
7677
/>
7778
</Layout>
7879
)
79-
}
80+
}
81+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import styles from "./styles.module.css";
2+
import Link from "@docusaurus/Link";
3+
4+
export default function LinkToGetAQuote({ label, pageName }) {
5+
console.log('PageName:', pageName)
6+
return (
7+
<div className="flex-full-centered">
8+
<Link
9+
className={"link-to-button" + " " + styles.link_to_services}
10+
href={"/fundable/" + pageName+'/GetAQuote'}
11+
>
12+
{label}
13+
</Link>
14+
</div>
15+
);
16+
}

src/components/fundable/descriptions/JupyterLabParquetFileViewer.md

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
2+
import GetAQuotePage from '@site/src/components/fundable/GetAQuotePage';
3+
4+
export default function FundablePage() {
5+
const { siteConfig } = useDocusaurusContext();
6+
return (
7+
<GetAQuotePage/>
8+
);
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
2+
import LargeProjectCardPage from '@site/src/components/fundable/LargeProjectCardPage';
3+
4+
export default function FundablePage() {
5+
const { siteConfig } = useDocusaurusContext();
6+
return (
7+
<LargeProjectCardPage/>
8+
);
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
2+
import GetAQuotePage from '@site/src/components/fundable/GetAQuotePage';
3+
4+
export default function FundablePage() {
5+
const { siteConfig } = useDocusaurusContext();
6+
return (
7+
<GetAQuotePage/>
8+
);
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
2+
import LargeProjectCardPage from '@site/src/components/fundable/LargeProjectCardPage';
3+
4+
export default function FundablePage() {
5+
const { siteConfig } = useDocusaurusContext();
6+
return (
7+
<LargeProjectCardPage/>
8+
);
9+
}

src/pages/fundable/JupyterGISToolsForPythonAPI/GetAQuote.tsx

Whitespace-only changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
2+
import LargeProjectCardPage from '@site/src/components/fundable/LargeProjectCardPage';
3+
4+
export default function FundablePage() {
5+
const { siteConfig } = useDocusaurusContext();
6+
return (
7+
<LargeProjectCardPage/>
8+
);
9+
}

0 commit comments

Comments
 (0)