|
4 | 4 | <head> |
5 | 5 | <meta charset="UTF-8"> |
6 | 6 | <title>Typst for PowerPoint</title> |
7 | | - <link href="data:image/x-icon;," rel="icon"> |
8 | | - <link href="styles/main.css" rel="stylesheet"> |
9 | | - <link href="styles/file-dropzone.css" rel="stylesheet"> |
10 | | - <script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js"></script> |
| 7 | + <style> |
| 8 | + body { |
| 9 | + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; |
| 10 | + max-width: 600px; |
| 11 | + margin: 0 auto; |
| 12 | + padding: 2rem; |
| 13 | + line-height: 1.6; |
| 14 | + } |
| 15 | + |
| 16 | + h1 { |
| 17 | + color: #333; |
| 18 | + } |
| 19 | + |
| 20 | + a { |
| 21 | + color: #0066cc; |
| 22 | + text-decoration: none; |
| 23 | + } |
| 24 | + |
| 25 | + a:hover { |
| 26 | + text-decoration: underline; |
| 27 | + } |
| 28 | + </style> |
11 | 29 | </head> |
12 | 30 |
|
13 | 31 | <body> |
14 | | - <div class="controls"> |
15 | | - <div class="control-group"> |
16 | | - <label for="fontSize" title="Font size in points (pt)">Size</label> |
17 | | - <input id="fontSize" type="number" min="1" step="1.0" value="28"> |
18 | | - </div> |
19 | | - <div class="control-group checkbox-group fill-color-group"> |
20 | | - <label title="Shape fill color"> |
21 | | - <input id="fillColorEnabled" type="checkbox" checked> |
22 | | - <span>Fill</span> |
23 | | - </label> |
24 | | - <!-- eslint-disable-next-line @html-eslint/use-baseline --> |
25 | | - <input id="fillColor" type="color" value="#000000"> |
26 | | - </div> |
27 | | - <div class="control-group checkbox-group"> |
28 | | - <label title="Automatically wrap your input in display math delimiters ($)"> |
29 | | - <input id="mathModeEnabled" type="checkbox" checked> |
30 | | - <span>Only Math</span> |
31 | | - </label> |
32 | | - </div> |
33 | | - </div> |
34 | | - <div id="inputWrapper"> |
35 | | - <div id="mathDelimiterTop" class="math-delimiter">$</div> |
36 | | - <textarea id="typstInput" placeholder="Enter Typst code, e.g. a^2 + b^2 = c^2"></textarea> |
37 | | - <div id="mathDelimiterBottom" class="math-delimiter">$</div> |
38 | | - </div> |
39 | | - |
40 | | - <div id="previewContainer"> |
41 | | - <span id="previewLabel">Preview</span> |
42 | | - <div id="previewContent"></div> |
43 | | - </div> |
44 | | - |
45 | | - <div id="diagnosticsContainer" style="display: none;"> |
46 | | - <span id="diagnosticsLabel">Diagnostics</span> |
47 | | - <div id="diagnosticsContent"></div> |
48 | | - </div> |
49 | | - |
50 | | - <button id="insertBtn" disabled></button> |
51 | | - <button id="bulkUpdateBtn" style="display: none;">Update font size</button> |
52 | | - <div id="status" class="status"></div> |
53 | | - |
54 | | - <div id="themeToggle"> |
55 | | - <label> |
56 | | - <input id="darkModeToggle" type="checkbox" alt="Toggle dark mode" checked> |
57 | | - <span class="slider"></span> |
58 | | - </label> |
59 | | - </div> |
60 | | - |
61 | | - <div class="file-dropzone"> |
62 | | - <div class="dropzone-container"> |
63 | | - <label id="dropzoneLabel" class="dropzone-label" |
64 | | - alt="Select a Typst file to generate an equation from it"> |
65 | | - <div class="dropzone-icon">📁</div> |
66 | | - <div class="dropzone-text">Drop a Typst file here</div> |
67 | | - <div class="dropzone-subtext">or click to browse</div> |
68 | | - <input id="fileInput" type="file" class="dropzone-input" accept=".typ,.txt"> |
69 | | - </label> |
70 | | - |
71 | | - <div id="fileInfo" class="file-info"> |
72 | | - <div class="file-icon">📄</div> |
73 | | - <div id="fileName"></div> |
74 | | - </div> |
75 | | - |
76 | | - <button id="generateFromFileBtn" style="display: none;"></button> |
77 | | - </div> |
78 | | - </div> |
79 | | - |
80 | | - <script type="module" defer src="src/main.js"></script> |
| 32 | + <h1>Typst for PowerPoint</h1> |
| 33 | + <p> |
| 34 | + Use Typst to easily insert beautiful equations into your |
| 35 | + PowerPoint presentations. See the project on |
| 36 | + <a href="https://github.com/splines/typst-powerpoint">GitHub</a>. |
| 37 | + Right not it is in early preview, the Add-in is not yet available on the |
| 38 | + PowerPoint Office Add-in Marketplace. |
| 39 | + </p> |
| 40 | + <p> |
| 41 | + The PowerPoint Add-in will connect to this static page in order to display |
| 42 | + the Add-in UI. All data stays local to your machine. In fact, there is no |
| 43 | + backend at all as this static site is hosted on GitHub Pages. |
| 44 | + </p> |
81 | 45 | </body> |
82 | 46 |
|
83 | 47 | </html> |
0 commit comments