Skip to content

Commit 0420101

Browse files
committed
dark mode
1 parent ce3bf40 commit 0420101

File tree

3 files changed

+61
-13
lines changed

3 files changed

+61
-13
lines changed

website/docs/docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ Click the button below to deploy SOQL Lib to your environment.
5656

5757
You are ready to build your selector classes.
5858

59-
Go to the [Build Your Selector](./build-your-selector.md) section to see more details.
59+
Go to the [Build Your Selector](../soql/build-selector.md) section to see more details.

website/docusaurus.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ const config = {
6767
{ name: 'keywords', content: 'SOQL Lib, Selector Layer Apex, Apex Selector Layer, Query Builder' },
6868
{ name: 'canonical', content: 'https://soql.beyondthecloud.dev' }
6969
],
70+
colorMode: {
71+
defaultMode: 'dark',
72+
disableSwitch: true,
73+
},
7074
docs: {
7175
sidebar: {
7276
hideable: true,

website/src/pages/index.js

Lines changed: 56 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
import Layout from '@theme/Layout';
22
import Heading from '@theme/Heading';
3-
import MDXContent from '@theme/MDXContent';
4-
import SOQLLibBenefits from './soqlLibBenefits.mdx';
53

64
export default function Home() {
75
return (
86
<Layout
97
title="Home | SOQL Lib"
108
description="The SOQL Lib provides functional constructs for SOQL queries in Apex.">
11-
<div class="relative isolate px-6 pt-14 lg:px-8">
12-
<div class="text-center">
13-
<Heading class="text-5xl mb-10 font-semibold tracking-tight text-balance text-gray-900 sm:text-7xl" as="h1">SOQL Lib</Heading>
14-
<div class="space-x-4">
15-
<a href="/getting-started" class="rounded-md bg-sky-600 px-4 py-3 text-sm font-semibold text-white shadow-xs hover:bg-sky-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-sky-600">Get Started</a>
9+
<div className="relative isolate px-6 pt-14 lg:px-8">
10+
<div className="text-center">
11+
<Heading className="text-5xl mb-6 font-semibold tracking-tight text-balance text-white sm:text-7xl" as="h1">SOQL Lib</Heading>
12+
<p className="text-lg mb-10 text-gray-300 max-w-2xl mx-auto">
13+
Everything you need to build SOQL queries in Salesforce APEX.
14+
</p>
15+
<div className="space-x-4">
16+
<a href="/docs/getting-started" className="rounded-md bg-sky-600 px-4 py-3 text-sm font-semibold text-white shadow-xs hover:scale-110 transition-transform focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-sky-600">Get Started</a>
17+
<a href="/docs/overview" className="rounded-md bg-gray-800 px-4 py-3 text-sm font-semibold text-white shadow-xs ring-1 ring-gray-600 hover:scale-110 transition-transform">Learn More</a>
1618
</div>
1719
</div>
1820
</div>
@@ -22,12 +24,54 @@ export default function Home() {
2224
}
2325

2426
export function Features() {
27+
const features = [
28+
{
29+
title: "Dynamic Query Builder",
30+
description: "Build SOQL queries dynamically with fluent API. No more string concatenation or massive selector classes with hundreds of methods."
31+
},
32+
{
33+
title: "Advanced Caching System",
34+
description: "Cache records in Apex transactions, Session Cache, or Org Cache for dramatic performance improvements."
35+
},
36+
{
37+
title: "Built-in Security Controls",
38+
description: "Enforce field-level security and sharing rules with WITH USER_MODE, WITH SYSTEM_MODE, and sharing settings by default."
39+
},
40+
{
41+
title: "Comprehensive Testing Support",
42+
description: "Mock SOQL results in unit tests without complex test data setup. Perfect for external objects and custom metadata."
43+
},
44+
{
45+
title: "Result Transformation",
46+
description: "Transform query results easily with built-in methods: toMap(), toIds(), toValuesOf(), and many more powerful utilities."
47+
},
48+
{
49+
title: "Lightweight Selectors",
50+
description: "Keep selector classes minimal and focused. Define business-specific queries inline where they're needed."
51+
}
52+
];
53+
2554
return (
26-
<div className="my-10 px-4 sm:px-6 lg:px-8 w-full max-w-5xl mx-auto overflow-x-auto">
27-
<div className="w-full">
28-
<MDXContent>
29-
<SOQLLibBenefits />
30-
</MDXContent>
55+
<div className="my-20 px-6 lg:px-8">
56+
<div className="mx-auto max-w-7xl">
57+
<div className="text-center mb-16">
58+
<h2 className="text-3xl font-bold tracking-tight text-white sm:text-4xl mb-4">
59+
What's in SOQL Lib?
60+
</h2>
61+
<p className="text-lg text-gray-300 max-w-2xl mx-auto">
62+
The SOQL Lib provides functional constructs for SOQL queries in Apex.
63+
</p>
64+
</div>
65+
66+
<div className="grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3">
67+
{features.map((feature, index) => (
68+
<div key={index} className="relative rounded-2xl border border-gray-700 p-8 shadow-lg hover:shadow-xl transition-shadow bg-gray-800/50 backdrop-blur-sm">
69+
<h3 className="text-lg font-semibold text-white mb-4">{feature.title}</h3>
70+
<p className="text-gray-300 leading-relaxed">{feature.description}</p>
71+
</div>
72+
))}
73+
</div>
74+
3175
</div>
3276
</div>
3377
)

0 commit comments

Comments
 (0)