Skip to content

Commit

Permalink
UI feedback (#128)
Browse files Browse the repository at this point in the history
* change twitter links

* rename to OpenTofu

* add contribute button
  • Loading branch information
Roma36 authored Sep 19, 2023
1 parent 048aa3d commit 050108e
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ const config = {
},
{
type: "custom-social-icon-link-navbar-item",
href: "https://twitter.com/opentforg",
href: "https://twitter.com/opentofuorg",
position: "right",
name: "twitter",
label: "Follow us on Twitter",
Expand Down
5 changes: 3 additions & 2 deletions src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type ButtonProps = Props & {
variant: "primary" | "secondary";
};

export default function Button({ children, variant, ...rest }: ButtonProps) {
export default function Button({ children, variant, className, ...rest }: ButtonProps) {
const Tag = "href" in rest ? Link : "button";
return (
<Tag
Expand All @@ -16,7 +16,8 @@ export default function Button({ children, variant, ...rest }: ButtonProps) {
variant === "primary" &&
"bg-brand-500 text-gray-900 hover:bg-brand-600 border-brand-500 hover:border-brand-600-hover hover:text-gray-900",
variant === "secondary" &&
"border-gray-200 dark:border-gray-800 text-gray-900 dark:text-gray-50 bg-transparent hover:border-gray-900 dark:hover:border-gray-50 hover:text-gray-900 dark:hover:text-gray-50 aria-selected:border-gray-900 dark:aria-selected:border-gray-50"
"border-gray-200 dark:border-gray-800 text-gray-900 dark:text-gray-50 bg-transparent hover:border-gray-900 dark:hover:border-gray-50 hover:text-gray-900 dark:hover:text-gray-50 aria-selected:border-gray-900 dark:aria-selected:border-gray-50",
className
)}
>
{children}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function Footer({ links }: FooterProps) {
/>
<SocialIconLink
name="twitter"
href="https://twitter.com/opentforg"
href="https://twitter.com/opentofuorg"
label="Follow us on Twitter"
hiddenLabel
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function Hero() {
<header className="flex flex-col items-center py-10 md:py-20 px-6 md:px-16 mx-auto">
<PatternBg />
<Headline className="sm:max-w-2xl md:max-w-3xl lg:max-w-4xl">
Ensure Terraform remains truly open-source. Always.
Ensure OpenTofu remains truly open-source. Always.
</Headline>
<p className="my-6 text-xl sm:max-w-lg md:max-w-xl lg:max-w-2xl text-center text-gray-600 dark:text-gray-500">
Previously named OpenTF, OpenTofu is a fork of Terraform that is
Expand Down
2 changes: 1 addition & 1 deletion src/components/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import LatestNews from "../LatestNews";

export default function Home({ recentPosts }) {
return (
<Layout description="Ensure Terraform remains truly open-source.">
<Layout description="Ensure OpenTofu remains truly open-source.">
<Hero />
<Goals />
<HowToContribute />
Expand Down
8 changes: 6 additions & 2 deletions src/components/HowToContribute/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react";
import Link, { Props } from "@docusaurus/Link";
import Link from "@docusaurus/Link";
import Button from "../Button";

// TODO enter final links once ready
export default function HowToContribute() {
Expand All @@ -9,7 +10,7 @@ export default function HowToContribute() {
<h2 className="text-center text-3xl md:text-5xl mb-3 md:mb-6 font-bold">
How to use and contribute to OpenTofu?
</h2>
<p className="text-gray-600 dark:text-gray-500 text-center text-base md:text-xl mb-6 md:mb-12 md:leading-relaxed">
<p className="text-gray-600 dark:text-gray-500 text-center text-base md:text-xl mb-3 md:mb-6 md:leading-relaxed">
The best way to show practical support for the OpenTofu initiative is
to contribute. This{" "}
<Link
Expand All @@ -22,6 +23,9 @@ export default function HowToContribute() {
submit issues, how to get involved in the discussion, how to work on
the code, and how to contribute code changes.
</p>
<Button className="mx-auto max-w-fit" variant="primary" href="https://github.com/opentffoundation/opentf/blob/main/CONTRIBUTING.md">
Contribute
</Button>
</div>
</section>
);
Expand Down

0 comments on commit 050108e

Please sign in to comment.