Skip to content

Commit

Permalink
Slight tweaks to bring the page closer to the design
Browse files Browse the repository at this point in the history
  • Loading branch information
damianstasik committed Sep 4, 2023
1 parent a82a1e4 commit a33c293
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 16 deletions.
9 changes: 2 additions & 7 deletions src/components/Jumbotron/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,9 @@ type JumbotronProps = {

export default function Jumbotron({ children }: JumbotronProps) {
return (
<div className="pt-20 pb-24 flex items-center justify-center">
<div className="pt-12 pb-20 flex items-center justify-center">
<PatternBg />
{typeof children === "string" && (
<h1 className="text-7xl font-bold text-white text-center leading-snug">
{children}
</h1>
)}
{typeof children !== "string" && children}
{children}
</div>
);
}
15 changes: 10 additions & 5 deletions src/components/TextContent/index.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
import React from "react";
import clsx from "clsx";

type TextContentProps = {
children: React.ReactNode;
className?: string;
};

export default function TextContent({ children }: TextContentProps) {
export default function TextContent({ children, className }: TextContentProps) {
return (
<div className="bg-white flex-1">
<div className="container my-14">
<div className="prose lg:prose-xl mx-auto prose-h3:text-4xl prose-h3:leading-normal">
{children}
</div>
<div
className={clsx(
"prose lg:prose-xl mx-auto prose-h3:text-5xl prose-h3:leading-normal prose-li:marker:text-inherit prose-a:text-gray-600 my-14 text-gray-600",
className
)}
>
{children}
</div>
</div>
);
Expand Down
3 changes: 1 addition & 2 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ body {
}

.navbar {
height: 96px;
padding: 0;
@apply h-24 p-0;
}

.navbar__inner {
Expand Down
8 changes: 6 additions & 2 deletions src/pages/manifesto.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ import TextContent from "../components/TextContent";
export default function Manifesto() {
return (
<Layout wrapperClassName="light">
<Jumbotron>The OpenTF Manifesto</Jumbotron>
<TextContent>
<Jumbotron>
<h1 className="text-7xl font-bold text-white text-center leading-snug max-w-2xl">
The OpenTF Manifesto
</h1>
</Jumbotron>
<TextContent className="max-w-2xl">
<p>
Terraform was open-sourced in 2014 under the Mozilla Public License
(v2.0) (the “MPL”). Over the next ~9 years, it built up a community
Expand Down
8 changes: 8 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,20 @@ module.exports = {
theme: {
extend: {
colors: {
fontSize: {
"5xl": "2.5rem",
},
primary: {
base: "#933EFF",
hover: "#7732D0",
},
gray: {
900: "#1B1D20",
700: "#505661",
600: "#6A7382",
150: "#DADEE3",
100: "#E7E9EC",
50: "#F9F9F9",
},
brand: "#933EFF",
brandMuted: "#AA4EE7",
Expand Down

0 comments on commit a33c293

Please sign in to comment.