Need a QR Code?

Need a QR Code?

2024, Nov 14    

Need to add a scannable QR Code to your website? Whether it's for a restaurant menu, event ticket, or any other use case where you want to make your content easily accessible via mobile devices, the Roq QR Code plugin has you covered.

Step 1: Add the QRCode plugin in your dependencies file:

 <dependency>
    <groupId>io.quarkiverse.roq</groupId>
    <artifactId>quarkus-roq-plugin-qrcode</artifactId>
    <version>...</version>
</dependency>

Step 2: Add the QRCode tag to your template with all the parameters you need:

{#qrcode value="https://luigis.com/menu/" alt="Luigi's Menu" foreground="#000066" background="#FFFFFF" width=300 height=300 /}

It will render a QR Code like this:

Luigi's Menu