added react router (p4/8) done for lab

This commit is contained in:
2026-04-14 13:20:14 +10:00
parent ce47a1a610
commit 5b921cbbbb
12 changed files with 552 additions and 38 deletions

View File

@@ -0,0 +1,13 @@
import Navbar from "../components/Navbar";
import Gallery from "./components/Gallery";
import Content from "./components/Content";
function Main() {
return (
<div>
<Navbar active="1"/>
<Gallery/>
<Content/>
</div>
);
}
export default Main;

View File

@@ -1,6 +1,6 @@
import Container from '@mui/material/Container';
import Grid from '@mui/material/Grid';
import structures from "../data";
import structures from "../../data";
import BuildCard from "./BuildCard"
const cardData = [structures[3], structures[6], structures[9], structures[7]]

View File

@@ -1,10 +0,0 @@
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './styles/index.css'
import App from '../App.tsx'
createRoot(document.getElementById('root')!).render(
<StrictMode>
<App />
</StrictMode>,
)