Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
todd-carlsson committed Apr 25, 2024
2 parents 0e35930 + 307b76e commit 3ea4992
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/features/layout/reviews/review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function Review({ review, index, page, length }: ReviewProps) {
opacity: getIndex() === index ? 1 : 0.5,
}}
className={styles.reviewContainer}
onClick={slide}
onClick={windowSize > 1000 ? slide : () => {}}
>
<p className={styles.reviewText}>{review.review}</p>
<h3 className={styles.reviewName}>{review.name}</h3>
Expand Down
1 change: 1 addition & 0 deletions src/features/layout/reviews/reviews.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
display: flex;
justify-content: center;
margin-top: 3rem;
scroll-margin-top: 50vh;

@media screen and (width > 1050px) {
display: none;
Expand Down
10 changes: 6 additions & 4 deletions src/features/layout/reviews/reviews.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export const Reviews = memo(function Reviews({ content, page }: ReviewsProps) {
} else if (paginationCount === content.length) {
setPaginationCount(3);
setIsPaginated(false);
scrollDiv.current?.scrollIntoView({ behavior: "smooth" });
setTimeout(() => {
scrollDiv.current?.scrollIntoView({ behavior: "smooth" });
}, 10);
}
}

Expand All @@ -49,7 +51,7 @@ export const Reviews = memo(function Reviews({ content, page }: ReviewsProps) {

if (windowWidth > 1000) {
return (
<section id="reviews" className={styles.reviews} ref={scrollDiv}>
<section id="reviews" className={styles.reviews}>
<h1 className="largeText">
Hear it from our <span className="textGradient">partners</span>
</h1>
Expand Down Expand Up @@ -95,7 +97,7 @@ export const Reviews = memo(function Reviews({ content, page }: ReviewsProps) {
);
} else
return (
<section className={styles.reviews} ref={scrollDiv}>
<section className={styles.reviews}>
<h1 className="largeText">
Hear it from our <span className="textGradient">partners</span>
</h1>
Expand All @@ -104,7 +106,7 @@ export const Reviews = memo(function Reviews({ content, page }: ReviewsProps) {
<Review key={item.id} review={item} index={i} page={page} />
))}
</div>
<div className={styles.buttonContainer}>
<div className={styles.buttonContainer} ref={scrollDiv}>
<Button
onClick={paginateData}
className={styles.paginateButton}
Expand Down
1 change: 1 addition & 0 deletions src/features/layout/team/team.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
display: flex;
justify-content: center;
margin-top: 3rem;
scroll-margin-top: 50vh;

@media screen and (width > 1050px) {
display: none;
Expand Down
8 changes: 5 additions & 3 deletions src/features/layout/team/team.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export const Team = memo(function Team({
if (windowWidth <= 1050) {
setPaginationCount(4);
setIsPaginated(false);
scrollDiv.current?.scrollIntoView({ behavior: "smooth" });
setTimeout(() => {
scrollDiv.current?.scrollIntoView({ behavior: "smooth" });
}, 10);
}
if (windowWidth <= 500) {
setPaginationCount(3);
Expand All @@ -54,7 +56,7 @@ export const Team = memo(function Team({
}

return (
<section id="about" className={styles.teamSection} ref={scrollDiv}>
<section id="about" className={styles.teamSection}>
<div className={styles.textContainer}>
<h1
className="largeText"
Expand All @@ -71,7 +73,7 @@ export const Team = memo(function Team({
<TeamMember key={item.id} member={item} index={i} color={color} />
))}
</div>
<div className={styles.buttonContainer}>
<div className={styles.buttonContainer} ref={scrollDiv}>
<Button
onClick={paginateData}
variant={ButtonVariant.gradient}
Expand Down
13 changes: 6 additions & 7 deletions src/features/layout/work/work.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@
position: relative;
z-index: 850;

@media screen and (width <=800px) {
margin-top: 120px;
}

.carouselContainer {
height: 400px;
}
Expand All @@ -221,7 +225,8 @@
left: var(--content-padding);

@media screen and (width <=800px) {
position: relative;
top: -50px;
left: calc(50% - 87px);
}

.wheelBlur {
Expand All @@ -244,12 +249,6 @@
animation: none;
}

@media screen and (width <=800px) {
position: relative;
top: 0;
left: 0;
}

@keyframes rotate {
0% {
transform: rotate(0deg);
Expand Down

0 comments on commit 3ea4992

Please sign in to comment.