Skip to content

Commit

Permalink
customers
Browse files Browse the repository at this point in the history
  • Loading branch information
epompeii committed Jan 11, 2025
1 parent 641a8f2 commit 3425bf6
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 115 deletions.
91 changes: 62 additions & 29 deletions services/console/src/components/landing/Customers.astro
Original file line number Diff line number Diff line change
@@ -1,38 +1,71 @@
---
import { CUSTOMERS } from "./customers.ts";
import { BENCHER_GITHUB_URL } from "../../util/ext";
import { CUSTOMERS } from "./customers.tsx";
const padQuote = (quote: string) => {
const MAX = CUSTOMERS.reduce((acc, customers) => {
const max = customers.reduce((acc, customer) => {
return Math.max(acc, customer.quote.length);
}, 0);
return Math.max(acc, max);
}, 0);
const padding = [];
const quoteLength = quote.length;
if (quoteLength < MAX) {
for (let i = 0; i < MAX - quoteLength; i++) {
padding.push(null);
}
}
return padding;
};
---

<section class="section" style="margin-top: 4rem;">
<div class="columns is-centered is-vcentered">
<div class="column">
{CUSTOMERS.map((customers) => (
<div class="columns is-centered is-vcentered is-mobile">
{customers.map((customer) => (
<div class="column is-5">
<div class="box">
<div class="content">
{customer.quote}
</div>
<div class="media">
<div class="media-left">
<figure class="image is-48x48">
<img
src={customer.icon}
alt={customer.name}
/>
</figure>
</div>
<div class="media-content">
<p class="title is-4">{customer.name}</p>
<p class="subtitle is-6">@{customer.github}</p>
</div>
</div>
</div>
</div>
))}
<div class="columns is-centered is-vcentered">
<div class="column">
{CUSTOMERS.map((customers) => (
<div class="columns is-centered">
{customers.map((customer) => (
<div class="column is-5">
<div class="box">
<div class="content">
<p style="word-break: break-word;">
{customer.quote}
{padQuote(customer.quote).map(() => (
<>&nbsp;</>
))}
</p>
</div>
<div class="media">
<div class="media-left">
<figure class="image is-48x48">
<a
href={BENCHER_GITHUB_URL}
target="_blank"
aria-label="GitHub"
rel="noreferrer"
>
<span class="icon has-text-primary">
<i class="fab fa-github fa-2x" />
</span>
</a>
{/* <img
src={customer.icon}
alt={customer.name}
/> */}
</figure>
</div>
{/* <div class="media-content">
<p class="title is-4">{customer.name}</p>
<a class="subtitle is-6 is-link" href={`https://github.com/${customer.github}`}>@{customer.github}</p>
</div> */}
</div>
))}
</div>
</div>
))}
</div>
))}
</div>
</div>
</section>

70 changes: 35 additions & 35 deletions services/console/src/components/landing/Toolbox.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,45 +14,45 @@ const LANGUAGES: string[][] = [
<section class="section" style="margin-top: 4rem;">
<div class="content has-text-centered">
<h2 class="title is-1">Use Your Favorite Benchmark Harness</h2>
</div>
<br />
<br />
<div class="columns is-centered is-vcentered">
{LANGUAGES.map(([left_icon, right_icon]) => (
<div class="column is-one-quarter">
<div class="columns is-mobile">
<div class="column is-half">
<span class="icon has-text-primary is-large">
<i class={`${left_icon} fa-5x`} />
</span>
</div>
<br />
<div class="column is-half">
<span class="icon has-text-primary is-large">
<i class={`${right_icon} fa-5x`} />
</span>
<br />
<br />
<div class="columns is-centered is-vcentered">
{LANGUAGES.map(([left_icon, right_icon]) => (
<div class="column is-one-quarter">
<div class="columns is-mobile">
<div class="column is-half">
<span class="icon has-text-primary is-large">
<i class={`${left_icon} fa-5x`} />
</span>
</div>
<br />
<div class="column is-half">
<span class="icon has-text-primary is-large">
<i class={`${right_icon} fa-5x`} />
</span>
</div>
</div>
</div>
))}
</div>
<br />
<div class="columns is-centered is-vcentered">
<div class="column is-7">
<ClientPlatform client:only="solid-js" platform={Platform.Unix}>
<Code lang="bash" code="curl --proto '=https' --tlsv1.2 -sSfL https://bencher.dev/download/install-cli.sh | sh" />
</ClientPlatform>
<ClientPlatform client:only="solid-js" platform={Platform.Windows}>
<Code lang="powershell" code="irm https://bencher.dev/download/install-cli.ps1 | iex" />
</ClientPlatform>
</div>
))}
</div>
<br />
<div class="columns is-centered is-vcentered">
<div class="column is-7">
<ClientPlatform client:only="solid-js" platform={Platform.Unix}>
<Code lang="bash" code="curl --proto '=https' --tlsv1.2 -sSfL https://bencher.dev/download/install-cli.sh | sh" />
</ClientPlatform>
<ClientPlatform client:only="solid-js" platform={Platform.Windows}>
<Code lang="powershell" code="irm https://bencher.dev/download/install-cli.ps1 | iex" />
</ClientPlatform>
</div>
</div>
<br />
<div class="columns is-centered">
<div class="column is-one-third">
<a class="button is-primary is-large is-responsive is-fullwidth" href="/docs/tutorial/quick-start/">
Learn More
</a>
<br />
<div class="columns is-centered">
<div class="column is-one-third">
<a class="button is-primary is-large is-responsive is-fullwidth" href="/docs/tutorial/quick-start/">
Learn More
</a>
</div>
</div>
</div>
</section>
51 changes: 0 additions & 51 deletions services/console/src/components/landing/customers.ts

This file was deleted.

55 changes: 55 additions & 0 deletions services/console/src/components/landing/customers.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
interface Customer {
name: string;
icon: string;
github: string;
quote: string;
}

export const CUSTOMERS: Customer[][] = [
[
{
name: "",
icon: "",
github: "",
quote: "Bencher is like CodeCov for performance metrics.",
},
{
name: "",
icon: "",
github: "",
quote:
"I think I'm in heaven. Now that I'm starting to see graphs of performance over time automatically from tests I'm running in CI. It's like this whole branch of errors can be caught and noticed sooner.",
},
],
[
{
name: "",
icon: "",
github: "",
quote:
"Truthfully, I was thinking about building Bencher, or something like it, but you beat me to it!",
},
{
name: "",
icon: "",
github: "",
quote:
"I've been looking for a public service like this for about 10 years :)",
},
],
[
{
name: "",
icon: "",
github: "",
quote:
"I'm happy with how quickly I was able to get everything configured and working.",
},
{
name: "",
icon: "",
github: "",
quote: "Bencher's main ideas and concepts are really well designed.",
},
],
];

0 comments on commit 3425bf6

Please sign in to comment.