Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
68 changes: 35 additions & 33 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"prettier": "2.7.1",
"prettier-eslint-cli": "^6.0.1",
"rollup-plugin-visualizer": "^5.8.3",
"tailwindcss": "^3.1.8",
"tailwindcss": "^3.2.3",
"terser": "^5.15.1",
"vite": "^3.1.8"
}
Expand Down
5 changes: 4 additions & 1 deletion client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { lazy, Suspense } from "react";
import { BrowserRouter, Navigate, Route, Routes } from "react-router-dom";
import { ErrorBoundary } from "react-error-boundary";
import NavigationBar from "./components/navbar/NavigationBar";
import { data } from "./Helper/NewsData";

import { ErrorState, LoadingState } from "./components/states";

Expand All @@ -10,6 +11,7 @@ const Activity = lazy(() => import("./pages/activity/Activity"));
const Events = lazy(() => import("./pages/events/Events"));
const Projects = lazy(() => import("./pages/projects/Projects"));
const Resources = lazy(() => import("./pages/resources/Resources"));
const News = lazy(() => import("./pages/news/News"))

function App() {
return (
Expand All @@ -18,11 +20,12 @@ function App() {
<ErrorBoundary FallbackComponent={ErrorState}>
<Suspense fallback={<LoadingState />}>
<Routes>
<Route path="/homepage" element={<Homepage />} />
<Route path="/homepage" element={<Homepage data={data} />} />
<Route path="/activity" element={<Activity />} />
<Route path="/activity/events" element={<Events />} />
<Route path="/activity/projects" element={<Projects />} />
<Route path="/resources" element={<Resources />} />
<Route path="/news/:year/:title" element={<News data={data} />} />
<Route path="*" element={<Navigate to="/homepage" replace />} />
</Routes>
</Suspense>
Expand Down
50 changes: 50 additions & 0 deletions client/src/Helper/NewsData.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

export const data = [
{
title: "(Title) Prof. X started a new project",
month: "September",
day: 1,
year: 2022,
description: "(Brief description) Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore asd Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore asd",
links: [
"https://en.wikipedia.org/wiki/Computer_science",
"https://www.britannica.com/science/computer-science",
"https://www.cs.ucla.edu/",
],
},
{
title: "(Title) Prof. X started a new project",
month: "July",
day: 7,
year: 2022,
description:
"(Brief description) Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore asd Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore asd",
links: [],
},
{
title: "AI",
month: "July",
day: 7,
year: 2022,
description: "(Brief description) Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore asd Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore asd",
links: [],
},
{
title: "Graphics Programming",
month: "December",
day: 6,
year: 2022,
description:
"(Brief description) Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore asd Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore asd",
links: [],
},
{
title: "Game Development",
month: "August",
day: 12,
year: 2022,
description: "(Brief description) Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore asd Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore asd",
links: [],
},
];
export default data;
1 change: 1 addition & 0 deletions client/src/node_modules/.bin/acorn

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/src/node_modules/.bin/cssesc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/src/node_modules/.bin/detective

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/src/node_modules/.bin/nanoid

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/src/node_modules/.bin/resolve

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/src/node_modules/.bin/tailwind

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/src/node_modules/.bin/tailwindcss

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading