Skip to content

Commit 0e59fc8

Browse files
committed
added changes related to adaptive version
1 parent dc11180 commit 0e59fc8

File tree

11 files changed

+119
-2
lines changed

11 files changed

+119
-2
lines changed

src/index.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ html(lang="en")
228228
.footer__right-top
229229
nav.nav
230230
- var menu = ['Главная', 'Обо мне', 'Навыки', 'Работы', 'Отзывы', 'Связаться']
231-
ul.nav__list
231+
ul.nav__list-footer
232232
each item in menu
233233
li.nav__item-footer
234234
a(href='').nav__link-footer #{item}

src/scripts/works.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Vue from "vue";
2+
3+
const skill = {
4+
template: "#skill",
5+
props: ["skill"],
6+
methods: {
7+
8+
}
9+
10+
11+
12+
13+
}

src/styles/blocks/about.pcss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,24 @@
55
.about__container {
66
display: flex;
77
justify-content: space-between;
8+
@include phones {
9+
flex-direction: column;
10+
}
811
}
912

1013
.about__left {
1114
width: 50%;
1215
margin-right: 30px;
16+
@include phones {
17+
width: 100%;
18+
}
1319
}
1420

1521
.about__right {
1622
width: 50%;
23+
@include phones {
24+
width: 100%;
25+
}
1726
}
1827

1928
.about__prolog {

src/styles/blocks/footer.pcss

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,22 @@
77
justify-content: space-evenly;
88
align-items: flex-start;
99
padding: 100px 0;
10+
@include phones {
11+
flex-direction: column;
12+
}
1013
}
1114

1215
.footer__left {
1316
display: flex;
1417
width: 30%;
1518
justify-content: space-around;
1619
align-items: flex-start;
20+
@include desktop {
21+
flex-direction: column;
22+
}
23+
@include phones {
24+
width: 100%;
25+
}
1726
}
1827

1928
.copyright {
@@ -48,11 +57,18 @@
4857
flex-direction: column;
4958
justify-content: space-between;
5059
align-items: flex-start;
60+
@include phones {
61+
width: 100%;
62+
}
63+
5164
}
5265

5366
.footer__right-top {
5467
display: flex;
55-
margin-bottom: 35px;;
68+
margin-bottom: 35px;
69+
@include tablets {
70+
flex-wrap: nowrap;
71+
}
5672
}
5773

5874
.nav__item-footer {
@@ -72,6 +88,9 @@
7288

7389
.footer__right-bottom {
7490
display: flex;
91+
@include tablets {
92+
flex-direction: column;
93+
}
7594
}
7695

7796
.socials__item-footer {

src/styles/blocks/form.pcss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
color: dark;
1111
font-size: 36px;
1212
margin-bottom: 100px;
13+
@include tablets {
14+
text-align: center;
15+
}
1316
}
1417

1518
.btn {
@@ -43,11 +46,17 @@
4346
.input__icon {
4447
width: 30px;
4548
height: 30px;
49+
@include phones {
50+
display: none;
51+
}
4652
}
4753

4854
.form__row {
4955
display: flex;
5056
margin-bottom: 10px;
57+
@include phones {
58+
flex-direction: column;
59+
}
5160
}
5261

5362
.form__row:last-child {
@@ -100,6 +109,9 @@
100109
.form__buttons-row {
101110
display: flex;
102111
align-items: center;
112+
@include tablets {
113+
justify-content: center;
114+
}
103115
}
104116

105117
.form__buttons {

src/styles/blocks/hero.pcss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,19 @@
2323
color: dark;
2424
font-size: 36px;
2525
}
26+
27+
.hero__links {
28+
29+
@include tablets {
30+
display: none;
31+
}
32+
}
2633

2734
.hero__menu {
2835
margin: 0 20px;
36+
@include phones {
37+
display: none;
38+
}
2939
}
3040

3141
.hero__header {
@@ -40,6 +50,16 @@
4050
text-align: center;
4151
}
4252

53+
.user-info {
54+
55+
@include desktop {
56+
display: flex;
57+
}
58+
@include tablets {
59+
flex-direction: column;
60+
}
61+
}
62+
4363
.user-info__desc {
4464
@include sans(semibold);
4565
color: lightdark;
@@ -59,6 +79,9 @@
5979
justify-content: center;
6080
align-items: center;
6181
padding: 50px 0;
82+
@include tablets {
83+
display: none;
84+
}
6285
}
6386

6487
.scroll__down-btns {

src/styles/blocks/nav.pcss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
display: flex;
33
align-items: center;
44
}
5+
6+
.nav__list-footer {
7+
display: flex;
8+
align-items: center;
9+
@include tablets {
10+
flex-wrap: wrap;
11+
}
12+
}
513

614
.nav__item {
715
margin-right: 30px;

src/styles/blocks/skill.pcss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929

3030
.skills-row__list {
3131
display: flex;
32+
@include phones {
33+
flex-wrap: wrap;
34+
}
3235
}
3336

3437
.skill {

src/styles/blocks/values.pcss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
display: flex;
77
justify-content: space-between;
88
align-items: center;
9+
@include tablets {
10+
flex-direction: column;
11+
}
912
}
1013

1114
.values__title {
@@ -14,6 +17,18 @@
1417
flex-direction: column;
1518
justify-content: space-evenly;
1619
align-items: flex-start;
20+
@include tablets {
21+
justify-content: center;
22+
align-items: center;
23+
text-align: center;
24+
width: 100%;
25+
}
26+
@include phones {
27+
justify-content: space-evenly;
28+
align-items: flex-start;
29+
width: 100%;
30+
}
31+
1732
}
1833

1934
.values__title-text {
@@ -32,4 +47,7 @@
3247

3348
.values__image {
3449
width: 40%;
50+
@include tablets {
51+
width: 100%;
52+
}
3553
}

src/styles/blocks/works.pcss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
.works__wrapper {
77
display: flex;
88
margin-left: 20px;
9+
@include tablets {
10+
flex-direction: column;
11+
justify-content: center;
12+
align-items: center;
13+
text-align: center;
14+
}
915
}
1016

1117
.section-title__works {
@@ -19,13 +25,19 @@
1925

2026
.works__left {
2127
width: 70%;
28+
@include tablets {
29+
width: 100%;
30+
}
2231
}
2332

2433
.works__right {
2534
display: flex;
2635
flex-direction: column;
2736
width: 30%;
2837
margin-left: 150px;
38+
@include tablets {
39+
width: 100%;
40+
}
2941
}
3042

3143
.works__tags {

0 commit comments

Comments
 (0)