Skip to content

Commit a13ba0f

Browse files
yjoseasdolo
authored andcommitted
fix(docs): fix review card styling
1 parent 90cdd41 commit a13ba0f

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

docs/src/components/reviews.astro

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ const reviews: Review[] = [
8080
))
8181
}
8282
</div>
83+
<a
84+
href="https://github.com/obytes/react-native-template-obytes/discussions/357"
85+
class="add-review-link"
86+
target="_blank"
87+
>
88+
Love the template? Let us know ⭐️
89+
</a>
8390
</section>
8491

8592
<style>
@@ -105,7 +112,7 @@ const reviews: Review[] = [
105112
.review-grid {
106113
display: grid;
107114
gap: 1.5rem;
108-
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
115+
grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
109116
}
110117

111118
.review-footer {
@@ -140,6 +147,7 @@ const reviews: Review[] = [
140147
flex-direction: column;
141148
display: flex;
142149
height: 100%;
150+
width: 100%;
143151
position: relative;
144152
}
145153

@@ -164,4 +172,18 @@ const reviews: Review[] = [
164172
height: 68px;
165173
opacity: 0.2;
166174
}
175+
176+
.add-review-link {
177+
display: flex;
178+
align-items: center;
179+
gap: 0.5rem;
180+
justify-content: center;
181+
margin: 2rem auto 0;
182+
color: var(--sl-color-text-accent);
183+
font-size: 0.9rem;
184+
}
185+
186+
.add-review-link:hover {
187+
text-decoration: underline;
188+
}
167189
</style>

0 commit comments

Comments
 (0)