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

Upgrade docs theme #893

Merged
merged 11 commits into from
Mar 25, 2022
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
38 changes: 38 additions & 0 deletions docs/components/Authors.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { Avatar } from "./Avatar";

const team = {
jaredpalmer: {
name: "Jared Palmer",
twitterUsername: "jaredpalmer",
picture: "/images/people/jaredpalmer_headshot.jpeg",
},
gaspargarcia_: {
name: "Gaspar Garcia",
twitterUsername: "gaspargarcia_",
picture: "/images/people/gaspargarcia_.jpeg",
},
becca__z: {
name: "Becca Z.",
twitterUsername: "becca__z",
picture: "/images/people/becca__z.jpeg",
},
gsoltis: {
name: "Greg Soltis",
twitterUsername: "gsoltis",
picture: "/images/people/gsoltis.jpeg",
},
};

export function Authors({ authors }) {
return (
<div className="grid gap-4 py-8 sm:grid-cols-2 md:grid-cols-4 border-b border-gray-400 border-opacity-20">
{authors.map((username) =>
!!team[username] ? (
<Avatar key={username} {...team[username]} />
) : (
console.warning("no author found for", username) || null
)
)}
</div>
);
}
19 changes: 8 additions & 11 deletions docs/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,17 @@ const navigation = {

export function Footer() {
return (
<footer
className="bg-gray-100 border-t dark:bg-dark dark:border-gray-800"
aria-labelledby="footer-heading"
>
<footer className="" aria-labelledby="footer-heading">
<h2 id="footer-heading" className="sr-only">
Footer
</h2>
<div className="px-4 py-12 mx-auto max-w-7xl sm:px-6 lg:py-16 lg:px-8">
<div className="py-8 mx-auto max-w-7xl">
<div className="xl:grid xl:grid-cols-3 xl:gap-8">
<div className="grid grid-cols-2 gap-8 xl:col-span-2">
<div className="md:grid md:grid-cols-2 md:gap-8">
<div>
<FooterHeader>Solutions</FooterHeader>
<ul role="list" className="mt-4 space-y-1.5">
<ul role="list" className="mt-4 space-y-1.5 list-none ml-0">
{navigation.general.map((item) => (
<li key={item.name}>
<FooterLink href={item.href}>{item.name}</FooterLink>
Expand All @@ -93,7 +90,7 @@ export function Footer() {
</div>
<div className="mt-12 md:mt-0">
<FooterHeader>Support</FooterHeader>
<ul role="list" className="mt-4 space-y-1.5">
<ul role="list" className="mt-4 space-y-1.5 list-none ml-0">
{navigation.support.map((item) => (
<li key={item.name}>
<FooterLink href={item.href}>{item.name}</FooterLink>
Expand All @@ -105,7 +102,7 @@ export function Footer() {
<div className="md:grid md:grid-cols-2 md:gap-8">
<div>
<FooterHeader>Company</FooterHeader>
<ul role="list" className="mt-4 space-y-1.5">
<ul role="list" className="mt-4 space-y-1.5 list-none ml-0">
{navigation.company.map((item) => (
<li key={item.name}>
<FooterLink href={item.href}>{item.name}</FooterLink>
Expand All @@ -115,7 +112,7 @@ export function Footer() {
</div>
<div className="mt-12 md:mt-0">
<FooterHeader>Legal</FooterHeader>
<ul role="list" className="mt-4 space-y-1.5">
<ul role="list" className="mt-4 space-y-1.5 list-none ml-0">
{navigation.legal.map((item) => (
<li key={item.name}>
<FooterLink href={item.href}>{item.name}</FooterLink>
Expand All @@ -125,7 +122,7 @@ export function Footer() {
</div>
</div>
</div>
<div className="mt-8 xl:mt-0">
<div className="">
<FooterHeader>Subscribe to our newsletter</FooterHeader>
<p className="mt-4 text-sm text-gray-600 dark:text-gray-500">
Join the Turborepo newsletter and stay updated on new releases and
Expand Down Expand Up @@ -194,7 +191,7 @@ function SubmitForm() {
<div className="mt-3 rounded-md sm:mt-0 sm:ml-3 sm:flex-shrink-0">
<button
type="submit"
className="flex items-center justify-center w-full px-4 py-2 text-base font-medium text-white bg-gray-500 border border-transparent rounded-md sm:text-sm betterhover:hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-gray-800 dark:focus:ring-white"
className="flex items-center justify-center w-full px-4 py-2 text-base font-medium text-white bg-black dark:bg-white dark:text-black border border-transparent rounded-md sm:text-sm betterhover:hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-gray-800 dark:focus:ring-white dark:betterhover:hover:bg-gray-300"
>
Subscribe
</button>
Expand Down
1 change: 0 additions & 1 deletion docs/components/index.d.ts

This file was deleted.