-
-
Reviews
+
+
+ {/* Reviews */}
+
-
-
- );
+
+
+ );
}
diff --git a/src/app/school/page.jsx b/src/app/school/page.jsx
new file mode 100644
index 0000000..0568f1b
--- /dev/null
+++ b/src/app/school/page.jsx
@@ -0,0 +1,88 @@
+import Image from "next/image";
+import React from 'react';
+import collegediversity from '../../../public/data/collegediversity.json' assert {type: 'json'};
+import historicaltuition from '../../../public/data/historicaltuition.json';
+import salarypotential from '../../../public/data/salarypotential.json';
+import tuitioncost from '../../../public/data/tuitioncost.json';
+import { promises as fs } from 'fs';
+
+export default async function School(collegename) {
+ // const file = await fs.readFile(process.cwd() + '../../../public/data/collegediversity.json', 'utf8');
+ // const data = JSON.parse(file);
+ async function fetchData(collegename) {
+ const dictionary = new Map();
+ try {
+ for (var i = 0; i < arr.length; i++){
+ //document.write("
array index: " + i);
+ var obj = collegediversity[i];
+ if (obj["name"] === collegename) {
+ dictionary.set(obj["catagory"],obj["enrollment"]);
+ }
+ }
+
+ if(response.catagory == "Woman") {
+ throw new Error("Could not fetch resource");
+ }
+ }
+
+ catch(error){
+ console.error(error);
+ }
+ }
+ return (
+
+
+
+
+ {/* Collge Info */}
+
+
+
Racial Distribution of {}
+
+
+
{collegediversity[0].name}
+
{collegediversity[0].state}
+
+
+
{collegediversity[0].name}
+
{collegediversity[0].state}
+
+
+
{collegediversity[0].name}
+
{collegediversity[0].state}
+
+
+
{collegediversity[0].name}
+
{collegediversity[0].state}
+
+
+
{collegediversity[0].name}
+
{collegediversity[0].state}
+
+
+
+ );
+ }
+ /*
+ async function fetchData() {
+
+ try {
+ const response = await fetch('../../../public/data/tuitioncost.json')
+
+ if(response.catagory == "Woman") {
+ throw new Error("Could not fetch resource");
+ }
+
+ const data = await resoponse.json();
+ console.log(dat)
+
+ }
+
+ catch(error){
+ console.error(error)
+ }
+ }*/
diff --git a/src/app/school/page.tsx b/src/app/school/page.tsx
deleted file mode 100644
index ad2ac7a..0000000
--- a/src/app/school/page.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import Image from "next/image";
-import React from 'react';
-import collegediversity from '../../../public/data/collegediversity.json' assert {type: 'json'};
-import historicaltuition from '../../../public/data/historicaltuition.json';
-import salarypotential from '../../../public/data/salarypotential.json';
-import tuitioncost from '../../../public/data/tuitioncost.json';
-import { promises as fs } from 'fs';
-
-export default async function School() {
- // const file = await fs.readFile(process.cwd() + '../../../public/data/collegediversity.json', 'utf8');
- // const data = JSON.parse(file);
-
- function search( joe) {
-
- }
- return (
-
-
{collegediversity[0].name}
-
{collegediversity[0].state}
-
- );
-}
\ No newline at end of file
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 911305e..5f7b0b5 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -18,6 +18,8 @@ const config: Config = {
'med-sea' : '#76C479',
'mint-green' : '#94D777',
'grass-green' : '#D5F48A',
+ 'nicebrown' : '#ac7862',
+ 'dnicebrown' : '#8c624f'
}
},