cources page
This commit is contained in:
parent
5363095eb8
commit
be2fb234ce
File diff suppressed because one or more lines are too long
@ -50,6 +50,10 @@ const nextConfig = {
|
|||||||
source: '/about',
|
source: '/about',
|
||||||
destination: '/web_pages/about',
|
destination: '/web_pages/about',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
source: '/courses',
|
||||||
|
destination: '/web_pages/courses',
|
||||||
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@ -51,6 +51,10 @@ export const webPagesNavBar = [
|
|||||||
href: '/faq',
|
href: '/faq',
|
||||||
label: 'FAQ',
|
label: 'FAQ',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
href: '/courses',
|
||||||
|
label: 'courses',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
href: '/services',
|
href: '/services',
|
||||||
label: 'services',
|
label: 'services',
|
||||||
|
|||||||
36
frontend/src/pages/web_pages/courses.tsx
Normal file
36
frontend/src/pages/web_pages/courses.tsx
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
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={`Access our list of courses on ${projectName}.`}
|
||||||
|
/>
|
||||||
|
</Head>
|
||||||
|
<WebSiteHeader projectName={projectName} />
|
||||||
|
<main className="flex-grow bg-white rounded-none"></main>
|
||||||
|
<WebSiteFooter projectName={projectName} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
CoursesPage.getLayout = function getLayout(page: ReactElement) {
|
||||||
|
return <LayoutGuest>{page}</LayoutGuest>;
|
||||||
|
};
|
||||||
Loading…
x
Reference in New Issue
Block a user