Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add award banner #1537

Merged
merged 3 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/assets/JS_OSAward_2024_5_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/components/AwardBanner.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
import { Image } from "astro:assets";
import banner from "@/assets/JS_OSAward_2024_5_1.png";
import "@/styles/_award.css";
---

<div class="award">
<Image src={banner} alt="JS OS Award 2024 - Productivity booster" width="500" />
</div>
225 changes: 117 additions & 108 deletions src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,22 @@ hero:
variant: secondary
---

import { Card, CardGrid } from "@astrojs/starlight/components";
import {Card, CardGrid} from "@astrojs/starlight/components";
import Inputf from "@/components/formatter/input.md";
import Outputf from "@/components/formatter/output.md";
import ProgressBarContainer from "@/playground/components/Progress.tsx";
import Community from "@/components/generated/Community.astro";
import { Icon } from "@astrojs/starlight/components";
import {Icon} from "@astrojs/starlight/components";
import arrow from "@/assets/svg/arrow-right.svg";
import { Image } from "astro:assets";
import {Image} from "astro:assets";
import "@/styles/_performance.css";
import "@/styles/_installation.css";
import "@/styles/_community.css";
import Netlify from "@/components/Netlify.astro";
import Sponsors from "@/components/Sponsors.astro";
import LinterExample from "@/components/linter/example.md";
import NumberOfRules from "@/components/generated/NumberOfRules.astro";
import AwardBanner from "@/components/AwardBanner.astro"

<div class="gradient"></div>
<div class="grid"></div>
Expand All @@ -49,41 +50,44 @@ import NumberOfRules from "@/components/generated/NumberOfRules.astro";
<div class="hero-code">
<h2 class="head">Format code like Prettier, save time</h2>

**Biome is a [fast formatter](https://github.com/biomejs/biome/tree/main/benchmark#formatting)** for _JavaScript_, _TypeScript_, _JSX_, _TSX_, _JSON_, _CSS_ and _GraphQL_ that scores **[97% compatibility with _Prettier_](https://console.algora.io/challenges/prettier)**, **saving CI and developer time**.
**Biome is a [fast formatter](https://github.com/biomejs/biome/tree/main/benchmark#formatting)** for _JavaScript_,
_TypeScript_, _JSX_, _TSX_, _JSON_, _CSS_ and _GraphQL_ that scores **[97% compatibility with
_Prettier_](https://console.algora.io/challenges/prettier)**, **saving CI and developer time**.

Biome can even **format malformed code** as you write it in [your favorite editor](/guides/integrate-in-editor/).

<div class="linter format">
<div class="inp">
<span>CODE</span>
<Inputf />
</div>
<div class="out">
<span>OUTPUT</span>
<Outputf />
</div>
<div class="perf-out">
<span>PERFORMANCE</span>
<div class="bench-comp">
<div class="bench">
<div>
<ProgressBarContainer
client:visible
data={[
{ duration: 0.41, label: "Biome", color: "#33ff66" },
{ duration: 14.35, label: "Prettier", color: "#ff0033" }
]}
/>
</div>
</div>
<div class="perf-comp">
<div class="comp">~35x</div>
<div class="comp-des">
Faster than Prettier when formatting 171,127 lines of code in 2,104 files with an Intel Core i7 1270P.
<div class="inp">
<span>CODE</span>
<Inputf/>
</div>
<div class="out">
<span>OUTPUT</span>
<Outputf/>
</div>
<div class="perf-out">
<span>PERFORMANCE</span>
<div class="bench-comp">
<div class="bench">
<div>
<ProgressBarContainer
client:visible
data={[
{duration: 0.41, label: "Biome", color: "#33ff66"},
{duration: 14.35, label: "Prettier", color: "#ff0033"}
]}
/>
</div>
</div>
<div class="perf-comp">
<div class="comp">~35x</div>
<div class="comp-des">
Faster than Prettier when formatting 171,127 lines of code in 2,104 files with an Intel Core i7
1270P.
</div>
</div>
</div>
</div>
</div>
</div>
</div>

Try the Biome formatter on the [playground](/playground/) or directly on your project:
Expand All @@ -98,11 +102,14 @@ import NumberOfRules from "@/components/generated/NumberOfRules.astro";
<div class="hero-code">
<h2 class="head">Fix problems, learn best practice</h2>

**Biome is a [performant linter](https://github.com/biomejs/biome/tree/main/benchmark#linting)** for _JavaScript_, _TypeScript_, _JSX_, _CSS_ and _GraphQL_ that features **[<NumberOfRules/> rules](/linter/rules/)** from ESLint, TypeScript ESLint, and [other sources](/linter/rules-sources/).
**Biome is a [performant linter](https://github.com/biomejs/biome/tree/main/benchmark#linting)** for _JavaScript_,
_TypeScript_, _JSX_, _CSS_ and _GraphQL_ that features **[<NumberOfRules/> rules](/linter/rules/)** from ESLint,
TypeScript ESLint, and [other sources](/linter/rules-sources/).

**Biome outputs detailed and contextualized diagnostics** that help you to improve your code and become a better programmer!
**Biome outputs detailed and contextualized diagnostics** that help you to improve your code and become a better
programmer!

<LinterExample />
<LinterExample/>

Try the Biome linter on the [playground](/playground/) or directly on your project:

Expand Down Expand Up @@ -134,88 +141,90 @@ import NumberOfRules from "@/components/generated/NumberOfRules.astro";

<div class="card-cnt">

<CardGrid>
<Card title="Fast" icon="rocket">
Built with Rust and an innovative architecture inspired by rust-analyzer.
</Card>
<Card title="Simple" icon="pencil">
Zero configuration needed to get started. Extensive options available for
when you need them.
</Card>
<Card title="Scalable" icon="random">
Designed to handle codebases of any size. Focus on growing product instead
of your tools.
</Card>
<Card title="Optimized" icon="setting">
With tight internal integration we are able to reuse previous work and any
improvement to one tool improves them all.
</Card>
<Card title="Actionable & Informative" icon="information">
Avoid obscure error messages, when we tell you something is wrong, we tell
you exactly where the problem is and how to fix it.
</Card>
<Card title="Batteries Included" icon="add-document">
Out of the box support for all the language features you use today. First
class support for TypeScript and JSX.
</Card>
</CardGrid>
<CardGrid>
<Card title="Fast" icon="rocket">
Built with Rust and an innovative architecture inspired by rust-analyzer.
</Card>
<Card title="Simple" icon="pencil">
Zero configuration needed to get started. Extensive options available for
when you need them.
</Card>
<Card title="Scalable" icon="random">
Designed to handle codebases of any size. Focus on growing product instead
of your tools.
</Card>
<Card title="Optimized" icon="setting">
With tight internal integration we are able to reuse previous work and any
improvement to one tool improves them all.
</Card>
<Card title="Actionable & Informative" icon="information">
Avoid obscure error messages, when we tell you something is wrong, we tell
you exactly where the problem is and how to fix it.
</Card>
<Card title="Batteries Included" icon="add-document">
Out of the box support for all the language features you use today. First
class support for TypeScript and JSX.
</Card>
</CardGrid>
</div>
<div class="installation-body">
<div class="installation">
<div class="installation-left">
<h2 class="head">Try Biome</h2>
<div class="installation-description">
Install Biome using your preferred package manager AND integrate it in your editor.
</div>
<a class="installation-biome" href="/guides/getting-started/#installation">
Install with package manager
<Image src={arrow} alt="arrow" />
</a>
<a
href="/guides/integrate-in-editor/"
class="installation-extension"
>
Integrate Biome in your editor
<Image src={arrow} alt="arrow" />
</a>
</div>
<div class="installation">
<div class="installation-left">
<h2 class="head">Try Biome</h2>
<div class="installation-description">
Install Biome using your preferred package manager AND integrate it in your editor.
</div>
<a class="installation-biome" href="/guides/getting-started/#installation">
Install with package manager
<Image src={arrow} alt="arrow"/>
</a>
<a
href="/guides/integrate-in-editor/"
class="installation-extension"
>
Integrate Biome in your editor
<Image src={arrow} alt="arrow"/>
</a>
</div>

<div class="extension-img"></div>
<div class="extension-img"></div>

</div>
</div>
</div>

<AwardBanner/>

<div class="community">
<div class="community-grid"></div>
<h2 class="head">Community</h2>
<div class="community-connect">
<div class="community-description">
Powered by our open-source contributors
<div class="community-grid"></div>
<h2 class="head">Community</h2>
<div class="community-connect">
<div class="community-description">
Powered by our open-source contributors
</div>
<div class="community-links">
<a href="https://biomejs.dev/chat" class="discord">
<Icon name="discord"/>
<p>Discord</p>
</a>
<a href="https://github.com/biomejs/biome" class="github">
<Icon name="github"/>
<p>GitHub</p>
</a>
<a href="https://twitter.com/biomejs" class="x">
<Icon name="x.com"/>
<p>Twitter</p>
</a>
<a href="https://fosstodon.org/@biomejs" class="mastodon">
<Icon name="mastodon"/>
<p>Mastodon</p>
</a>
</div>
</div>
<div class="community-links">
<a href="https://biomejs.dev/chat" class="discord">
<Icon name="discord" />
<p>Discord</p>
</a>
<a href="https://github.com/biomejs/biome" class="github">
<Icon name="github" />
<p>GitHub</p>
</a>
<a href="https://twitter.com/biomejs" class="x">
<Icon name="x.com" />
<p>Twitter</p>
</a>
<a href="https://fosstodon.org/@biomejs" class="mastodon">
<Icon name="mastodon" />
<p>Mastodon</p>
</a>
<div class="connect">
<Community/>
</div>
</div>
<div class="connect">
<Community />
</div>
</div>

<Sponsors title="Sponsors" />
<Sponsors title="Sponsors"/>

<Netlify />
<Netlify/>
4 changes: 3 additions & 1 deletion src/content/docs/ja/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import "@/styles/_community.css";
import Netlify from "@/components/Netlify.astro";
import Sponsors from "@/components/Sponsors.astro";
import LinterExample from "@/components/linter/example.md";

import AwardBanner from "@/components/AwardBanner.astro"

<div class="gradient"></div>
<div class="grid"></div>
Expand Down Expand Up @@ -180,6 +180,8 @@ import LinterExample from "@/components/linter/example.md";
</div>
</div>

<AwardBanner />

<div class="community">
<div class="community-grid"></div>
<h2 class="head">コミュニティ</h2>
Expand Down
3 changes: 3 additions & 0 deletions src/content/docs/pt-br/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import "@/styles/_community.css";
import Netlify from "@/components/Netlify.astro";
import Sponsors from "@/components/Sponsors.astro";
import LinterExample from "@/components/linter/example.md";
import AwardBanner from "@/components/AwardBanner.astro"

<div class="gradient"></div>
<div class="grid"></div>
Expand Down Expand Up @@ -180,6 +181,8 @@ import LinterExample from "@/components/linter/example.md";
</div>
</div>

<AwardBanner />

<div class="community">
<div class="community-grid"></div>
<h2 class="head">Comunidade</h2>
Expand Down
3 changes: 3 additions & 0 deletions src/content/docs/zh-cn/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import "@/styles/_community.css";
import Netlify from "@/components/Netlify.astro";
import Sponsors from "@/components/Sponsors.astro";
import LinterExample from "@/components/linter/example.md";
import AwardBanner from "@/components/AwardBanner.astro"

<div class="gradient"></div>
<div class="grid"></div>
Expand Down Expand Up @@ -174,6 +175,8 @@ import LinterExample from "@/components/linter/example.md";
</div>
</div>

<AwardBanner />

<div class="community">
<div class="community-grid"></div>
<h2 class="head">社区</h2>
Expand Down
5 changes: 5 additions & 0 deletions src/styles/_award.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.award {
margin-top: 9.4rem !important;
display: flex;
justify-content: center;
}
Loading