diff --git a/src/app/components/side-menu/side-menu.html b/src/app/components/side-menu/side-menu.html index 75fed94..ddf5a08 100644 --- a/src/app/components/side-menu/side-menu.html +++ b/src/app/components/side-menu/side-menu.html @@ -4,14 +4,22 @@ +
  • +
  • + +
  • + + + +
  • diff --git a/src/app/page/faq/faq.html b/src/app/page/faq/faq.html new file mode 100644 index 0000000..832e139 --- /dev/null +++ b/src/app/page/faq/faq.html @@ -0,0 +1,32 @@ +
    + Playground FAQ + +
    + + + How do I create a new user? + +

    + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

    +
    + + + + Why is my product not in the list? + +

    + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

    +
    + + + + Why are all the answers Lorem ipsum? + +

    + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

    +
    +
    +
    diff --git a/src/app/page/faq/faq.scss b/src/app/page/faq/faq.scss new file mode 100644 index 0000000..0368a48 --- /dev/null +++ b/src/app/page/faq/faq.scss @@ -0,0 +1,11 @@ +.faq { + display: grid; + grid-template-rows: 100px 1fr; + row-gap: 10px; + margin: 0 1rem; + text-align: center; + + &__content { + text-align: start; + } +} diff --git a/src/app/page/faq/faq.ts b/src/app/page/faq/faq.ts new file mode 100644 index 0000000..0f12016 --- /dev/null +++ b/src/app/page/faq/faq.ts @@ -0,0 +1,22 @@ +import './faq.scss'; +import template from './faq.html?raw'; + +class Faq { + // eslint-disable-next-line class-methods-use-this + init() { + // Should be implement + } + + // eslint-disable-next-line class-methods-use-this + destroy() { + // Should be implement + } + + static loadTemplate(): string { + return template + } +} + +export { + Faq, +} diff --git a/src/app/router/route.ts b/src/app/router/route.ts index 7b3727a..2030c76 100644 --- a/src/app/router/route.ts +++ b/src/app/router/route.ts @@ -5,6 +5,7 @@ import { Products } from "../page/products/list/products"; import { SignIn } from "../page/signIn/signIn"; import { Users } from "../page/users/users"; import { hasSessionToken } from "../helpers/session"; +import { Faq } from "@app/page/faq/faq"; enum RouteName { SIGN_IN = 'SIGN_IN', @@ -13,6 +14,7 @@ enum RouteName { PRODUCTS = 'PRODUCTS', EDIT_PRODUCTS = 'EDIT_PRODUCTS', NEW_PRODUCTS = 'NEW_PRODUCTS', + FAQ = 'FAQ', } interface Route { @@ -103,6 +105,18 @@ const routes: Record = { path: '/products/:id', template: EditProduct.loadTemplate(), }, + [RouteName.FAQ]: { + afterEnter() { + this.instance.init(); + }, + afterExit() { + this.instance.destroy(); + }, + guard, + instance: new Faq(), + path: '/faq', + template: Faq.loadTemplate(), + }, }; export { diff --git a/vite.config.ts b/vite.config.ts index 77be1e0..fb43c0f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,7 +3,7 @@ import path from 'path'; // https://vitejs.dev/config/ export default defineConfig({ - base: 'ods-playground-vanilla/', + // base: 'ods-playground-vanilla/', resolve: { alias: { '@app': path.resolve(__dirname, './src/app'),