Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6ed5c1ec8 |
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 @@
|
|||||||
|
{}
|
||||||
@ -67,6 +67,12 @@ export const webPagesNavBar = [
|
|||||||
href: '/about',
|
href: '/about',
|
||||||
label: 'about',
|
label: 'about',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
href: '/courses',
|
||||||
|
label: 'courses',
|
||||||
|
},
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export default menuNavBar;
|
export default menuNavBar;
|
||||||
|
|||||||
46
frontend/src/pages/web_pages/courses.tsx
Normal file
46
frontend/src/pages/web_pages/courses.tsx
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
import React, { useEffect } 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';
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const darkElement = document.querySelector('body .dark');
|
||||||
|
if (darkElement) {
|
||||||
|
darkElement.classList.remove('dark');
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="flex flex-col min-h-screen">
|
||||||
|
<Head>
|
||||||
|
<title>{`Courses - ${projectName}`}</title>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content={`Explore courses available at ${projectName}.`}
|
||||||
|
/>
|
||||||
|
</Head>
|
||||||
|
|
||||||
|
<WebSiteHeader projectName={projectName} />
|
||||||
|
|
||||||
|
<main className="flex-grow bg-white rounded-none p-8">
|
||||||
|
<h1 className="text-4xl font-bold mb-6">Our Courses</h1>
|
||||||
|
<p className="mb-4">
|
||||||
|
Discover our comprehensive courses designed to enhance your knowledge
|
||||||
|
and skills.
|
||||||
|
</p>
|
||||||
|
{/* TODO: Add dynamic course listing here */}
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<WebSiteFooter projectName={projectName} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
CoursesPage.getLayout = function getLayout(page: ReactElement) {
|
||||||
|
return <LayoutGuest>{page}</LayoutGuest>;
|
||||||
|
};
|
||||||
Loading…
x
Reference in New Issue
Block a user