Skip to content

Commit 6441954

Browse files
Reduced Spaces
Signed-off-by: Rajesh-Nagarajan-11 <rajeshnagarajan36@gmail.com>
1 parent 5b4850a commit 6441954

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/components/Animated-steps-list/Steps-list/StepsList.style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const StepsListWrapper = styled.div`
88
99
& > li {
1010
&:not(:last-of-type) {
11-
margin-bottom: 600px;
11+
margin-bottom: 150px;
1212
1313
@media (max-width: 850px) {
1414
margin-bottom: 88px;

src/components/Animated-steps-list/hero/hero.style.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ export const HeroWrapper = styled.div`
77
font-weight: 600;
88
}
99
10-
padding: 12rem 0 20rem 0;
10+
padding: 4rem 0 4rem 0;
1111
1212
@media (max-width: 800px) {
13-
padding: 2rem 0 10rem 0;
13+
padding: 1rem 0 2rem 0;
1414
}
1515
1616
.content {

src/components/Animated-steps-list/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import FramedTerminal from "../Animated-terminal/Framed-terminal";
77
import { AnimatedStepsListWrapper } from "./AnimatedStepsList.style";
88

99
// The breakpoints where the next step of each animation triggers
10-
const breakpoints = [0, 350, 1400, 2450, 2680];
10+
const breakpoints = [0, 300, 800, 1300, 1700];
1111

1212
// The number of pixels before the next breakpoint that the animation should complete
13-
const animationBottomPadding = [0, 620, 575, -50];
13+
const animationBottomPadding = [0, 180, 180, 50];
1414

1515
const calculateCurrentFrame = (terminalSteps, currentIndex, scrollPosition) => {
1616
const percentage = Math.min(
@@ -37,7 +37,7 @@ const AnimatedStepsList = ({ terminalHeroState, steps }) => {
3737
const scrollPosition = useScrollPosition();
3838
const [indicatorIndex, setIndicatorIndex] = useState(0);
3939
const activeTerminalStateIndex =
40-
scrollPosition <= 350 ? 0 : indicatorIndex + 1;
40+
scrollPosition <= 300 ? 0 : indicatorIndex + 1;
4141
const terminalSteps = [terminalHeroState].concat(
4242
steps.map((step) => step.terminal)
4343
);

0 commit comments

Comments
 (0)