fix: styling and semantic updates
This commit is contained in:
@@ -110,7 +110,7 @@ export const DocumentDropzone = ({ className, onDrop, ...props }: DocumentDropzo
|
|||||||
)}
|
)}
|
||||||
gradient={true}
|
gradient={true}
|
||||||
degrees={120}
|
degrees={120}
|
||||||
lightMode={theme === 'light'}
|
|
||||||
{...getRootProps()}
|
{...getRootProps()}
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -67,16 +67,6 @@ export const PDFViewer = ({ className, document, onPageClick, ...props }: PDFVie
|
|||||||
const pageX = event.clientX - left;
|
const pageX = event.clientX - left;
|
||||||
const pageY = event.clientY - top;
|
const pageY = event.clientY - top;
|
||||||
|
|
||||||
console.log({
|
|
||||||
pageNumber,
|
|
||||||
numPages,
|
|
||||||
originalEvent: event,
|
|
||||||
pageHeight: height,
|
|
||||||
pageWidth: width,
|
|
||||||
pageX,
|
|
||||||
pageY,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (onPageClick) {
|
if (onPageClick) {
|
||||||
onPageClick({
|
onPageClick({
|
||||||
pageNumber,
|
pageNumber,
|
||||||
@@ -137,6 +127,8 @@ export const PDFViewer = ({ className, document, onPageClick, ...props }: PDFVie
|
|||||||
<PDFPage
|
<PDFPage
|
||||||
pageNumber={i + 1}
|
pageNumber={i + 1}
|
||||||
width={width}
|
width={width}
|
||||||
|
renderAnnotationLayer={false}
|
||||||
|
renderTextLayer={false}
|
||||||
onClick={(e) => onDocumentPageClick(e, i + 1)}
|
onClick={(e) => onDocumentPageClick(e, i + 1)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
2
apps/web/src/components/(dashboard)/pdf-viewer/types.ts
Normal file
2
apps/web/src/components/(dashboard)/pdf-viewer/types.ts
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
export const PDF_VIEWER_CONTAINER_SELECTOR = '.react-pdf__Document';
|
||||||
|
export const PDF_VIEWER_PAGE_SELECTOR = '.react-pdf__Page';
|
||||||
@@ -41,16 +41,16 @@ export const Callout = () => {
|
|||||||
</span>
|
</span>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
<Button variant="outline" className="rounded-full bg-transparent backdrop-blur-sm" asChild>
|
||||||
<Link
|
<Link
|
||||||
href="https://github.com/documenso/documenso"
|
href="https://github.com/documenso/documenso"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
onClick={() => event('view-github')}
|
onClick={() => event('view-github')}
|
||||||
>
|
>
|
||||||
<Button variant="outline" className="rounded-full bg-transparent backdrop-blur-sm">
|
|
||||||
<Github className="mr-2 h-5 w-5" />
|
<Github className="mr-2 h-5 w-5" />
|
||||||
Star on Github
|
Star on Github
|
||||||
</Button>
|
|
||||||
</Link>
|
</Link>
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -114,12 +114,19 @@ export const Hero = ({ className, ...props }: HeroProps) => {
|
|||||||
</span>
|
</span>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Link href="https://github.com/documenso/documenso" onClick={() => event('view-github')}>
|
<Button
|
||||||
<Button variant="outline" className="rounded-full bg-transparent backdrop-blur-sm">
|
variant="outline"
|
||||||
|
className="rounded-full bg-transparent backdrop-blur-sm"
|
||||||
|
asChild
|
||||||
|
>
|
||||||
|
<Link
|
||||||
|
href="https://github.com/documenso/documenso"
|
||||||
|
onClick={() => event('view-github')}
|
||||||
|
>
|
||||||
<Github className="mr-2 h-5 w-5" />
|
<Github className="mr-2 h-5 w-5" />
|
||||||
Star on Github
|
Star on Github
|
||||||
</Button>
|
|
||||||
</Link>
|
</Link>
|
||||||
|
</Button>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
|
|
||||||
<motion.div
|
<motion.div
|
||||||
|
|||||||
@@ -93,14 +93,15 @@ export const PricingTable = ({ className, ...props }: PricingTableProps) => {
|
|||||||
For small teams and individuals who need a simple solution
|
For small teams and individuals who need a simple solution
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<Button className="mt-6 rounded-full text-base">
|
||||||
<Link
|
<Link
|
||||||
href="https://github.com/documenso/documenso"
|
href="https://github.com/documenso/documenso"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
className="mt-6"
|
|
||||||
onClick={() => event('view-github')}
|
onClick={() => event('view-github')}
|
||||||
>
|
>
|
||||||
<Button className="rounded-full text-base">View on Github</Button>
|
View on Github
|
||||||
</Link>
|
</Link>
|
||||||
|
</Button>
|
||||||
|
|
||||||
<div className="mt-8 flex w-full flex-col divide-y">
|
<div className="mt-8 flex w-full flex-col divide-y">
|
||||||
<p className="py-4 font-medium text-slate-900">Host your own instance</p>
|
<p className="py-4 font-medium text-slate-900">Host your own instance</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user