-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement initial version of top half of the new design
- Loading branch information
1 parent
dc2094a
commit 1f0cf39
Showing
9 changed files
with
146 additions
and
70 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import React from "react"; | ||
|
||
function Goal({ icon, title, description }) { | ||
return ( | ||
<div className="bg-dark2 p-6"> | ||
<h4 className="text-xl mb-2">{title}</h4> | ||
<p className="text-[#818995]">{description}</p> | ||
</div> | ||
); | ||
} | ||
|
||
export default function Goals() { | ||
return ( | ||
<section className="py-12 mx-auto container"> | ||
<h3 className="text-center text-5xl font-bold mb-12">Our Goals</h3> | ||
<div className="grid grid-cols-3 gap-6"> | ||
<Goal | ||
title="Truly open-source" | ||
description="under a well-known and widely-accepted license that companies can trus, that won’t suddenly change in the future, and isn’t subhect to the whims of a singe vendor." | ||
/> | ||
<Goal | ||
title="Community-driven" | ||
description="so that the community governs the project for the community, where pull requests are regularly reviewed and accepted on their merit." | ||
/> | ||
<Goal | ||
title="Impartial" | ||
description="so that valuable features and fixes are accepted based on their value to the community, regardless of their impact on any particular vendor." | ||
/> | ||
<Goal | ||
title="Layered and modular" | ||
description="with a programmer-friendly project structure to encourage building on top, enabling a new vibrant ecosystem of tools and integrations." | ||
/> | ||
<Goal | ||
title="Backwards-compatibile" | ||
description="so that the existing code can drive value for years to come." | ||
/> | ||
</div> | ||
</section> | ||
); | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,38 @@ | ||
import React from "react"; | ||
import clsx from "clsx"; | ||
|
||
type ToggleButtonProps = { | ||
children: React.ReactNode; | ||
isActive: boolean; | ||
onClick: () => void; | ||
}; | ||
|
||
function ToggleButton({ children, isActive, onClick }: ToggleButtonProps) { | ||
return ( | ||
<button | ||
type="button" | ||
className={clsx( | ||
"border font-semibold text-white h-12 px-6 flex items-center hover:no-underline", | ||
isActive ? "border-white" : "border-white/20" | ||
)} | ||
> | ||
{children} | ||
</button> | ||
); | ||
} | ||
|
||
export default function Supporters() { | ||
return ( | ||
<section className="py-12 mx-auto container"> | ||
<h3 className="text-center text-5xl font-bold mb-7">Supporters</h3> | ||
<div className="flex gap-6 justify-center"> | ||
<ToggleButton isActive onClick={() => {}}> | ||
All | ||
</ToggleButton> | ||
<ToggleButton onClick={() => {}}>Companies</ToggleButton> | ||
<ToggleButton onClick={() => {}}>Individuals</ToggleButton> | ||
<ToggleButton onClick={() => {}}>Projects</ToggleButton> | ||
</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 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,14 +1,16 @@ | ||
import React from "react"; | ||
import Layout from "@theme/Layout"; | ||
|
||
import Pattern from "../components/Pattern"; | ||
import HomePage from "../components/HomePage"; | ||
import Hero from "../components/Hero"; | ||
import Goals from "../components/Goals"; | ||
import Supporters from "../components/Supporters"; | ||
|
||
export default function Home() { | ||
return ( | ||
<Layout> | ||
<Pattern /> | ||
<HomePage /> | ||
<Hero /> | ||
<Goals /> | ||
<Supporters /> | ||
</Layout> | ||
); | ||
} |
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