Skip to content

Commit 6fe8a88

Browse files
authored
Updated sample-pagination
1 parent e7f4088 commit 6fe8a88

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

sample-pagination

+59
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,62 @@ export default function App() {
8282
}
8383

8484
// export default App;
85+
86+
Css
87+
.products {
88+
display: flex;
89+
align-items: center;
90+
gap: 6px;
91+
column-gap: 4px;
92+
flex-wrap: wrap;
93+
}
94+
.products-card {
95+
width: 30%;
96+
max-height: 400px;
97+
height: auto;
98+
border: 1px solid rgba(0, 0, 0, 0.5);
99+
padding: 0 16px 16px;
100+
cursor: pointer;
101+
background-color: cornsilk;
102+
}
103+
104+
.products-card img {
105+
width: 100%;
106+
max-height: 220px;
107+
height: 100%;
108+
object-fit: contain;
109+
}
110+
111+
.products-card h1 {
112+
font-size: 16px;
113+
font-weight: 600;
114+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
115+
}
116+
117+
.pagination {
118+
display: flex;
119+
justify-content: center;
120+
gap: 12px;
121+
margin: 14px auto;
122+
}
123+
124+
.pagination > button {
125+
border: 1px solid rgb(168, 163, 163);
126+
background-color: antiquewhite;
127+
border-radius: 4px;
128+
cursor: pointer;
129+
}
130+
131+
.pagination .prev {
132+
background-color: transparent;
133+
border: none;
134+
}
135+
136+
.pagination .next {
137+
background-color: transparent;
138+
border: none;
139+
}
140+
.pagination .active {
141+
background-color: aqua;
142+
}
143+

0 commit comments

Comments
 (0)