Skip to content

Commit 7c1e066

Browse files
committed
fix: adjust card folding and font size for different screens
1 parent f95e69b commit 7c1e066

File tree

4 files changed

+116
-19
lines changed

4 files changed

+116
-19
lines changed

apps/website/src/components/ServiceCard.astro

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ const image = await src();
5454
`text-white
5555
h-full
5656
lg:h-[620px]
57-
p-7
57+
p-5
58+
md:p-7
5859
lg:p-12
5960
grid
6061
grid-cols-6
@@ -71,17 +72,22 @@ const image = await src();
7172
)}
7273
>
7374
<div
74-
class="col-span-6 grid max-lg:grid-rows-[min-content_min-content_auto] gap-7 lg:grid-cols-2 lg:col-span-2 lg:items-start justify-between"
75+
class="col-span-6 grid max-lg:grid-rows-[min-content_min-content_auto] gap-4 md:gap-7 lg:grid-cols-2 lg:col-span-2 lg:items-start justify-between"
7576
>
76-
<span class="grid md:flex gap-7">
77-
<img src={iconPath} alt="" role="presentation" class="lg:mt-[2px] h-8 w-8 md:h-12 md:w-12" />
77+
<span class="grid md:flex gap-4 md:gap-7">
78+
<img
79+
src={iconPath}
80+
alt=""
81+
role="presentation"
82+
class="lg:mt-[2px] h-8 w-8 md:h-12 md:w-12"
83+
/>
7884
<div class="gap-y-2 flex flex-col">
7985
<h4
80-
class="font-medium text-xl leading-[22px] md:text-[28px] md:leading-[30px] text-left"
86+
class="font-medium text-lg leading-[22px] md:text-[28px] md:leading-[30px] text-left"
8187
>
8288
{title}
8389
</h4>
84-
<p class="text-lg">{subtitle}</p>
90+
<p class="text-base md:text-lg">{subtitle}</p>
8591
</div>
8692
</span>
8793
<div
@@ -97,7 +103,7 @@ const image = await src();
97103
/>
98104
</div>
99105
<div
100-
class="flex flex-col lg:flex-col row-start-2 lg:col-span-1 lg:col-start-2 lg:row-span-2 [&_p]:text-base [&_p]:leading-[26px] md:[&_p]:text-[20px] md:[&_p]:font-normal md:[&_p]:leading-8 text-left"
106+
class="flex flex-col lg:flex-col row-start-2 lg:col-span-1 lg:col-start-2 lg:row-span-2 [&_p]:text-base [&_p]:text-sm [&_p]:leading-[26px] md:[&_p]:text-[20px] md:[&_p]:font-normal md:[&_p]:leading-8 text-left"
101107
set:html={content.html}
102108
/>
103109
</div>

apps/website/src/content/services/create-an-evolving-architecture.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ bgColor: "bg-[#424C6DE5]/[0.9]"
1010

1111
From start to finish, we are there to design, implement, and guide you through the adoption of a future-proof, flexible software architecture. Backed by strong product engineering practices and tailored to your unique needs, we aim to reduce costs and mitigate the risks of downtime, technical debt, and evolving industry demands.
1212
</br>
13-
</br>
14-
</br>
15-
<a
16-
class='underline underline-offset-2'
17-
href="/blog/using-lago-to-create-a-flexible-billing-system">
18-
Case Study: Submix Billing System
19-
</a>
13+
14+
<div class="pt-6">
15+
<a class='underline underline-offset-2 text-base md:text-[20px]' href="/blog/using-lago-to-create-a-flexible-billing-system">
16+
Case Study: Submix Billing System
17+
</a>
18+
</div>

apps/website/src/content/services/improving-engineering-tempo.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ bgColor: "bg-[#3C3843E5]/[0.9]"
1010

1111
By optimizing workflows and breaking down tasks, we boost engineering tempo and support your team in delivering higher-quality software, faster. Through hands-on process coaching, placing experienced engineers directly in your team, or deploying a dedicated task force to unblock delivery, we streamline development to make releases more frequent and reduce production failures.
1212
</br>
13-
</br>
14-
</br>
15-
<div class="flex justify-end items-center gap-4">
13+
14+
<div class="flex justify-end items-center gap-4 pt-6">
1615
<p class="text-right">Schedule a free DevEx audit</p>
1716
<a id="contact-us-our-services-cta"
18-
class="flex font-medium w-fit h-[61px] items-center px-4 py-2 rounded-md text-base text-center whitespace-nowrap bg-crocoder-yellow text-contrast hover:opacity-90"
17+
class="flex font-medium w-fit h-[61px] items-center px-4 leading-tight py-2 rounded-md text-sm md:text-base text-center whitespace-nowrap bg-crocoder-yellow text-contrast hover:opacity-90 max-md:h-[45px]"
1918
href="/contact">
2019
Contact Us
2120
</a>
22-
</div>
21+
</div>

apps/website/src/styles/main.css

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,96 @@ body:has(nav #nav-menu-toggle:checked) {
151151
top: 460px;
152152
}
153153
}
154+
155+
@media (width <= 48rem) {
156+
.animation-container {
157+
/* 4 x card height - 3 x negative margin top */
158+
height: calc((4 * 680px) - (3 * 20));
159+
}
160+
161+
.animation-card {
162+
position: sticky;
163+
width: 100%;
164+
max-height: 680px;
165+
margin-top: -21px;
166+
}
167+
168+
.animation-card:nth-child(1) {
169+
top: 80px;
170+
margin-top: 0;
171+
}
172+
173+
.animation-card:nth-child(2) {
174+
top: 150px;
175+
}
176+
177+
.animation-card:nth-child(3) {
178+
top: 220px;
179+
}
180+
181+
.animation-card:nth-child(4) {
182+
top: 440px;
183+
}
184+
}
185+
186+
@media (width <= 435px) {
187+
.animation-container {
188+
/* 4 x card height - 3 x negative margin top */
189+
height: calc((4 * 680px) - (3 * 20));
190+
}
191+
192+
.animation-card {
193+
position: sticky;
194+
width: 100%;
195+
max-height: 680px;
196+
margin-top: 0px;
197+
}
198+
199+
.animation-card:nth-child(1) {
200+
top: 100px;
201+
margin-top: 0;
202+
}
203+
204+
.animation-card:nth-child(2) {
205+
top: 120px;
206+
}
207+
208+
.animation-card:nth-child(3) {
209+
top: 140px;
210+
}
211+
212+
.animation-card:nth-child(4) {
213+
top: 0px;
214+
}
215+
}
216+
217+
@media (width <= 375px) {
218+
.animation-container {
219+
/* 4 x card height - 3 x negative margin top */
220+
height: calc((4 * 680px) - (3 * 20));
221+
}
222+
223+
.animation-card {
224+
position: sticky;
225+
width: 100%;
226+
max-height: 680px;
227+
margin-top: 0px;
228+
}
229+
230+
.animation-card:nth-child(1) {
231+
top: 80px;
232+
margin-top: 0;
233+
}
234+
235+
.animation-card:nth-child(2) {
236+
top: 100px;
237+
}
238+
239+
.animation-card:nth-child(3) {
240+
top: 120px;
241+
}
242+
243+
.animation-card:nth-child(4) {
244+
top: 0px;
245+
}
246+
}

0 commit comments

Comments
 (0)