AddressForAll / site-v2

New AddressForAll website, version 3 of attempts to make it better
Apache License 2.0
1 stars 0 forks source link

Implement routes #2

Closed danilohbp closed 2 years ago

danilohbp commented 2 years ago

The routes were created with react-router-dom v6, each page component is assigned the routes defined in the path attribute.

danilohbp commented 2 years ago

Following is the implementation of the routes:

const Routes = () => (
    <BrowserRouter>
        <Switch>
            <Route path="/" element={<Home />} />

            <Route path="about" element={<About />} />
            <Route path="statute" element={<Statute />} />
            <Route path="projects" element={<Projects />} />
            <Route path="partnerships" element={<Partnerships />}/>

            <Route path="api" element={<API />} />
            <Route path="data" element={<Data />} />
            <Route path="services" element={<Services />} />
            <Route path="tools" element={<Tools />} />
        </Switch>
    </BrowserRouter>
);
ppKrauss commented 2 years ago

ok implemented and using static html