From abfa4daf5ccd4efefb14ec5b29e528012a186028 Mon Sep 17 00:00:00 2001 From: whyhugo Date: Sun, 21 Apr 2024 02:30:51 +0800 Subject: [PATCH 1/4] fix: footer style & hide scroll bar overflow-x --- my-app/src/style/_footer.scss | 10 +++++----- my-app/src/style/style.scss | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/my-app/src/style/_footer.scss b/my-app/src/style/_footer.scss index d312f73..e1cd704 100644 --- a/my-app/src/style/_footer.scss +++ b/my-app/src/style/_footer.scss @@ -24,9 +24,10 @@ footer { // align-items: center; padding: 10px 32px; background: $light_orange; - border: 15px solid $brown; - border-radius: 8px; + border: 12px solid $brown; + border-radius: 22px; margin: 5px; + margin-bottom: 14px; filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25)); animation-name: contact_animation; animation-duration: 5s; @@ -76,7 +77,7 @@ footer { .social_media_icon { width: 32px; height: 32px; - margin: 4px; + margin: 16px 10px; } .facebook_icon:hover { @@ -96,7 +97,6 @@ footer { // } @media screen and (width: 980px) and (min-height: 1700px) { - // .contact { // // width: 300px; // } @@ -124,4 +124,4 @@ footer { background-color: $light_orange; transform: translateY(-2px); } -} \ No newline at end of file +} diff --git a/my-app/src/style/style.scss b/my-app/src/style/style.scss index 107b6b6..ac4de40 100644 --- a/my-app/src/style/style.scss +++ b/my-app/src/style/style.scss @@ -22,13 +22,12 @@ body > #root, #root > .App { //height: 100%; width: 100%; - //overflow-x: hidden; + overflow-x: hidden; margin: 0; padding: 0; } #root > .App { - overflow-y: auto; background-image: url("../image/bg_nobg.png"), linear-gradient(to right, #352e72ff, #351a37ff); background-size: 100%; background-position: center; From 88630273b930f3501d9da759e63ee4d0005c3f38 Mon Sep 17 00:00:00 2001 From: whyhugo Date: Sun, 21 Apr 2024 03:33:23 +0800 Subject: [PATCH 2/4] fix: small bug --- my-app/src/page/Home.js | 5 ++--- my-app/src/style/style.scss | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/my-app/src/page/Home.js b/my-app/src/page/Home.js index a18d071..e32c6ee 100644 --- a/my-app/src/page/Home.js +++ b/my-app/src/page/Home.js @@ -12,7 +12,6 @@ import Traffic from "./Traffic"; import Review from "./Review"; const Home = () => { - const [descriptions, setDescriptions] = useState({ image1: { visible: true, content: }, image2: { visible: true, content: }, @@ -32,7 +31,6 @@ const Home = () => { }; return ( -