|
1 | | -import { ArrowRight } from 'lucide-react'; |
| 1 | +import {ArrowRight} from 'lucide-react'; |
2 | 2 |
|
3 | 3 | const replacements = [ |
4 | | - { |
5 | | - before: 'PostgreSQL + Redis', |
6 | | - after: 'Single Transactional Store', |
7 | | - description: 'No more cache invalidation headaches or consistency gaps between your database and cache layer.', |
8 | | - beforeColor: 'bg-red-50 border-red-200 text-red-700', |
9 | | - afterColor: 'bg-green-50 border-green-200 text-green-700', |
10 | | - }, |
11 | | - { |
12 | | - before: 'Batch Materialized Views', |
13 | | - after: 'Incremental Derived State', |
14 | | - description: 'Views update as data changes, not on a schedule. No polling, no refresh jobs, no stale data.', |
15 | | - beforeColor: 'bg-red-50 border-red-200 text-red-700', |
16 | | - afterColor: 'bg-green-50 border-green-200 text-green-700', |
17 | | - }, |
18 | | - { |
19 | | - before: 'Scattered Service Logic', |
20 | | - after: 'Programmable Transitions', |
21 | | - description: 'State logic lives in the database, not scattered across microservices, workers, and cron jobs.', |
22 | | - beforeColor: 'bg-red-50 border-red-200 text-red-700', |
23 | | - afterColor: 'bg-green-50 border-green-200 text-green-700', |
24 | | - }, |
25 | | - { |
26 | | - before: 'Redis + Kafka + Custom Code', |
27 | | - after: 'Native State Primitives', |
28 | | - description: 'Counters, queues, ring buffers, histograms—all in one engine with unified transactional guarantees.', |
29 | | - beforeColor: 'bg-red-50 border-red-200 text-red-700', |
30 | | - afterColor: 'bg-green-50 border-green-200 text-green-700', |
31 | | - }, |
| 4 | + { |
| 5 | + before: 'PostgreSQL + Redis', |
| 6 | + after: 'Single Transactional Store', |
| 7 | + description: 'No more cache invalidation headaches or consistency gaps between your database and cache layer.', |
| 8 | + beforeColor: 'bg-red-50 border-red-200 text-red-700', |
| 9 | + afterColor: 'bg-green-50 border-green-200 text-green-700', |
| 10 | + }, |
| 11 | + { |
| 12 | + before: 'Batch Materialized Views', |
| 13 | + after: 'Incremental Derived State', |
| 14 | + description: 'Views update as data changes, not on a schedule. No polling, no refresh jobs, no stale data.', |
| 15 | + beforeColor: 'bg-red-50 border-red-200 text-red-700', |
| 16 | + afterColor: 'bg-green-50 border-green-200 text-green-700', |
| 17 | + }, |
| 18 | + { |
| 19 | + before: 'Scattered Service Logic', |
| 20 | + after: 'Programmable Transitions', |
| 21 | + description: 'State logic lives in the database, not scattered across microservices, workers, and cron jobs.', |
| 22 | + beforeColor: 'bg-red-50 border-red-200 text-red-700', |
| 23 | + afterColor: 'bg-green-50 border-green-200 text-green-700', |
| 24 | + }, |
| 25 | + { |
| 26 | + before: 'Redis + Kafka + Custom Code', |
| 27 | + after: 'Native State Primitives', |
| 28 | + description: 'Counters, queues, ring buffers, histograms—all in one engine with unified transactional guarantees.', |
| 29 | + beforeColor: 'bg-red-50 border-red-200 text-red-700', |
| 30 | + afterColor: 'bg-green-50 border-green-200 text-green-700', |
| 31 | + }, |
32 | 32 | ]; |
33 | 33 |
|
34 | 34 | export function ReplacesSection() { |
35 | | - return ( |
36 | | - <section id="replaces" className="py-16 sm:py-24 bg-bg-tertiary"> |
37 | | - <div className="mx-auto max-w-6xl px-6 md:px-8"> |
38 | | - {/* Section Header */} |
39 | | - <div className="text-center mb-12 sm:mb-16"> |
40 | | - <h2 className="text-3xl sm:text-4xl font-black tracking-tight mb-4"> |
41 | | - What ReifyDB Replaces |
42 | | - </h2> |
43 | | - <p className="max-w-2xl mx-auto text-text-secondary text-lg"> |
44 | | - Modern applications manage state across multiple systems. ReifyDB centralizes it all. |
45 | | - </p> |
46 | | - </div> |
| 35 | + return ( |
| 36 | + <section id="replaces" className="py-16 sm:py-24 bg-bg-tertiary"> |
| 37 | + <div className="mx-auto max-w-6xl px-6 md:px-8"> |
| 38 | + {/* Section Header */} |
| 39 | + <div className="text-center mb-12 sm:mb-16"> |
| 40 | + <h2 className="text-3xl sm:text-4xl font-black tracking-tight mb-4"> |
| 41 | + What ReifyDB Replaces |
| 42 | + </h2> |
| 43 | + <p className="max-w-2xl mx-auto text-text-secondary text-lg"> |
| 44 | + Modern applications manage state across multiple systems. ReifyDB centralizes it all. |
| 45 | + </p> |
| 46 | + </div> |
47 | 47 |
|
48 | | - {/* Replacements Grid */} |
49 | | - <div className="grid gap-6 md:grid-cols-2"> |
50 | | - {replacements.map((item) => ( |
51 | | - <div |
52 | | - key={item.before} |
53 | | - className="bg-white border-2 border-border-default rounded-lg p-6 shadow-minimal" |
54 | | - > |
55 | | - {/* Before -> After */} |
56 | | - <div className="flex items-center gap-3 mb-4"> |
| 48 | + {/* Replacements Grid */} |
| 49 | + <div className="grid gap-6 md:grid-cols-2"> |
| 50 | + {replacements.map((item) => ( |
| 51 | + <div |
| 52 | + key={item.before} |
| 53 | + className="bg-white border-2 border-border-default rounded-lg p-6 shadow-minimal" |
| 54 | + > |
| 55 | + {/* Before -> After */} |
| 56 | + <div className="flex items-center gap-3 mb-4"> |
57 | 57 | <span className={`px-3 py-1 rounded-full text-xs font-bold border ${item.beforeColor}`}> |
58 | 58 | {item.before} |
59 | 59 | </span> |
60 | | - <ArrowRight className="h-4 w-4 text-text-muted" /> |
61 | | - <span className={`px-3 py-1 rounded-full text-xs font-bold border ${item.afterColor}`}> |
| 60 | + <ArrowRight className="h-4 w-4 text-text-muted"/> |
| 61 | + <span className={`px-3 py-1 rounded-full text-xs font-bold border ${item.afterColor}`}> |
62 | 62 | {item.after} |
63 | 63 | </span> |
64 | | - </div> |
65 | | - {/* Description */} |
66 | | - <p className="text-text-muted text-sm leading-relaxed"> |
67 | | - {item.description} |
68 | | - </p> |
| 64 | + </div> |
| 65 | + {/* Description */} |
| 66 | + <p className="text-text-muted text-sm leading-relaxed"> |
| 67 | + {item.description} |
| 68 | + </p> |
| 69 | + </div> |
| 70 | + ))} |
| 71 | + </div> |
69 | 72 | </div> |
70 | | - ))} |
71 | | - </div> |
72 | | - </div> |
73 | | - </section> |
74 | | - ); |
| 73 | + </section> |
| 74 | + ); |
75 | 75 | } |
0 commit comments