-
+
+
+
);
diff --git a/src/components/SubjectText.tsx b/src/components/SubjectText.tsx
index 057290a..ddb396f 100644
--- a/src/components/SubjectText.tsx
+++ b/src/components/SubjectText.tsx
@@ -1,12 +1,14 @@
+import styles from "../styles/subject.module.scss";
+
interface SubjectTextProps {
title: string;
+ className: string;
}
-
const SubjectText = (props: SubjectTextProps) => {
return (
- <>
-
{props.title}
-
+
+
{props.title}
+
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
@@ -31,7 +33,7 @@ const SubjectText = (props: SubjectTextProps) => {
nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo
voluptas nulla pariatur?
- >
+
);
};
diff --git a/src/global.scss b/src/global.scss
index 0156f3a..30ea1ef 100644
--- a/src/global.scss
+++ b/src/global.scss
@@ -1,4 +1,3 @@
@import './styles/variables.scss';
@import './styles/reset.scss';
-@import './styles/header.scss';
-@import './styles/main.scss'
\ No newline at end of file
+@import './styles/header.scss';
\ No newline at end of file
diff --git a/src/styles/main.module.scss b/src/styles/main.module.scss
new file mode 100644
index 0000000..69f2132
--- /dev/null
+++ b/src/styles/main.module.scss
@@ -0,0 +1,29 @@
+@import "variables.scss";
+
+.page-main {
+ padding: 0 100px;
+
+ &__menu {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ margin-top: 30px;
+ }
+
+ &__text {
+ font-weight: 400;
+ font-size: 12px;
+ line-height: 14px;
+ color: $gray-700;
+ }
+
+ &__title {
+ margin-top: 80px;
+ text-align: center;
+ font-weight: 400;
+ font-size: 24px;
+ line-height: 28px;
+ letter-spacing: 0.1em;
+ color: $gray;
+ }
+}
\ No newline at end of file
diff --git a/src/styles/main.scss b/src/styles/main.scss
deleted file mode 100644
index f680ea1..0000000
--- a/src/styles/main.scss
+++ /dev/null
@@ -1,82 +0,0 @@
-.page-main {
- padding: 0 100px;
-
- &__menu {
- display: flex;
- align-items: center;
- gap: 10px;
- margin-top: 30px;
- }
-
- &__text {
- font-weight: 400;
- font-size: 12px;
- line-height: 14px;
- color: $gray-700;
- }
-
- &__title {
- margin-top: 80px;
- text-align: center;
- font-weight: 400;
- font-size: 24px;
- line-height: 28px;
- letter-spacing: 0.1em;
- color: $gray;
- }
-
- .page-subject {
- display: flex;
- margin-top: 80px;
- gap: 30px;
-
- &__menu {
- width: 302px;
- border-right: 1px solid $black ;
- }
-
- &__button {
- border: 0;
- outline: 0;
- background: transparent;
- font-weight: 400;
- font-size: 16px;
- line-height: 19px;
- color: $gray-400;
- width: 302px;
- height: 39px;
- text-align: start;
- padding-left: 16px;
-
- &:hover,
- &:active {
- background: $black;
- font-weight: 700;
- color: $white;
- }
- }
-
- &__text {
- display: flex;
- flex-direction: column;
- gap: 12px;
- justify-content: center;
- margin-top: 10px;
-
- h2 {
- font-weight: 700;
- font-size: 24px;
- line-height: 28px;
- color: $gray;
- }
-
- p {
- font-weight: 400;
- font-size: 13px;
- line-height: 15px;
- color: $gray-400;
- }
-
- }
- }
-}
\ No newline at end of file
diff --git a/src/styles/subject.module.scss b/src/styles/subject.module.scss
new file mode 100644
index 0000000..5efea56
--- /dev/null
+++ b/src/styles/subject.module.scss
@@ -0,0 +1,61 @@
+@import "variables.scss";
+
+.page-subject {
+ display: flex;
+ margin-top: 80px;
+ gap: 30px;
+
+ &__menu {
+ width: 302px;
+ border-right: 1px solid $black ;
+ }
+
+ &__button {
+ border: 0;
+ outline: 0;
+ background: transparent;
+ font-weight: 400;
+ font-size: 16px;
+ line-height: 19px;
+ color: $gray-400;
+ width: 302px;
+ height: 39px;
+ text-align: start;
+ padding-left: 16px;
+
+ &:hover,
+ &:active {
+ background: $black;
+ font-weight: 700;
+ color: $white;
+ }
+ }
+
+ &__container {
+ display: none;
+ }
+
+ .active {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+ justify-content: center;
+ margin-top: 10px;
+ }
+
+ &__title {
+ font-weight: 700;
+ font-size: 24px;
+ line-height: 28px;
+ color: $gray;
+ }
+
+ &__paragraph {
+ font-weight: 400;
+ font-size: 13px;
+ line-height: 15px;
+ color: $gray-400;
+ }
+
+
+}
\ No newline at end of file