From 050108eb1952e6542f4bbc2d411aae93bcc01961 Mon Sep 17 00:00:00 2001 From: Roman Grinovski Date: Tue, 19 Sep 2023 10:52:32 +0200 Subject: [PATCH] UI feedback (#128) * change twitter links * rename to OpenTofu * add contribute button --- docusaurus.config.js | 2 +- src/components/Button/index.tsx | 5 +++-- src/components/Footer/index.tsx | 2 +- src/components/Hero/index.tsx | 2 +- src/components/Home/index.tsx | 2 +- src/components/HowToContribute/index.tsx | 8 ++++++-- 6 files changed, 13 insertions(+), 8 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index b51f94b9..5ea01c80 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -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", diff --git a/src/components/Button/index.tsx b/src/components/Button/index.tsx index 81032e69..2f830f7d 100644 --- a/src/components/Button/index.tsx +++ b/src/components/Button/index.tsx @@ -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 ( {children} diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx index 2e428829..51fbe029 100644 --- a/src/components/Footer/index.tsx +++ b/src/components/Footer/index.tsx @@ -52,7 +52,7 @@ export default function Footer({ links }: FooterProps) { /> diff --git a/src/components/Hero/index.tsx b/src/components/Hero/index.tsx index 8eddec5d..612c0517 100644 --- a/src/components/Hero/index.tsx +++ b/src/components/Hero/index.tsx @@ -8,7 +8,7 @@ export default function Hero() {
- Ensure Terraform remains truly open-source. Always. + Ensure OpenTofu remains truly open-source. Always.

Previously named OpenTF, OpenTofu is a fork of Terraform that is diff --git a/src/components/Home/index.tsx b/src/components/Home/index.tsx index b6fb92eb..812fff04 100644 --- a/src/components/Home/index.tsx +++ b/src/components/Home/index.tsx @@ -10,7 +10,7 @@ import LatestNews from "../LatestNews"; export default function Home({ recentPosts }) { return ( - + diff --git a/src/components/HowToContribute/index.tsx b/src/components/HowToContribute/index.tsx index 7758e0c9..bcf41174 100644 --- a/src/components/HowToContribute/index.tsx +++ b/src/components/HowToContribute/index.tsx @@ -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() { @@ -9,7 +10,7 @@ export default function HowToContribute() {

How to use and contribute to OpenTofu?

-

+

The best way to show practical support for the OpenTofu initiative is to contribute. This{" "} + );