diff --git a/www/components/Button.tsx b/www/components/Button.tsx index 53be18c9..d94503d7 100644 --- a/www/components/Button.tsx +++ b/www/components/Button.tsx @@ -9,8 +9,7 @@ export function RoundedButton(props: h.JSX.HTMLAttributes) { 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)`} /> ); } diff --git a/www/components/Footer.tsx b/www/components/Footer.tsx index 502664e0..952d3383 100644 --- a/www/components/Footer.tsx +++ b/www/components/Footer.tsx @@ -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 ( diff --git a/www/islands/Counter.tsx b/www/islands/Counter.tsx index 0edf21c5..2b884193 100644 --- a/www/islands/Counter.tsx +++ b/www/islands/Counter.tsx @@ -14,8 +14,7 @@ export default function Counter(props: CounterProps) { const [count, setCount] = useState(props.start); return (
@@ -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 ( diff --git a/www/routes/index.tsx b/www/routes/index.tsx index 40904232..5ad82e36 100644 --- a/www/routes/index.tsx +++ b/www/routes/index.tsx @@ -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 ( @@ -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 (