Skip to content

Commit 12ee526

Browse files
committed
feat: almoust finished
1 parent 41ba84d commit 12ee526

File tree

3 files changed

+12
-38
lines changed

3 files changed

+12
-38
lines changed

src/components/ProductSkeleton/styles.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const skeletonAnimation = keyframes({
1010
});
1111

1212
export const ProductSkeletonContainer = styled("div", {
13-
width: "100%",
13+
width: '100%',
1414
height: "70vh",
1515
display: "grid",
1616
gridTemplateRows: "1fr 2rem",

src/components/Slider/styles.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,18 @@ import { Swiper } from 'swiper/react';
33

44

55
export const SliderContainer = styled(Swiper, {
6+
'.swiper-wrapper': {
7+
display: 'flex',
8+
gap: 1, // só para o ProductSkeleton aparecer
9+
},
10+
11+
".swiper-slide": {
12+
maxWidth: 696,
13+
},
14+
615
'.swiper-button-prev': {
7-
color: '$white'
16+
// backgroundColor: 'red',
17+
color: '$white',
818
},
919
'.swiper-button-next': {
1020
color: '$white',

src/styles/pages/home.ts

-36
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,7 @@ export const HomeContainer = styled("main", {
55
width: '100%',
66
maxWidth: 'calc(100vw - ((100vw - 1180px) / 2))', // 1180 + ((largura da tela - 1180) / 2)
77
marginLeft: 'auto',
8-
// minHeight: 'calc(2rem - 100vh)',
98
marginBottom: '1rem',
10-
// overflow: 'hidden',
11-
})
12-
13-
export const SliderContainer = styled("div", {
14-
position: "relative",
15-
display: "flex",
16-
gap: "3rem",
17-
margin: "0 auto",
18-
".embla__slide": {
19-
20-
}
219
});
2210

2311
export const Product = styled("div", {
@@ -85,27 +73,3 @@ export const ProductFooter = styled("footer", {
8573
lineHeight: '140%',
8674
},
8775
});
88-
89-
90-
export const ArrowButton = styled("button", {
91-
position: 'absolute',
92-
top: '50%',
93-
transform: 'translateY(-50%)',
94-
color: '$white',
95-
zIndex: 999,
96-
backgroundColor: 'transparent',
97-
border: 'none',
98-
outline: 'none',
99-
100-
variants: {
101-
direction: {
102-
left: {
103-
left: 0,
104-
},
105-
106-
right: {
107-
right: 0,
108-
}
109-
}
110-
}
111-
})

0 commit comments

Comments
 (0)