Skip to content

Commit

Permalink
style: reduce spaces in landing and reduce Carousel (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertfolch-redeemeum authored Jul 4, 2022
1 parent 9387241 commit 1a22d25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/pages/landing/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { zIndex } from "../../lib/styles/zIndex";
import { Offer } from "../../lib/types/offer";
import { useOffers } from "../../lib/utils/hooks/offers";

const cellSize = 360;
const cellSize = 300;
const numCells = 8; // or number of max offers
const tz = Math.round(cellSize / 2 / Math.tan(Math.PI / numCells));
const translateZValue = `${tz}px`;
Expand Down
9 changes: 2 additions & 7 deletions src/pages/landing/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Title = styled(Typography)`
font-size: 2.5rem;
line-height: 1.3;
${breakpoint.s} {
font-size: 3.5rem;
font-size: 3.15rem;
line-height: 1.2;
}
`;
Expand All @@ -48,12 +48,7 @@ const ExploreContainer = styled.div`
margin-top: 2rem;
`;

const HeroWrapper = styled(Grid)`
padding: 1rem 0 1rem 0;
${breakpoint.m} {
padding: 3rem 0 3rem 0;
}
`;
const HeroWrapper = styled(Grid)``;
const StepWrapper = styled(Grid)`
gap: 50px;
margin: 5rem 0;
Expand Down

0 comments on commit 1a22d25

Please sign in to comment.