Skip to content

Commit fe25351

Browse files
committed
add sidebar navigation to article component
1 parent 0d022f8 commit fe25351

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

src/features/introduction/components/introduction-article/introduction-article.component.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import React from "react";
44
import { getIntroductionContent } from "@/features/localization/services/ui-language-content.service";
55
import { ArticleComponent } from "@/features/common/components/article/article.component";
6+
import styles from "./introduction-article.module.scss";
7+
import { SidebarNavComponent } from "../sidebar-nav/sidebar-nav.component";
68

79
interface IntroductionArticleComponentProps {
810
languageCode: string;
@@ -11,11 +13,12 @@ interface IntroductionArticleComponentProps {
1113
export const IntroductionArticleComponent: React.FC<
1214
IntroductionArticleComponentProps
1315
> = ({ languageCode }) => {
14-
const { Component: Introduction } = getIntroductionContent({ languageCode });
16+
const Introduction = getIntroductionContent({ languageCode });
1517

1618
return (
17-
<ArticleComponent>
18-
<Introduction />
19-
</ArticleComponent>
19+
<div className={styles.container}>
20+
<SidebarNavComponent languageCode={languageCode} />
21+
<ArticleComponent>{Introduction}</ArticleComponent>
22+
</div>
2023
);
2124
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.container {
2+
min-height: 100vh;
3+
display: flex;
4+
flex-direction: row
5+
}
6+
7+
@media (max-width: 768px) {
8+
.container {
9+
flex-direction: column;
10+
}
11+
}

0 commit comments

Comments
 (0)