Skip to content

Commit 2a1063c

Browse files
author
Carms Ng
committed
[FIX] Section overflow & Adjust Spacing
1 parent db3917c commit 2a1063c

File tree

7 files changed

+13
-7
lines changed

7 files changed

+13
-7
lines changed

src/components/CarouselCard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default function CarouselCard({
5959
</div>
6060
{/* highlights for small screen, show first few */}
6161
<ul className="text-sm py-4 block md:hidden">
62-
{highlights.slice(0, 3).map((hl) => <li key={`xs-${hl}`}>{hl}</li>)}
62+
{highlights.slice(0, 5).map((hl) => <li key={`xs-${hl}`}>{hl}</li>)}
6363
</ul>
6464
{/* Button to navigate prev and next */}
6565
<div className="carousel-btns">

src/components/sections/Contact.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ const ContactStyles = styled.section`
6868
display: flex;
6969
flex-direction: column;
7070
justify-content: space-between;
71+
7172
p, svg {
7273
color: var(--darkgrey);
7374
}
75+
76+
@media (min-width: 640px) {
77+
min-height: unset;
78+
}
7479
`;

src/components/sections/Hero.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ export default function Hero({ sectionRefs, setTeamIndex, pausedRef }) {
5252
}
5353

5454
const HeroStyles = styled.section`
55+
padding-bottom: 0;
56+
5557
position: relative;
5658
.hero {
5759
height: calc(80vh - 100px);

src/components/sections/Service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function Service() {
1010
<ServiceStyles>
1111
<SiteBorderStyles className="wrapper">
1212
{/* section-header */}
13-
<div className="text-left md:text-center py-4 md:pt-16 lg:pt-24">
13+
<div className="text-left md:text-center py-4 md:pt-16 lg:py-24">
1414
<h2 className="text-2xl lg:text-4xl">
1515
<span className="highlight-red">
1616
<Trans>Customize</Trans>

src/components/sections/Steps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function Steps() {
99
<StepsStyles>
1010
<SiteBorderStyles className="wrapper">
1111
{/* section-header */}
12-
<div className="text-left md:text-center py-4 md:pt-16 lg:pt-24">
12+
<div className="text-left md:text-center py-4 md:py-16 lg:py-24">
1313
<h2 className="text-2xl lg:text-4xl">
1414
{/* eslint-disable-next-line react/no-unescaped-entities */}
1515
<Trans>Let's Get To </Trans>

src/components/sections/Team.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function Team({ teamIndex, setTeamIndex, locale }) {
1111
<TeamStyles>
1212
<SiteBorderStyles className="wrapper">
1313
{/* section-header */}
14-
<div className="text-left md:text-center py-4 md:pt-16 lg:pt-24">
14+
<div className="text-left md:text-center py-4 md:py-16 lg:py-24">
1515
<h2 className="text-2xl lg:text-4xl">
1616
<span className="highlight-red">
1717
<Trans>Consult</Trans>

src/styles/GlobalStyles.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const GlobalStyles = createGlobalStyle`
3333
width: min-content;
3434
}
3535
section {
36-
padding-top: 100px;
37-
height: 100vh;
36+
padding: 100px 0;
37+
min-height: 100vh;
3838
}
3939
button:focus, button:hover {
4040
outline: none;
@@ -43,7 +43,6 @@ const GlobalStyles = createGlobalStyle`
4343
display: grid;
4444
align-items: flex-start;
4545
height: 100%;
46-
overflow: auto;
4746
}
4847
`;
4948

0 commit comments

Comments
 (0)