-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
152 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(() => ( | ||
<> </> | ||
))} | ||
</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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.", | ||
}, | ||
], | ||
]; |