Skip to content

Commit 99fddce

Browse files
author
Ivan Strilets
committed
update hello widget
1 parent 2458f3a commit 99fddce

File tree

4 files changed

+23
-12
lines changed

4 files changed

+23
-12
lines changed

src/views/main/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export const MainPage = () => {
4545
onChange={(value) => handleTabChange(value)}
4646
/>
4747
<main className={styles.main}>{components[currentTabValue].render}</main>
48+
<div className={styles.dock}></div>
4849
</div>
4950
);
5051
};

src/views/main/styles.module.css

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
}
66

77
.main {
8-
display: flex;
9-
align-items: center;
10-
gap: 20px;
118
height: 100%;
9+
overflow: auto;
10+
}
11+
12+
.dock {
1213
}

src/widgets/hello/ui/index.tsx

+9-7
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ import { ParagraphConstructor } from "@/shared/paragraphConstructor";
88
export const Hello = () => {
99
return (
1010
<section className={styles.hello}>
11-
<div className={styles.title}>
12-
<HelloTitle text="Иван Стрилец" />
13-
<HelloSubtitle text="//Делаю работу" />
14-
<HelloSubtitle text="Качественно" isAccented />
15-
</div>
16-
<div className={styles.text}>
17-
<ParagraphConstructor rows={aboutTextStub} />
11+
<div className={styles.content}>
12+
<div className={styles.title}>
13+
<HelloTitle text="Иван Стрилец" />
14+
<HelloSubtitle text="//Делаю работу" />
15+
<HelloSubtitle text="Качественно" isAccented />
16+
</div>
17+
<div className={styles.text}>
18+
<ParagraphConstructor rows={aboutTextStub} />
19+
</div>
1820
</div>
1921
</section>
2022
);

src/widgets/hello/ui/styles.module.css

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
.hello {
2+
display: flex;
3+
align-items: center;
4+
justify-content: center;
5+
gap: 20px;
6+
min-height: 100%;
7+
}
8+
9+
.content {
210
display: flex;
311
flex-direction: column;
412
justify-content: center;
13+
min-height: 100%;
514
gap: 48px;
6-
height: 100%;
715
padding: 16px;
8-
margin: 0 auto;
916

1017
@media screen and (min-width: 1200px) {
1118
display: grid;

0 commit comments

Comments
 (0)