diff --git a/src/features/encoders/mozJPEG/client/index.tsx b/src/features/encoders/mozJPEG/client/index.tsx index 780e5cb3c..a76ceebce 100644 --- a/src/features/encoders/mozJPEG/client/index.tsx +++ b/src/features/encoders/mozJPEG/client/index.tsx @@ -1,6 +1,6 @@ import { EncodeOptions, MozJpegColorSpace } from '../shared/meta'; import type WorkerBridge from 'client/lazy-app/worker-bridge'; -import { h, Component } from 'preact'; +import { h, Component, Fragment } from 'preact'; import { inputFieldChecked, inputFieldValueAsNumber, @@ -13,6 +13,8 @@ import Checkbox from 'client/lazy-app/Compress/Options/Checkbox'; import Expander from 'client/lazy-app/Compress/Options/Expander'; import Select from 'client/lazy-app/Compress/Options/Select'; import Revealer from 'client/lazy-app/Compress/Options/Revealer'; +import ModalHint from 'client/lazy-app/Modal/ModalHelpIcon'; +import * as linkImage from 'img-url:static-build/assets/link.jpg'; export function encode( signal: AbortSignal, @@ -23,6 +25,53 @@ export function encode( return workerBridge.mozjpegEncode(signal, imageData, options); } +function sampleContent() { + return ( + +

Test Suite (h1)

+

+ Let's say, hypothetically, this paragraph links to{' '} + WASSUP}> + Trellis Multipass + + . Lorem ipsum dolor sit amet consectetur adipisicing elit. Quaerat ad + maiores iure suscipit numquam voluptate. +

+

+ This is another paragraph. Notice how another uses + italics. Oh wait, I just used the <b> tag. Oh, and escaped HTML + unicode thingies. Now I'm just rambling so that this is long enough to + be multi-line, and you can see the line-height. +

+
+
+        # Which is the best programming language?
+        
+ print("Python is!") +
+ Oh and this is all in <pre> +
+

+ This text is strong. And this is in + <code>. +

+
+ Alt Text +
+ Source: Nintendo EDP / Nintendo (and this is a figcaption) +
+
+

+ That's a link.{' '} + + This is also a link + + . +

+
+ ); +} + interface Props { options: EncodeOptions; onChange(newOptions: EncodeOptions): void; @@ -114,6 +163,10 @@ export class Options extends Component { value={options.quality} onInput={this.onChange} > + Quality: diff --git a/src/static-build/assets/link.jpg b/src/static-build/assets/link.jpg new file mode 100644 index 000000000..029561e07 Binary files /dev/null and b/src/static-build/assets/link.jpg differ