CSSS / csss-site-frontend

CSSS Website Frontend (2024 - Present)
https://new.sfucsss.org/
GNU Affero General Public License v3.0
6 stars 6 forks source link

Make Common Rooms page in main app #45

Open micahdbak opened 1 month ago

micahdbak commented 1 month ago

/src/main/index.js

// ...
import { /* ... */, CommonRooms } from './pages';

// ...

const router = createHashRouter([
  // ...
  { path: '/common_rooms', element: <CommonRooms /> },
  // ...
]);

/src/main/pages/CommonRooms.js

import React from 'react';
import { Page } from '../components';

export const CommonRooms = () => {
  return (
    <Page>
      {/* ... */}
    </Page>
  );
};
micahdbak commented 1 month ago

@gunmack

Visual reference: https://ubccsss.org/cube/ (of course, feel free to go in your own direction if you'd like)

Should contain:

To make this page, create the file /src/main/pages/CommonRooms.js, copying the general structure found in the other files under /src/main/pages (i.e., using the /src/main/components/Page.js component, Footer.js component).

You'll need to update the /src/main/index.js file's router definition to include a line for '/common_rooms' with the element being the component exported by /src/main/pages/CommonRooms.js.

Go crazy! LMK if you run into issues setting up node/npm! (Start by reading through the README.md on how to get setup. Use WSL if you're on windows!)

micahdbak commented 3 weeks ago

@gunmack - progress?

gunmack commented 3 weeks ago

58