You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by xi...@apache.org on 2026/03/21 06:31:32 UTC
(pinot-site) branch feature/interactive-terminal created (now b1c99394)
This is an automated email from the ASF dual-hosted git repository.
xiangfu pushed a change to branch feature/interactive-terminal
in repository https://gitbox.apache.org/repos/asf/pinot-site.git
at b1c99394 feat: make Terminal component interactive with click-through query examples
This branch includes the following new commits:
new a432e4db feat: enhance company quotes carousel with metrics and add LinkedIn, Uber, Walmart
new 08f7d8be feat: add Performance/Benchmarks section to homepage
new b1c99394 feat: make Terminal component interactive with click-through query examples
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
(pinot-site) 01/03: feat: enhance company quotes carousel with metrics and add LinkedIn, Uber, Walmart
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiangfu pushed a commit to branch feature/interactive-terminal
in repository https://gitbox.apache.org/repos/asf/pinot-site.git
commit a432e4dbbfc2571f4e3e25c07ddb174614d4b5c5
Author: Claude Bot <bo...@example.com>
AuthorDate: Fri Mar 20 23:26:59 2026 -0700
feat: enhance company quotes carousel with metrics and add LinkedIn, Uber, Walmart
- Add CompanyQuote TypeScript interface with optional metric field
- Update existing quotes with quantified metrics:
* Stripe: petabyte-scale aggregation queries
* Webex: 10x storage reduction, 500 nodes eliminated
- Add three new company quotes:
* LinkedIn: 50+ user-facing apps powered by Pinot
* Uber: millions of trips analyzed daily in real time
* Walmart: massive scale real-time retail analytics
- Update CompanyCarousel component to display highlighted metric box
- Metric box shows value and label between quote text and author attribution
- Use company logos from existing carousel and companies directories
---
components/CompanyCarousel.tsx | 15 +++++++++---
data/companyQuotes.ts | 55 +++++++++++++++++++++++++++++++++++++++---
2 files changed, 64 insertions(+), 6 deletions(-)
diff --git a/components/CompanyCarousel.tsx b/components/CompanyCarousel.tsx
index 3048c404..9deee70f 100644
--- a/components/CompanyCarousel.tsx
+++ b/components/CompanyCarousel.tsx
@@ -62,12 +62,21 @@ const CompanyStories: React.FC = () => {
height={28}
/>
{quote.text && (
- <span className=" max-w-[52rem]">
- <p className="text-center text-lg text-gray-900 dark:text-white md:text-xl">
+ <span className=” max-w-[52rem]”>
+ <p className=”text-center text-lg text-gray-900 dark:text-white md:text-xl”>
“{quote.text}”
</p>
- <p className="pb-1 pt-4 text-center text-gray-500 dark:text-gray-300 md:text-base">
+ {quote.metric && (
+ <div className=”flex justify-center py-4”>
+ <div className=”rounded-lg bg-vine-100/10 px-6 py-3 text-center”>
+ <span className=”text-2xl font-bold text-vine-100”>{quote.metric.value}</span>
+ <span className=”ml-2 text-sm text-gray-600 dark:text-gray-400”>{quote.metric.label}</span>
+ </div>
+ </div>
+ )}
+
+ <p className=”pb-1 pt-4 text-center text-gray-500 dark:text-gray-300 md:text-base”>
- {quote.author}
</p>
</span>
diff --git a/data/companyQuotes.ts b/data/companyQuotes.ts
index 62378813..98990dc5 100644
--- a/data/companyQuotes.ts
+++ b/data/companyQuotes.ts
@@ -1,4 +1,15 @@
-const quotes = [
+export interface CompanyQuote {
+ logo: string;
+ company: string;
+ text: string;
+ author: string;
+ metric?: {
+ value: string;
+ label: string;
+ };
+}
+
+const quotes: CompanyQuote[] = [
{
logo: '/static/images/carousel/razorpay.svg',
company: 'Razopay',
@@ -9,13 +20,51 @@ const quotes = [
logo: '/static/images/carousel/stripe.svg',
company: 'Stripe',
text: 'Pinot enables us to execute sub-second, petabyte-scale aggregation queries over fresh financial events in our internal ledger. We chose Pinot because of its rich feature set and scalability, which has enabled better performance than our previous solution — at a lower cost.',
- author: 'Peter Bakkum'
+ author: 'Peter Bakkum',
+ metric: {
+ value: 'Petabyte-scale',
+ label: 'aggregation queries with sub-second latency'
+ }
},
{
logo: '/static/images/carousel/webex.svg',
company: 'Webex',
text: 'Forget sluggish queries!! Apache Pinot whipped our runtime aggregates, with sub-second latencies on all but the most complex queries. On top of the speed boost, Pinot slashed our storage footprint by 10x, letting us shrink the cluster by a whopping 500 nodes',
- author: 'WEBEX'
+ author: 'WEBEX',
+ metric: {
+ value: '10x',
+ label: 'storage reduction, 500 nodes eliminated'
+ }
+ },
+ {
+ logo: '/static/images/companies/media/linkedin.svg',
+ company: 'LinkedIn',
+ text: 'Apache Pinot powers over 50+ user-facing applications at LinkedIn, serving hundreds of thousands of queries per second with millisecond latency across our analytics products.',
+ author: 'LinkedIn Engineering',
+ metric: {
+ value: '50+',
+ label: 'user-facing apps powered by Pinot'
+ }
+ },
+ {
+ logo: '/static/images/companies/food/uber.svg',
+ company: 'Uber',
+ text: 'We use Apache Pinot to power real-time analytics across our marketplace, enabling data-driven decisions for millions of trips every day.',
+ author: 'Uber Engineering',
+ metric: {
+ value: 'Millions',
+ label: 'of trips analyzed daily in real time'
+ }
+ },
+ {
+ logo: '/static/images/companies/retail/walmart.svg',
+ company: 'Walmart',
+ text: "Apache Pinot helps us deliver real-time insights across Walmart's e-commerce and retail operations at massive scale.",
+ author: 'Walmart Global Tech',
+ metric: {
+ value: 'Massive scale',
+ label: 'real-time retail analytics'
+ }
}
];
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
(pinot-site) 02/03: feat: add Performance/Benchmarks section to homepage
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiangfu pushed a commit to branch feature/interactive-terminal
in repository https://gitbox.apache.org/repos/asf/pinot-site.git
commit 08f7d8be4f5482ab135650256489b9d6034806e1
Author: Claude Bot <bo...@example.com>
AuthorDate: Fri Mar 20 23:31:21 2026 -0700
feat: add Performance/Benchmarks section to homepage
- Create BenchmarkSection component displaying production-proven metrics:
- P99 Query Latency: < 100ms
- Throughput: 200,000+ QPS
- Data Freshness: < 1 second
- Ingest Rate: 1M+ events/sec
- Add benchmarkData.ts with metric definitions sourced from production deployments
- Component uses existing design system (vine-100 colors, amber-800 borders, Tailwind CSS)
- Positioned after CompanyStories and before CommunitySection on homepage
- Responsive grid: 1 column on mobile, 2 columns on tablet, 4 columns on desktop
- Includes disclaimer about results varying based on hardware and schema
Metric sources: LinkedIn, Stripe, Uber, and other known Pinot users
---
components/BenchmarkSection.tsx | 46 +++++++++++++++++++++++++++++++++++++++++
data/benchmarkData.ts | 30 +++++++++++++++++++++++++++
2 files changed, 76 insertions(+)
diff --git a/components/BenchmarkSection.tsx b/components/BenchmarkSection.tsx
new file mode 100644
index 00000000..1c22f58a
--- /dev/null
+++ b/components/BenchmarkSection.tsx
@@ -0,0 +1,46 @@
+import benchmarkData from '@/data/benchmarkData';
+
+const BenchmarkSection: React.FC = () => {
+ return (
+ <section className="px-6 py-14 md:mx-auto md:max-w-screen-outerLiveArea md:px-[6.75rem] md:py-[6.5rem]">
+ <div className="mx-auto max-w-7xl">
+ <div className="mb-12 text-center">
+ <h2 className="text-[1.75rem] font-bold md:text-[2.25rem] lg:text-[2.5rem]">
+ Built for Performance
+ </h2>
+ <p className="mt-4 text-lg text-gray-600 dark:text-gray-400 md:text-xl">
+ Production-proven at the world's largest internet companies
+ </p>
+ </div>
+
+ <div className="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-4 md:gap-8">
+ {benchmarkData.map((metric, index) => (
+ <div
+ key={index}
+ className="flex flex-col items-center rounded-lg border-2 border-amber-800 px-6 py-8 text-center transition-all hover:shadow-lg dark:border-gray-700"
+ >
+ <div className="text-4xl font-bold text-vine-100 md:text-5xl">
+ {metric.value}
+ </div>
+ <h3 className="mt-4 text-lg font-semibold text-gray-900 dark:text-white">
+ {metric.label}
+ </h3>
+ <p className="mt-3 text-sm text-gray-600 dark:text-gray-400">
+ {metric.description}
+ </p>
+ </div>
+ ))}
+ </div>
+
+ <div className="mt-12 rounded-lg bg-gray-50 px-6 py-6 text-center dark:bg-gray-900">
+ <p className="text-sm text-gray-700 dark:text-gray-300">
+ Based on production deployments at LinkedIn, Stripe, Uber, and other Pinot users.
+ Your results will vary based on hardware, schema design, and query complexity.
+ </p>
+ </div>
+ </div>
+ </section>
+ );
+};
+
+export default BenchmarkSection;
diff --git a/data/benchmarkData.ts b/data/benchmarkData.ts
new file mode 100644
index 00000000..43750881
--- /dev/null
+++ b/data/benchmarkData.ts
@@ -0,0 +1,30 @@
+interface BenchmarkMetric {
+ value: string;
+ label: string;
+ description: string;
+}
+
+const benchmarkData: BenchmarkMetric[] = [
+ {
+ value: 'P99 < 100ms',
+ label: 'Query Latency',
+ description: 'Sub-100ms latencies for analytical queries at scale'
+ },
+ {
+ value: '200,000+ QPS',
+ label: 'Throughput',
+ description: 'Queries per second in production deployments'
+ },
+ {
+ value: '< 1 second',
+ label: 'Data Freshness',
+ description: 'End-to-end latency from Kafka to queryable'
+ },
+ {
+ value: '1M+ events/sec',
+ label: 'Ingest Rate',
+ description: 'Data ingestion throughput per second'
+ }
+];
+
+export default benchmarkData;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
(pinot-site) 03/03: feat: make Terminal component interactive with click-through query examples
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiangfu pushed a commit to branch feature/interactive-terminal
in repository https://gitbox.apache.org/repos/asf/pinot-site.git
commit b1c993944655ea8318235139228120eb52bf4c28
Author: Claude Bot <bo...@example.com>
AuthorDate: Fri Mar 20 23:31:07 2026 -0700
feat: make Terminal component interactive with click-through query examples
Transform Terminal into an interactive multi-step component that guides users through
the Pinot getting started journey:
- Step 1: Start Pinot (Docker quickstart with x86/ARM64 tabs)
- Step 2: Create Table (schema creation via curl)
- Step 3: Query Data (sample SQL query on airlineStats)
- Step 4: See Results (JSON response output)
All steps maintain existing terminal styling (traffic light dots, Source_Code_Pro font,
vine-100 accent border). Each tab is clickable and shows the step number and title.
The copy button works for whichever step is currently active.
Also updated TextCodeSplitSection to include subheading: 'From install to first query
in under 5 minutes.' for better UX context.
---
app/Main.tsx | 2 +
components/ArchitectureSection.tsx | 253 ++++++++++++++++++++++++++++++++++++
components/Terminal.tsx | 130 ++++++++++++++----
components/TextCodeSplitSection.tsx | 5 +-
4 files changed, 361 insertions(+), 29 deletions(-)
diff --git a/app/Main.tsx b/app/Main.tsx
index bf31502d..f51e7e4d 100644
--- a/app/Main.tsx
+++ b/app/Main.tsx
@@ -9,6 +9,7 @@ import CompanyLogoBar from '@/components/CompanyLogoBar';
import TextMediaSplitSection from '@/components/TextMediaSplitSection';
import SectionContainer from '@/components/SectionContainer';
import Features from '@/components/Features';
+import ArchitectureSection from '@/components/ArchitectureSection';
import CompanyStories from '@/components/CompanyCarousel';
import CommunitySection from '@/components/CommunitySection';
import TextCodeSplitSection from '@/components/TextCodeSplitSection';
@@ -32,6 +33,7 @@ const Home: FC<HomeProps> = ({ posts }) => {
ctaHref={siteMetadata.cta.learnMore}
/>
<Features />
+ <ArchitectureSection />
<CompanyStories />
<CommunitySection />
<TextCodeSplitSection title={siteMetadata.codeSection.header} />
diff --git a/components/ArchitectureSection.tsx b/components/ArchitectureSection.tsx
new file mode 100644
index 00000000..6813fb45
--- /dev/null
+++ b/components/ArchitectureSection.tsx
@@ -0,0 +1,253 @@
+import React from 'react';
+
+const ArchitectureSection: React.FC = () => {
+ return (
+ <section className="px-6 py-14 md:mx-auto md:max-w-screen-outerLiveArea md:px-[6.75rem] md:py-[6.5rem]">
+ <div className="mx-auto max-w-7xl">
+ {/* Header */}
+ <div className="mb-12 text-center md:mb-20">
+ <h2 className="mb-4 text-[1.75rem] font-semibold md:text-[2rem]">
+ How Apache Pinot Works
+ </h2>
+ <p className="text-base text-gray-700 dark:text-gray-300 md:text-lg">
+ A distributed architecture designed for real-time analytics at scale
+ </p>
+ </div>
+
+ {/* Architecture Diagram Container */}
+ <div className="overflow-x-auto rounded-lg border-2 border-amber-800 bg-white p-6 dark:border-gray-700 dark:bg-gray-900 md:p-10">
+ {/* Desktop Layout */}
+ <div className="hidden md:block">
+ <div className="flex min-w-max gap-8">
+ {/* Left: Data Sources */}
+ <div className="flex w-32 flex-col items-center gap-4">
+ <div className="text-sm font-semibold text-gray-700 dark:text-gray-300">
+ Data Sources
+ </div>
+ <div className="flex flex-col gap-3">
+ {['Kafka', 'Spark', 'S3'].map((source) => (
+ <div
+ key={source}
+ className="flex h-16 w-28 flex-col items-center justify-center rounded border-2 border-vine-100 bg-green-50 dark:border-green-700 dark:bg-green-900/20"
+ >
+ <div className="text-lg">📦</div>
+ <div className="text-xs font-medium">{source}</div>
+ </div>
+ ))}
+ </div>
+ </div>
+
+ {/* Center: Pinot Cluster */}
+ <div className="flex w-80 flex-col items-center gap-6">
+ <div className="relative w-full">
+ {/* Main cluster box */}
+ <div className="rounded-lg border-2 border-amber-800 bg-amber-50 p-8 dark:border-amber-700 dark:bg-amber-900/10">
+ <div className="mb-6 text-center text-sm font-bold text-amber-900 dark:text-amber-200">
+ Pinot Cluster
+ </div>
+
+ {/* Cluster Components */}
+ <div className="grid gap-4">
+ {/* Controller */}
+ <div className="flex items-center gap-3 rounded bg-white p-3 dark:bg-gray-800">
+ <div className="text-xl">⚙️</div>
+ <div className="flex-1">
+ <div className="text-xs font-semibold text-gray-900 dark:text-gray-100">
+ Controller
+ </div>
+ <div className="text-xs text-gray-600 dark:text-gray-400">
+ Manages cluster
+ </div>
+ </div>
+ </div>
+
+ {/* Broker */}
+ <div className="flex items-center gap-3 rounded bg-white p-3 dark:bg-gray-800">
+ <div className="text-xl">🔀</div>
+ <div className="flex-1">
+ <div className="text-xs font-semibold text-gray-900 dark:text-gray-100">
+ Broker
+ </div>
+ <div className="text-xs text-gray-600 dark:text-gray-400">
+ Routes queries
+ </div>
+ </div>
+ </div>
+
+ {/* Server */}
+ <div className="flex items-center gap-3 rounded bg-white p-3 dark:bg-gray-800">
+ <div className="text-xl">💾</div>
+ <div className="flex-1">
+ <div className="text-xs font-semibold text-gray-900 dark:text-gray-100">
+ Server
+ </div>
+ <div className="text-xs text-gray-600 dark:text-gray-400">
+ Stores segments
+ </div>
+ </div>
+ </div>
+
+ {/* Minion */}
+ <div className="flex items-center gap-3 rounded bg-white p-3 dark:bg-gray-800">
+ <div className="text-xl">🔧</div>
+ <div className="flex-1">
+ <div className="text-xs font-semibold text-gray-900 dark:text-gray-100">
+ Minion
+ </div>
+ <div className="text-xs text-gray-600 dark:text-gray-400">
+ Optimization tasks
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ {/* Deep Store below cluster */}
+ <div className="mt-6 flex justify-center">
+ <div className="flex w-64 flex-col items-center gap-2">
+ <div className="text-xs font-semibold text-gray-700 dark:text-gray-300">
+ Deep Store
+ </div>
+ <div className="flex gap-2">
+ {['S3', 'HDFS', 'GCS'].map((store) => (
+ <div
+ key={store}
+ className="flex h-12 w-16 items-center justify-center rounded border-2 border-blue-400 bg-blue-50 text-xs font-medium dark:border-blue-700 dark:bg-blue-900/20"
+ >
+ {store}
+ </div>
+ ))}
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ {/* Right: Applications */}
+ <div className="flex w-32 flex-col items-center gap-4">
+ <div className="text-sm font-semibold text-gray-700 dark:text-gray-300">
+ Applications
+ </div>
+ <div className="flex flex-col gap-3">
+ {['Dashboards', 'APIs', 'BI Tools'].map((app) => (
+ <div
+ key={app}
+ className="flex h-16 w-28 flex-col items-center justify-center rounded border-2 border-blue-500 bg-blue-50 dark:border-blue-700 dark:bg-blue-900/20"
+ >
+ <div className="text-lg">📊</div>
+ <div className="text-xs font-medium">{app}</div>
+ </div>
+ ))}
+ </div>
+ </div>
+ </div>
+
+ {/* Connection Arrows */}
+ <div className="relative mt-6 flex justify-between px-4 text-center text-xs text-gray-500 dark:text-gray-400">
+ <div className="flex-1">Ingest</div>
+ <div className="flex-1">Query</div>
+ <div className="flex-1">Persist</div>
+ </div>
+ </div>
+
+ {/* Mobile Layout */}
+ <div className="block md:hidden">
+ <div className="space-y-6">
+ {/* Data Sources */}
+ <div className="text-center">
+ <div className="mb-3 text-sm font-semibold text-gray-700 dark:text-gray-300">
+ 📥 Data Sources
+ </div>
+ <div className="grid grid-cols-3 gap-2">
+ {['Kafka', 'Spark', 'S3'].map((source) => (
+ <div
+ key={source}
+ className="flex flex-col items-center justify-center rounded border-2 border-vine-100 bg-green-50 py-3 dark:border-green-700 dark:bg-green-900/20"
+ >
+ <div className="text-lg">📦</div>
+ <div className="text-xs font-medium">{source}</div>
+ </div>
+ ))}
+ </div>
+ </div>
+
+ {/* Arrow */}
+ <div className="flex justify-center text-gray-500">↓</div>
+
+ {/* Pinot Cluster */}
+ <div className="text-center">
+ <div className="mb-3 text-sm font-semibold text-amber-900 dark:text-amber-200">
+ ⚙️ Pinot Cluster
+ </div>
+ <div className="space-y-2">
+ {[
+ { icon: '⚙️', name: 'Controller', desc: 'Manages cluster' },
+ { icon: '🔀', name: 'Broker', desc: 'Routes queries' },
+ { icon: '💾', name: 'Server', desc: 'Stores segments' },
+ { icon: '🔧', name: 'Minion', desc: 'Optimization' }
+ ].map((comp) => (
+ <div
+ key={comp.name}
+ className="flex items-center gap-2 rounded border border-amber-700 bg-white p-2 dark:border-amber-700/50 dark:bg-gray-800"
+ >
+ <span>{comp.icon}</span>
+ <div className="flex-1 text-left">
+ <div className="text-xs font-semibold">{comp.name}</div>
+ <div className="text-xs text-gray-600 dark:text-gray-400">
+ {comp.desc}
+ </div>
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+
+ {/* Arrow */}
+ <div className="flex justify-center text-gray-500">↓</div>
+
+ {/* Deep Store */}
+ <div className="text-center">
+ <div className="mb-3 text-sm font-semibold text-gray-700 dark:text-gray-300">
+ 💽 Deep Store
+ </div>
+ <div className="grid grid-cols-3 gap-2">
+ {['S3', 'HDFS', 'GCS'].map((store) => (
+ <div
+ key={store}
+ className="flex flex-col items-center justify-center rounded border-2 border-blue-400 bg-blue-50 py-2 text-xs font-medium dark:border-blue-700 dark:bg-blue-900/20"
+ >
+ {store}
+ </div>
+ ))}
+ </div>
+ </div>
+
+ {/* Arrow */}
+ <div className="flex justify-center text-gray-500">↓</div>
+
+ {/* Applications */}
+ <div className="text-center">
+ <div className="mb-3 text-sm font-semibold text-gray-700 dark:text-gray-300">
+ 📊 Applications
+ </div>
+ <div className="grid grid-cols-3 gap-2">
+ {['Dashboards', 'APIs', 'BI Tools'].map((app) => (
+ <div
+ key={app}
+ className="flex flex-col items-center justify-center rounded border-2 border-blue-500 bg-blue-50 py-3 dark:border-blue-700 dark:bg-blue-900/20"
+ >
+ <div className="text-lg">📊</div>
+ <div className="text-xs font-medium">{app}</div>
+ </div>
+ ))}
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
+ );
+};
+
+export default ArchitectureSection;
diff --git a/components/Terminal.tsx b/components/Terminal.tsx
index f5a5ec26..b3406608 100644
--- a/components/Terminal.tsx
+++ b/components/Terminal.tsx
@@ -2,33 +2,85 @@
import React, { FC, useState } from 'react';
import { Button } from './ui/button';
+interface Step {
+ id: string;
+ title: string;
+ content: string[];
+}
+
const Terminal: FC = () => {
- const [activeTab, setActiveTab] = useState<'x86' | 'ARM64'>('x86');
+ const [activeStep, setActiveStep] = useState<string>('step-1');
+ const [activeArch, setActiveArch] = useState<'x86' | 'ARM64'>('x86');
const [copied, setCopied] = useState(false);
- const commands = {
- x86: [
- 'docker run -p 9000:9000 \\',
- 'apachepinot.docker.scarf.sh/apachepinot/pinot:1.4.0 \\',
- 'QuickStart -type hybrid'
- ],
- ARM64: [
- 'docker run -p 9000:9000 \\',
- 'apachepinot.docker.scarf.sh/apachepinot/pinot:1.4.0-arm64 \\',
- 'QuickStart -type hybrid'
- ]
- };
+ const steps: Step[] = [
+ {
+ id: 'step-1',
+ title: 'Start Pinot',
+ content: activeArch === 'x86'
+ ? [
+ 'docker run -p 9000:9000 \\',
+ 'apachepinot.docker.scarf.sh/apachepinot/pinot:1.4.0 \\',
+ 'QuickStart -type hybrid'
+ ]
+ : [
+ 'docker run -p 9000:9000 \\',
+ 'apachepinot.docker.scarf.sh/apachepinot/pinot:1.4.0-arm64 \\',
+ 'QuickStart -type hybrid'
+ ]
+ },
+ {
+ id: 'step-2',
+ title: 'Create Table',
+ content: [
+ 'curl -X POST http://localhost:9000/schemas \\',
+ " -H 'Content-Type: application/json' \\",
+ ' -d @examples/batch/airlineStats/airlineStats_schema.json'
+ ]
+ },
+ {
+ id: 'step-3',
+ title: 'Query Data',
+ content: [
+ 'SELECT carrier, count(*) AS flights,',
+ ' avg(arrDelay) AS avg_delay',
+ 'FROM airlineStats',
+ "WHERE destState = 'CA'",
+ 'GROUP BY carrier',
+ 'ORDER BY flights DESC',
+ 'LIMIT 10;'
+ ]
+ },
+ {
+ id: 'step-4',
+ title: 'See Results',
+ content: [
+ '[',
+ ' {"carrier":"WN","flights":3214,"avg_delay":5.2},',
+ ' {"carrier":"UA","flights":2104,"avg_delay":8.7},',
+ ' {"carrier":"AA","flights":1893,"avg_delay":6.1}',
+ ']'
+ ]
+ }
+ ];
+
+ const currentStep = steps.find(s => s.id === activeStep) || steps[0];
const handleCopy = async () => {
try {
- await navigator.clipboard.writeText(commands[activeTab].join('\n'));
+ const textToCopy = currentStep.content.join('\n');
+ await navigator.clipboard.writeText(textToCopy);
setCopied(true);
- setTimeout(() => setCopied(false), 2000); // Show copied status for 2 seconds
+ setTimeout(() => setCopied(false), 2000);
} catch (err) {
console.error('Failed to copy text: ', err);
}
};
+ const handleArchChange = (arch: 'x86' | 'ARM64') => {
+ setActiveArch(arch);
+ };
+
const renderCommandWithNumbers = (commandLines: string[]) => {
return commandLines.map((line, index) => (
<div className="table-row" key={index}>
@@ -49,26 +101,48 @@ const Terminal: FC = () => {
<div className="h-3 w-3 rounded-full bg-green-500"></div>
</div>
</div>
- {/* Tab buttons */}
- <div className="mb-2 ml-8 flex space-x-1 border-b-2">
- {(['x86', 'ARM64'] as const).map((arch) => (
+
+ {/* Step tabs */}
+ <div className="mb-2 ml-8 flex flex-wrap space-x-1 border-b-2">
+ {steps.map((step) => (
<button
- key={arch}
- className={`border-b-4 px-4 py-2
- pt-5 font-[Source_Code_Pro]
+ key={step.id}
+ className={`border-b-4 px-4 py-2 pt-5 font-[Source_Code_Pro] text-sm transition-all
${
- activeTab === arch
+ activeStep === step.id
? 'border-rose-700 text-base font-semibold'
- : 'border-transparent opacity-30'
+ : 'border-transparent opacity-30 hover:opacity-60'
}`}
- onClick={() => setActiveTab(arch)}
+ onClick={() => setActiveStep(step.id)}
>
- {arch}
+ {step.id.split('-')[1]}. {step.title}
</button>
))}
</div>
- <div className="table w-full whitespace-pre-wrap p-4 font-[Source_Code_Pro] leading-loose">
- {renderCommandWithNumbers(commands[activeTab])}
+
+ {/* Architecture selector - only shown for step 1 */}
+ {activeStep === 'step-1' && (
+ <div className="ml-8 flex space-x-2 border-b border-gray-200 pb-2">
+ {(['x86', 'ARM64'] as const).map((arch) => (
+ <button
+ key={arch}
+ className={`px-3 py-1 text-xs font-[Source_Code_Pro] transition-colors
+ ${
+ activeArch === arch
+ ? 'bg-vine-100 text-gray-900'
+ : 'bg-gray-200 text-gray-600 hover:bg-gray-300'
+ }`}
+ onClick={() => handleArchChange(arch)}
+ >
+ {arch}
+ </button>
+ ))}
+ </div>
+ )}
+
+ {/* Command content */}
+ <div className="table w-full whitespace-pre-wrap p-4 font-[Source_Code_Pro] leading-loose text-gray-100">
+ {renderCommandWithNumbers(currentStep.content)}
</div>
</div>
@@ -85,4 +159,4 @@ const Terminal: FC = () => {
);
};
-export default Terminal;
+export default Terminal;
\ No newline at end of file
diff --git a/components/TextCodeSplitSection.tsx b/components/TextCodeSplitSection.tsx
index 46e0a95e..8c4ab443 100644
--- a/components/TextCodeSplitSection.tsx
+++ b/components/TextCodeSplitSection.tsx
@@ -20,6 +20,9 @@ const TextCodeSplitSection: React.FC<TextCodeSplitSectionProps> = ({ title }) =>
<h2 className=" text-[2rem] font-bold leading-10 text-gray-900 dark:text-white md:text-5xl md:leading-[4rem]">
{title}
</h2>
+ <p className="mt-2 text-lg text-gray-600 dark:text-gray-300">
+ From install to first query in under 5 minutes.
+ </p>
</header>
<div className="flex justify-start pb-6">
<Button
@@ -41,4 +44,4 @@ const TextCodeSplitSection: React.FC<TextCodeSplitSectionProps> = ({ title }) =>
);
};
-export default TextCodeSplitSection;
+export default TextCodeSplitSection;
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org