Skip to content

Commit 3360a69

Browse files
committed
remove foreground background class and improve performance in dark mode
1 parent 8675737 commit 3360a69

27 files changed

Lines changed: 228 additions & 245 deletions

src/assets/styles/footer.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
}
99

1010
.footer__nav--item {
11-
@apply underline underline-offset-2 hover:text-blue-600 dark:hover:text-blue-600;
12-
}
11+
@apply underline underline-offset-2 hover:text-blue-600 dark:text-sky-500 dark:hover:text-blue-600;
12+
}

src/components/AboutSection.astro

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,41 @@ import image from "@/assets/images/hero.webp";
33
import { Image } from "astro:assets";
44
---
55

6-
<section class="bg-background text-foreground overflow-hidden">
6+
<section class="overflow-hidden">
77
<div class="mx-auto max-w-7xl px-6 py-20 lg:px-10 lg:py-28">
88
<div class="grid items-center gap-14 lg:grid-cols-2">
99
<!-- Left Content -->
1010
<div>
11-
<p class="mb-5 text-sm font-semibold uppercase tracking-[0.25em] text-blue-600">Recursive Zero</p>
11+
<p class="mb-5 text-sm font-semibold uppercase tracking-[0.25em] text-blue-600 dark:text-sky-500">
12+
Recursive Zero
13+
</p>
1214

1315
<h1 class="text-5xl font-bold leading-tight tracking-tight md:text-6xl lg:text-7xl">
1416
We Build Digital <br />
1517
Products That <br />
16-
Drive <span class="text-blue-600">Results.</span>
18+
Drive <span class="text-blue-600 dark:text-sky-500">Results.</span>
1719
</h1>
1820

19-
<p class="text-foreground/70 mt-7 max-w-xl text-lg leading-8">
21+
<p class="mt-7 max-w-xl text-lg leading-8">
2022
Recursive Zero crafts high-performance web apps, internal tools, and scalable digital solutions that simplify
2123
operations and accelerate business growth.
2224
</p>
2325

2426
<!-- Buttons -->
2527
<div class="mt-10 flex flex-wrap gap-4">
2628
<!-- Contact -->
27-
<a
28-
href="#contactForm"
29-
class="dark:border-foreground/20 text-foreground hover:bg-foreground hover:text-background rounded-xl border-2 border-gray-500 px-7 py-4 font-semibold transition"
30-
>
29+
<a href="#contactForm" class="rounded-xl border-2 border-gray-500 px-7 py-4 font-semibold transition">
3130
Contact Us →
3231
</a>
3332

3433
<!-- Work (same tab) -->
35-
<a
36-
href="/work"
37-
class="dark:border-foreground/20 text-foreground hover:bg-foreground hover:text-background rounded-xl border-2 border-gray-500 px-7 py-4 font-semibold transition"
38-
>
34+
<a href="/work" class="rounded-xl border-2 border-gray-500 px-7 py-4 font-semibold transition">
3935
View Our Work
4036
</a>
4137
</div>
4238

4339
<!-- Points -->
44-
<div class="text-foreground/70 mt-10 flex flex-wrap gap-6 text-sm">
40+
<div class="mt-10 flex flex-wrap gap-6 text-sm">
4541
<span>✓ Fast Delivery</span>
4642
<span>✓ Scalable</span>
4743
<span>✓ Client-Focused</span>
@@ -60,7 +56,7 @@ import { Image } from "astro:assets";
6056
alt="Dashboard Preview"
6157
loading="eager"
6258
fetchpriority="high"
63-
class="border-foreground/10 relative z-10 w-full rounded-3xl border object-cover shadow-2xl"
59+
class="relative z-10 w-full rounded-3xl border object-cover shadow-2xl"
6460
/>
6561
</div>
6662
</div>

src/components/AppsSimplifySection.astro

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,47 +3,46 @@ import workplaceImage from "@/assets/images/workplace.webp";
33
import { Image } from "astro:assets";
44
---
55

6-
<section class="bg-background text-foreground">
6+
<section class="">
77
<div class="mx-auto max-w-7xl px-6 py-20 lg:px-10">
88
<div class="grid items-center gap-14 lg:grid-cols-2">
99
<!-- Left Content -->
1010
<div>
11-
<p class="mb-4 text-sm font-semibold uppercase tracking-[0.25em] text-blue-600">What We Build</p>
11+
<p class="mb-4 text-sm font-semibold uppercase tracking-[0.25em] text-blue-600 dark:text-sky-500">
12+
What We Build
13+
</p>
1214

1315
<h2 class="text-4xl font-bold leading-tight tracking-tight md:text-5xl">
1416
Simplifying daily tasks <br />
1517
with handy mini apps
1618
</h2>
1719

18-
<p class="text-foreground/70 mt-6 max-w-xl text-lg leading-8">
20+
<p class="mt-6 max-w-xl text-lg leading-8">
1921
Based in Bengaluru, Recursive Zero creates compact yet powerful apps designed to streamline your workflow,
2022
improve storage efficiency, and enhance everyday productivity.
2123
</p>
2224

23-
<p class="text-foreground/70 mt-4 max-w-xl text-lg leading-8">
25+
<p class="mt-4 max-w-xl text-lg leading-8">
2426
Our solutions combine simplicity with smart technology, helping users and businesses achieve more with less
2527
effort.
2628
</p>
2729

2830
<!-- Features -->
2931
<div class="mt-8 grid gap-4 sm:grid-cols-2">
30-
<div class="border-foreground/10 bg-background/50 rounded-2xl border p-5">
31-
<h3 class="text-foreground font-semibold">Fast & Lightweight</h3>
32-
<p class="text-foreground/60 mt-2 text-sm">Built for speed and smooth performance.</p>
32+
<div class="rounded-2xl border p-5">
33+
<h3 class="font-semibold">Fast & Lightweight</h3>
34+
<p class="mt-2 text-sm">Built for speed and smooth performance.</p>
3335
</div>
3436

35-
<div class="border-foreground/10 bg-background/50 rounded-2xl border p-5">
36-
<h3 class="text-foreground font-semibold">Easy to Use</h3>
37-
<p class="text-foreground/60 mt-2 text-sm">Clean UI focused on user productivity.</p>
37+
<div class="rounded-2xl border p-5">
38+
<h3 class="font-semibold">Easy to Use</h3>
39+
<p class="mt-2 text-sm">Clean UI focused on user productivity.</p>
3840
</div>
3941
</div>
4042

4143
<!-- Button -->
4244
<div class="mt-10">
43-
<a
44-
href="/work"
45-
class="dark:border-foreground/20 text-foreground hover:bg-foreground hover:text-background rounded-xl border-2 border-gray-500 px-7 py-4 font-semibold transition"
46-
>
45+
<a href="/work" class="rounded-xl border-2 border-gray-500 px-7 py-4 font-semibold transition">
4746
Explore Apps →
4847
</a>
4948
</div>

src/components/BlogCard.astro

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const formattedDate = formatDate(date);
3636
<article class="group h-full">
3737
<a href={url} target="_blank" rel="noopener noreferrer" class="block h-full">
3838
<div
39-
class="border-foreground/10 bg-background/80 flex h-full flex-col overflow-hidden rounded-3xl border shadow-lg backdrop-blur-md transition-all duration-300 hover:-translate-y-3 hover:border-cyan-400/30 hover:shadow-2xl"
39+
class="flex h-full flex-col overflow-hidden rounded-3xl border shadow-lg backdrop-blur-md transition-all duration-300 hover:-translate-y-3 hover:border-cyan-400/30 hover:shadow-2xl"
4040
>
4141
<!-- Image -->
4242
<figure class="h-64 overflow-hidden rounded-t-3xl">
@@ -68,19 +68,17 @@ const formattedDate = formatDate(date);
6868
</div>
6969

7070
<!-- Title -->
71-
<h3
72-
class="text-foreground line-clamp-2 text-2xl font-bold leading-snug transition-colors duration-300 group-hover:text-blue-600"
71+
<h2
72+
class="line-clamp-2 text-2xl font-bold leading-snug transition-colors duration-300 group-hover:text-blue-600 dark:text-sky-500"
7373
>
7474
{title}
75-
</h3>
75+
</h2>
7676

7777
<!-- Description -->
78-
{description && <p class="text-foreground/75 mt-4 line-clamp-3 flex-1 text-base leading-8">{description}</p>}
78+
{description && <p class="mt-4 line-clamp-3 flex-1 text-base leading-8">{description}</p>}
7979

8080
<!-- Bottom Meta -->
81-
<div
82-
class="border-foreground/10 text-foreground/70 mt-6 flex items-center justify-between border-t pt-4 text-sm"
83-
>
81+
<div class="mt-6 flex items-center justify-between border-t pt-4 text-sm">
8482
{
8583
displayUrl ? (
8684
<span class="truncate text-blue-900 underline underline-offset-4 transition hover:text-blue-700 dark:text-white dark:hover:text-gray-300">
@@ -91,15 +89,15 @@ const formattedDate = formatDate(date);
9189
{new URL(url).origin}
9290
</span>
9391
) : (
94-
<span class="text-foreground/80">
92+
<span class="">
9593
By <span class="font-bold text-slate-900 dark:text-white">{author || "Recursive Zero"}</span>
9694
</span>
9795
)
9896
}
9997

10098
{
10199
formattedDate && (
102-
<time datetime={date} class="text-foreground/60 italic">
100+
<time datetime={date} class="italic">
103101
{formattedDate}
104102
</time>
105103
)

src/components/BlogsSection.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ const posts = await getCollection("blog");
77
const slicedPosts = posts.slice(0, 3);
88
---
99

10-
<section class="bg-background py-20">
10+
<section class="py-20">
1111
<div class="mx-auto max-w-7xl px-6 lg:px-10">
1212
<!-- Top Heading -->
1313
<div class="mb-14 flex flex-col gap-5 lg:flex-row lg:items-end lg:justify-between">
1414
<div>
1515
<p class="mb-3 text-sm font-semibold uppercase tracking-[0.25em] text-blue-600">Recent Blogs</p>
1616

17-
<h2 class="text-foreground text-4xl font-bold tracking-tight md:text-5xl">
17+
<h2 class="text-4xl font-bold tracking-tight md:text-5xl">
1818
Insights, Updates <br class="hidden md:block" />
1919
& Stories
2020
</h2>
2121
</div>
2222

2323
<a
2424
href="/blogs"
25-
class="inline-flex items-center gap-2 text-base font-semibold text-blue-600 transition hover:gap-3"
25+
class="inline-flex items-center gap-2 text-base font-semibold text-blue-600 transition hover:gap-3 dark:text-sky-500"
2626
>
2727
View All Blogs →
2828
</a>

src/components/ContactSection.astro

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { CONTACT_EMAIL } from "@/utils/constants";
44
import { Image } from "astro:assets";
55
---
66

7-
<section id="contactForm" class="bg-background text-foreground">
7+
<section id="contactForm" class="">
88
<div class="mx-auto max-w-7xl px-6 py-20 lg:px-10">
99
<div class="grid items-center gap-14 lg:grid-cols-2">
1010
<!-- Left Content -->
@@ -13,32 +13,34 @@ import { Image } from "astro:assets";
1313

1414
<h2 class="text-4xl font-bold leading-tight tracking-tight md:text-5xl">Reach Recursive Zero</h2>
1515

16-
<p class="text-foreground/70 mt-6 max-w-xl text-lg leading-8">
16+
<p class="mt-6 max-w-xl text-lg leading-8">
1717
Tech simplified — Harness the power of modern technology with Recursive Zero. Send us a message and let’s
1818
build something impactful together.
1919
</p>
2020

2121
<!-- Contact Info -->
22-
<div class="text-foreground/70 mt-8 space-y-4">
22+
<div class="mt-8 space-y-4">
2323
<!-- Email -->
2424
<div class="text-lg">
25-
<span class="text-foreground font-semibold"> Email: </span>
25+
<span class="font-semibold"> Email: </span>
2626

27-
<a href=`mailto:${CONTACT_EMAIL}` class="ml-1 break-all text-blue-600 transition hover:underline">
27+
<a
28+
href=`mailto:${CONTACT_EMAIL}`
29+
class="ml-1 break-all italic text-blue-600 transition hover:underline dark:text-sky-500"
30+
>
2831
{CONTACT_EMAIL}
2932
</a>
3033
</div>
3134

3235
<!-- Phone (Not Clickable) -->
3336
<!-- Phone -->
3437
<!--<div class="text-lg">
35-
<span class="text-foreground font-semibold"> Phone: </span>
38+
<span class=" font-semibold"> Phone: </span>
3639
</div>-->
3740
<!-- Location -->
3841
<div class="text-lg">
39-
<span class="text-foreground font-semibold"> Location: </span>
40-
41-
<span class="text-foreground/70 ml-1"> Bengaluru, India </span>
42+
<span class="font-semibold"> Location: </span>
43+
<span class="ml-1"> Bengaluru, India </span>
4244
</div>
4345
</div>
4446

@@ -58,31 +60,31 @@ import { Image } from "astro:assets";
5860
</div>
5961

6062
<!-- Right Form -->
61-
<div class="border-foreground/10 bg-background/60 rounded-3xl border p-8 backdrop-blur-xl lg:p-10">
62-
<h3 class="text-foreground text-2xl font-bold">Let's Talk</h3>
63+
<div class="rounded-3xl border p-8 backdrop-blur-xl lg:p-10">
64+
<h3 class="text-2xl font-bold">Let's Talk</h3>
6365

64-
<p class="text-foreground/60 mt-2">Fill the form and we’ll get back to you shortly.</p>
66+
<p class="mt-2">Fill the form and we’ll get back to you shortly.</p>
6567

6668
<form class="mt-8 space-y-5">
6769
<!-- NAME -->
6870
<input
6971
type="text"
7072
placeholder="Full Name"
71-
class="border-foreground/10 dark:bg-background text-foreground placeholder:text-foreground/40 h-14 w-full rounded-xl border bg-white px-5 outline-none focus:border-cyan-500"
73+
class="dark: placeholder: h-14 w-full rounded-xl border bg-white px-5 outline-none focus:border-cyan-500"
7274
/>
7375

7476
<!-- EMAIL -->
7577
<input
7678
type="email"
7779
placeholder="Email Address"
78-
class="border-foreground/10 dark:bg-background text-foreground placeholder:text-foreground/40 h-14 w-full rounded-xl border bg-white px-5 outline-none focus:border-cyan-500"
80+
class="dark: placeholder: h-14 w-full rounded-xl border bg-white px-5 outline-none focus:border-cyan-500"
7981
/>
8082

8183
<!-- MESSAGE -->
8284
<textarea
8385
rows="5"
8486
placeholder="Your Message"
85-
class="border-foreground/10 dark:bg-background text-foreground placeholder:text-foreground/40 w-full rounded-xl border bg-white px-5 py-4 outline-none focus:border-cyan-500"
87+
class="dark: placeholder: w-full rounded-xl border bg-white px-5 py-4 outline-none focus:border-cyan-500"
8688
></textarea>
8789

8890
<!-- BUTTON -->

0 commit comments

Comments
 (0)