cources
This commit is contained in:
parent
d9b8ffbeab
commit
f1670e105f
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,3 +1,8 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
*/node_modules/
|
*/node_modules/
|
||||||
*/build/
|
*/build/
|
||||||
|
|
||||||
|
**/node_modules/
|
||||||
|
**/build/
|
||||||
|
.DS_Store
|
||||||
|
.env
|
||||||
File diff suppressed because one or more lines are too long
1
frontend/json/runtimeError.json
Normal file
1
frontend/json/runtimeError.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{}
|
||||||
@ -50,6 +50,11 @@ const nextConfig = {
|
|||||||
source: '/about',
|
source: '/about',
|
||||||
destination: '/web_pages/about',
|
destination: '/web_pages/about',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
source: '/courses',
|
||||||
|
destination: '/web_pages/courses',
|
||||||
|
},
|
||||||
|
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@ -67,6 +67,11 @@ export const webPagesNavBar = [
|
|||||||
href: '/about',
|
href: '/about',
|
||||||
label: 'about',
|
label: 'about',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
href: '/courses',
|
||||||
|
label: 'courses',
|
||||||
|
},
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export default menuNavBar;
|
export default menuNavBar;
|
||||||
|
|||||||
31
frontend/src/pages/web_pages/courses.tsx
Normal file
31
frontend/src/pages/web_pages/courses.tsx
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import type { ReactElement } from 'react';
|
||||||
|
import Head from 'next/head';
|
||||||
|
import LayoutGuest from '../../layouts/Guest';
|
||||||
|
import WebSiteHeader from '../../components/WebPageComponents/Header';
|
||||||
|
import WebSiteFooter from '../../components/WebPageComponents/Footer';
|
||||||
|
|
||||||
|
export default function CoursesPage() {
|
||||||
|
const projectName = 'test i18';
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Head>
|
||||||
|
<title>Courses - {projectName}</title>
|
||||||
|
<meta name="description" content="Courses page." />
|
||||||
|
</Head>
|
||||||
|
|
||||||
|
<WebSiteHeader projectName={projectName} />
|
||||||
|
|
||||||
|
<main className="flex-grow p-8">
|
||||||
|
{/* Blank page content for Courses */}
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<WebSiteFooter projectName={projectName} />
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
CoursesPage.getLayout = function getLayout(page: ReactElement) {
|
||||||
|
return <LayoutGuest>{page}</LayoutGuest>;
|
||||||
|
};
|
||||||
Loading…
x
Reference in New Issue
Block a user