chore: run deno fmt with new deno version (#562)

This commit is contained in:
Luca Casonato
2022-07-30 14:59:35 +00:00
committed by GitHub
parent d9e5a71468
commit b39608890e
5 changed files with 19 additions and 22 deletions
+1 -2
View File
@@ -9,8 +9,7 @@ export function RoundedButton(props: h.JSX.HTMLAttributes<HTMLButtonElement>) {
touchAction: "manipulation",
}}
{...props}
class={tw
`p-3 border border-transparent rounded-full text-white bg-green(500 hover:600) focus:(outline-none ring(2 offset-2 green-500)) disabled:(bg-green-200 cursor-default)`}
class={tw`p-3 border border-transparent rounded-full text-white bg-green(500 hover:600) focus:(outline-none ring(2 offset-2 green-500)) disabled:(bg-green-200 cursor-default)`}
/>
);
}
+4 -4
View File
@@ -18,10 +18,10 @@ const LINKS = [
];
export default function Footer() {
const footer = tw
`border(t-2 gray-200) bg-gray-100 h-32 flex flex-col gap-4 justify-center`;
const inner = tw
`mx-auto max-w-screen-lg flex items-center justify-center gap-8`;
const footer =
tw`border(t-2 gray-200) bg-gray-100 h-32 flex flex-col gap-4 justify-center`;
const inner =
tw`mx-auto max-w-screen-lg flex items-center justify-center gap-8`;
const linkStyle = tw`text-gray-600 hover:underline`;
const copyright = tw`text(gray-600 center)`;
return (
+1 -2
View File
@@ -14,8 +14,7 @@ export default function Counter(props: CounterProps) {
const [count, setCount] = useState(props.start);
return (
<div
class={tw
`bg-gray-100 p-4 border border-gray-200 flex items-center justify-around`}
class={tw`bg-gray-100 p-4 border border-gray-200 flex items-center justify-around`}
>
<RoundedButton
title="Subtract 1"
+7 -8
View File
@@ -90,8 +90,8 @@ function Logo() {
function Header() {
const header = tw`mx-auto max-w-screen-lg flex gap-3 justify-between`;
const sidebarButton = tw
`px-4 py-4 md:hidden border(l-2 green-200) flex items-center hover:bg-green-100`;
const sidebarButton =
tw`px-4 py-4 md:hidden border(l-2 green-200) flex items-center hover:bg-green-100`;
return (
<div class={tw`bg-green-300`}>
<header class={header}>
@@ -123,8 +123,8 @@ function Header() {
}
function Title() {
const title = tw
`text(2xl gray-900) tracking-tight font-extrabold flex items-center gap-1`;
const title =
tw`text(2xl gray-900) tracking-tight font-extrabold flex items-center gap-1`;
const pageName = tw`font-light block pb-[1px]`;
const subtitle = tw`text(sm gray-700)`;
return (
@@ -166,8 +166,8 @@ function Main(props: { path: string; page: Page }) {
function MobileSidebar(props: { path: string }) {
const container = tw`fixed inset-0 flex z-40 hidden` + " toggled";
const backdrop = tw`absolute inset-0 bg-gray-600 opacity-75`;
const sidebar = tw
`relative flex-1 flex flex-col w-[16rem] h-full bg-white border(r-2 gray-100)`;
const sidebar =
tw`relative flex-1 flex flex-col w-[16rem] h-full bg-white border(r-2 gray-100)`;
const heading = tw`p-4 border(b-2 gray-100) bg-green-300`;
const items = tw`pt-2 pb-16 px-4 overflow-x-auto`;
return (
@@ -197,8 +197,7 @@ function MobileSidebar(props: { path: string }) {
function DesktopSidebar(props: { path: string }) {
return (
<nav
class={tw
`w-[16rem] flex-shrink-0 hidden md:block py-8 pr-4 border(r-2 gray-100)`}
class={tw`w-[16rem] flex-shrink-0 hidden md:block py-8 pr-4 border(r-2 gray-100)`}
>
<DocsSidebar path={props.path} />
</nav>
+6 -6
View File
@@ -57,11 +57,11 @@ export default function MainPage(props: PageProps) {
}
function Hero() {
const container = tw
`w-full flex justify-center items-center flex-col bg-green-300`;
const container =
tw`w-full flex justify-center items-center flex-col bg-green-300`;
const nav = tw`flex justify-end items-center bg-green-300`;
const a = tw
`border(1 black) inline-flex items-center h-10 px-4 m-4 text-black bg-transparent rounded hover:bg-white`;
const a =
tw`border(1 black) inline-flex items-center h-10 px-4 m-4 text-black bg-transparent rounded hover:bg-white`;
return (
<Fragment>
@@ -92,8 +92,8 @@ function ListItem(props: ListItemProps) {
}
function Intro() {
const title = tw
`py-4 text(4xl sm:4xl lg:4xl gray-900 center) sm:tracking-tight font-extrabold`;
const title =
tw`py-4 text(4xl sm:4xl lg:4xl gray-900 center) sm:tracking-tight font-extrabold`;
return (
<section