Skip to content

Commit 7b30999

Browse files
committed
More condensed layout
1 parent 9136f8e commit 7b30999

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/index.jsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "./index.css";
44

55
import { useState } from "react";
66

7-
import { Popover } from "@headlessui/react";
7+
import { Popover, PopoverButton, PopoverPanel } from "@headlessui/react";
88
import { InformationCircleIcon } from "@heroicons/react/20/solid";
99
import { Filter } from "./components/filter";
1010
import PluginList from "./components/pluginList";
@@ -16,9 +16,9 @@ export function App() {
1616
const [sortBy, setSortBy] = useState("Order of Goodness");
1717
return (
1818
<main className="bg-gray-800 w-screen h-screen text-gray-200 overflow-hidden ">
19-
<div className="p-4 lg:p-8 flex flex-col gap-8 h-full">
20-
<div className="text-center flex flex-col gap-4 items-center justify-center mt-4">
21-
<h1 className="text-3xl font-bold lg:text-5xl max-w-xl">Airwindows Cheatsheet</h1>
19+
<div className="p-4 lg:p-8 flex flex-col gap-6 h-full">
20+
<div className="text-center flex flex-col gap-4 items-center justify-center">
21+
<h1 className="text-3xl font-bold lg:text-4xl max-w-xl">Airwindows Cheatsheet</h1>
2222
<Popover className="relative">
2323
<div className="text-gray-400 max-w-xl">
2424
Cheatsheet for the <strong className="text-white bg-green-700 saturate-50 px-1 ">{db.plugins.length}</strong>{" "}
@@ -28,11 +28,11 @@ export function App() {
2828
plugins. This project aims to build an automated frontend for the{" "}
2929
<a href="https://www.airwindows.com/wp-content/uploads/Airwindopedia.txt">airwindowpedia</a> documentation file.
3030
<span className="ml-2">
31-
<Popover.Button>
31+
<PopoverButton>
3232
<InformationCircleIcon className="h-4 w-4"></InformationCircleIcon>
33-
</Popover.Button>
33+
</PopoverButton>
3434

35-
<Popover.Panel className="absolute z-10 bg-gray-900 rounded border-2 border-gray-600 shadow-2xl mt-4">
35+
<PopoverPanel className="absolute z-10 bg-gray-900 rounded border-2 border-gray-600 shadow-2xl mt-4">
3636
<div className="text-sm p-16 text-gray-300 italic text-center">
3737
The content of airwindopedia (used in this page) is property of Chris Johnson © 2023{" "}
3838
<a href="https://www.airwindows.com" target="_blank" rel="noreferrer">
@@ -49,7 +49,7 @@ export function App() {
4949
<strong>Remember</strong>: {'"In a mix, no one can hear your screen."'}
5050
</p>
5151
</div>
52-
</Popover.Panel>
52+
</PopoverPanel>
5353
</span>
5454
</div>
5555
</Popover>

0 commit comments

Comments
 (0)