diff --git a/frontend/src/app/doc-converter/page.tsx b/frontend/src/app/doc-converter/page.tsx index 4af8bb0..c275ce7 100644 --- a/frontend/src/app/doc-converter/page.tsx +++ b/frontend/src/app/doc-converter/page.tsx @@ -5,11 +5,13 @@ import Navbar from "../../components/Navbar"; import Footer from "../../components/Footer"; import Button from "../../components/Button"; import Link from "next/link"; +import { ChevronDown, ChevronUp } from "lucide-react"; export default function Home() { const [file, setFile] = useState(null); const [downloadUrl, setDownloadUrl] = useState(""); const [loading, setLoading] = useState(false); + const [tableOpen, setTableOpen] = useState(false); const handleFileChange = (event: React.ChangeEvent) => { if (event.target.files && event.target.files.length > 0) { @@ -57,36 +59,14 @@ export default function Home() {
-

doc-to-pdf

- - - - - - - - - - - - - - - - - - - - - -
Input FormatOutput Format
docxpdf
docpdf
odtpdf
+

doc-converter

-
+
{downloadUrl ? (
+ { + // TODO: Fix Table Head widths (fixed and the same as the max body width) + // TODO: Add hover animation to table head (scale-110, blue text, blue border) + // TODO: Fix general site height and add scrolling + // TODO: Add animated pop in for the table body + } +
+
setTableOpen(!tableOpen)} + > + + + + + + + +
📥 Input Format +

📤 Output Format

+ {tableOpen ? ( + + ) : ( + + )} +
+
+ + {tableOpen && ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
.doc (MS Word) + .pdf, .docx, .odt, .txt, .rtf, .html, .epub +
.docx (MS Word) + .pdf, .odt, .txt, .rtf, .html, .epub +
+ .odt (OpenDocument Text) + + .pdf, .doc, .docx, .txt, .rtf, .html, .epub +
+ .rtf (Rich Text Format) + + .pdf, .doc, .docx, .odt, .txt, .html +
.txt (Text) + .pdf, .doc, .docx, .odt, .txt, .html +
.html (Webseite) + .pdf, .doc, .docx, .odt, .rtf, .txt +
.epub (E-Book) + .pdf, .doc, .docx, .odt, .rtf, .txt +
.xls (MS Excel).pdf, .xlsx, .ods, .csv
.xlsx (MS Excel).pdf, .xls, .ods, .csv
+ .ods (OpenDocument Spreadsheet) + .pdf, .xls, .xlsx, .csv
+ .csv (Comma-Separated Values) + .pdf, .xls, .xlsx, .ods
.ppt (MS PowerPoint).pdf, .pptx, .odp
.pptx (MS PowerPoint).pdf, .ppt, .odp
+ .odp (OpenDocument Presentation) + .pdf, .ppt, .pptx
+ )} +