add print preview button
This commit is contained in:
parent
d4851c624f
commit
72c0954dd6
@ -1,4 +1,5 @@
|
||||
import { LinkIcon } from "@heroicons/react/20/solid";
|
||||
import { PrinterIcon } from "@heroicons/react/24/solid";
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/router";
|
||||
import ResourceTable from "~/components/ResourceTable";
|
||||
@ -32,7 +33,8 @@ const Resources = () => {
|
||||
<>
|
||||
<Header />
|
||||
<main className="mx-auto my-6 max-w-6xl md:px-4">
|
||||
<div className="mb-2 space-y-2 p-2 sm:mb-4 sm:p-4">
|
||||
<div className="mb-2 p-2 sm:mb-4 sm:p-4 flex flex-row justify-between">
|
||||
<section className="space-y-2">
|
||||
<h1 className="text-3xl font-bold">All Resources</h1>
|
||||
<div className="">
|
||||
<p className="inline">Fill out the </p>
|
||||
@ -48,6 +50,19 @@ const Resources = () => {
|
||||
for a list of auditory training resource recommendations.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="mt-auto">
|
||||
<button
|
||||
onClick={() => {
|
||||
window.print();
|
||||
}}
|
||||
className="inline-block space-x-2 rounded-md border border-neutral-900 bg-yellow-200 px-4 py-2 align-middle font-semibold shadow shadow-black/50 duration-200 ease-out hover:bg-yellow-300 hover:shadow-md"
|
||||
>
|
||||
<span className="inline">Print Results</span>
|
||||
<PrinterIcon className="inline w-6" />
|
||||
</button>
|
||||
</section>
|
||||
</div>
|
||||
<ResourceTable
|
||||
resourcesPerPage={queryData.perPage}
|
||||
|
Loading…
x
Reference in New Issue
Block a user