Skip to content

Commit 418ae21

Browse files
committed
fix: footer wrap text
1 parent 9879aa6 commit 418ae21

File tree

6 files changed

+67
-4
lines changed

6 files changed

+67
-4
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"react-github-calendar": "^3.4.0",
3232
"react-icons": "^4.4.0",
3333
"react-redux": "^8.0.2",
34+
"react-responsive": "^9.0.2",
3435
"react-router-dom": "6",
3536
"react-scripts": "5.0.1",
3637
"recharts": "^2.3.0",

src/pages/Portfolio/features/PortfolioContent/AppCenter/AppCenter.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
grid-area: 3 / 1 / 3 / 1;
2929
}
3030
}
31+
.app_center-explore_more {
32+
display: flex;
33+
align-items: center;
34+
justify-content: center;
35+
flex-direction: row;
36+
}
3137
}
3238

3339
@media only screen and (max-width:1230px) {
@@ -57,4 +63,5 @@
5763
justify-content: center;
5864
flex-direction: column;
5965
}
60-
}
66+
}
67+

src/pages/Portfolio/features/components/ExploreMore/ExploreMore.scss

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.explore-more {
2+
margin: auto;
23
position: relative;
34
color: green;
45
display: flex;
@@ -14,4 +15,19 @@
1415
flex-direction: column;
1516
width: 200px;
1617
// background-color: red;
17-
}
18+
}
19+
20+
@media only screen and (max-width:510px) {
21+
.explore-more {
22+
display: none;
23+
}
24+
25+
.weekly-progress {
26+
margin: auto;
27+
padding: 20px;
28+
position: absolute;
29+
width: 100%;
30+
left: 0;
31+
}
32+
}
33+

src/pages/Portfolio/features/components/SkillItem/SkillItem.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ $tagHeight: 30px;
55
height: $tagHeight;
66
width: 100%;
77

8+
@media only screen and (max-width:1230px) {
9+
&-label {
10+
content: "KK";
11+
}
12+
}
13+
814
&-label {
15+
white-space: nowrap;
916
position: relative;
1017
font-size:large;
1118
font-weight: 600;

src/pages/Portfolio/features/components/SkillItem/SkillItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import PropTypes from 'prop-types'
33
import './SkillItem.scss'
44
import { SkillDetail } from '../../../../../data'
5-
// import {SkillDetail} from '../../../data'
5+
import MediaQuery from 'react-responsive';
66

77
SkillItem.defaultProps = {
88
id: "id",

yarn.lock

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3693,6 +3693,11 @@ css-loader@^6.5.1:
36933693
postcss-value-parser "^4.2.0"
36943694
semver "^7.3.5"
36953695

3696+
css-mediaquery@^0.1.2:
3697+
version "0.1.2"
3698+
resolved "https://registry.yarnpkg.com/css-mediaquery/-/css-mediaquery-0.1.2.tgz#6a2c37344928618631c54bd33cedd301da18bea0"
3699+
integrity sha512-COtn4EROW5dBGlE/4PiKnh6rZpAPxDeFLaEEwt4i10jpDMFt2EhQGS79QmmrO+iKCHv0PU/HrOWEhijFd1x99Q==
3700+
36963701
css-minimizer-webpack-plugin@^3.2.0:
36973702
version "3.4.1"
36983703
resolved "https://registry.npmjs.org/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.4.1.tgz"
@@ -5432,6 +5437,11 @@ human-signals@^2.1.0:
54325437
resolved "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz"
54335438
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
54345439

5440+
hyphenate-style-name@^1.0.0:
5441+
version "1.0.4"
5442+
resolved "https://registry.yarnpkg.com/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz#691879af8e220aea5750e8827db4ef62a54e361d"
5443+
integrity sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ==
5444+
54355445
54365446
version "0.4.24"
54375447
resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz"
@@ -6615,6 +6625,13 @@ [email protected]:
66156625
dependencies:
66166626
tmpl "1.0.5"
66176627

6628+
matchmediaquery@^0.3.0:
6629+
version "0.3.1"
6630+
resolved "https://registry.yarnpkg.com/matchmediaquery/-/matchmediaquery-0.3.1.tgz#8247edc47e499ebb7c58f62a9ff9ccf5b815c6d7"
6631+
integrity sha512-Hlk20WQHRIm9EE9luN1kjRjYXAQToHOIAHPJn9buxBwuhfTHoKUcX+lXBbxc85DVQfXYbEQ4HcwQdd128E3qHQ==
6632+
dependencies:
6633+
css-mediaquery "^0.1.2"
6634+
66186635
66196636
version "2.0.14"
66206637
resolved "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz"
@@ -7792,7 +7809,7 @@ prompts@^2.0.1, prompts@^2.4.2:
77927809
kleur "^3.0.3"
77937810
sisteransi "^1.0.5"
77947811

7795-
prop-types@^15.6.2, prop-types@^15.8.1:
7812+
prop-types@^15.6.1, prop-types@^15.6.2, prop-types@^15.8.1:
77967813
version "15.8.1"
77977814
resolved "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz"
77987815
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
@@ -8010,6 +8027,16 @@ react-resize-detector@^7.1.2:
80108027
dependencies:
80118028
lodash "^4.17.21"
80128029

8030+
react-responsive@^9.0.2:
8031+
version "9.0.2"
8032+
resolved "https://registry.yarnpkg.com/react-responsive/-/react-responsive-9.0.2.tgz#34531ca77a61e7a8775714016d21241df7e4205c"
8033+
integrity sha512-+4CCab7z8G8glgJoRjAwocsgsv6VA2w7JPxFWHRc7kvz8mec1/K5LutNC2MG28Mn8mu6+bu04XZxHv5gyfT7xQ==
8034+
dependencies:
8035+
hyphenate-style-name "^1.0.0"
8036+
matchmediaquery "^0.3.0"
8037+
prop-types "^15.6.1"
8038+
shallow-equal "^1.2.1"
8039+
80138040
react-router-dom@6:
80148041
version "6.4.2"
80158042
resolved "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.4.2.tgz"
@@ -8618,6 +8645,11 @@ [email protected]:
86188645
resolved "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz"
86198646
integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==
86208647

8648+
shallow-equal@^1.2.1:
8649+
version "1.2.1"
8650+
resolved "https://registry.yarnpkg.com/shallow-equal/-/shallow-equal-1.2.1.tgz#4c16abfa56043aa20d050324efa68940b0da79da"
8651+
integrity sha512-S4vJDjHHMBaiZuT9NPb616CSmLf618jawtv3sufLl6ivK8WocjAo58cXwbRV1cgqxH0Qbv+iUt6m05eqEa2IRA==
8652+
86218653
shebang-command@^2.0.0:
86228654
version "2.0.0"
86238655
resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz"

0 commit comments

Comments
 (0)