Error: {error}
} + > + ); +}; + +export default FileInput; diff --git a/apps/website-ssr/src/componentsNew/common/wrappers/qrcodeDisplay/qrCode.tsx b/apps/website-ssr/src/componentsNew/common/wrappers/qrcodeDisplay/qrCode.tsx new file mode 100644 index 0000000..926c23d --- /dev/null +++ b/apps/website-ssr/src/componentsNew/common/wrappers/qrcodeDisplay/qrCode.tsx @@ -0,0 +1,161 @@ +import Details from '@/common/wrappers/qrcodeDisplay/details'; +import DownloadButton from '@/common/wrappers/qrcodeDisplay/downloadButton'; +import FileInput from '@/common/wrappers/qrcodeDisplay/inputFile'; +import ShapesSwitcher from '@/common/wrappers/qrcodeDisplay/shapesSwitcher'; +import { ColorsTabs } from '@/common/wrappers/qrcodeDisplay/tabs/colorsTabs'; +import { ColorTypes } from '@/context/colorTypes'; +import { QrStyleContext } from '@/context/index'; +import QRCodeStyling, { + CornerDotType, + CornerSquareType, + DotType, + DrawType, + ErrorCorrectionLevel, + FileExtension, + Mode, + Options, + TypeNumber, +} from 'qr-code-styling'; +import React, { useContext, useEffect, useRef, useState } from 'react'; + +const QRCode = () => { + const { state } = useContext(QrStyleContext); + + const toBase64 = (file: File) => { + return new Promise+ + Dot Type customizations + +
++ * Dot types "Rounded" and{' '} + "Classy" can alter the QR code's readability. +
+Please enter a valid email address
+ )} ++ Your QR code will be generated automatically once you fill in all three fields{' '} + with a valid email address +
+ > + ); +}; + +export default EmailInput; diff --git a/apps/website-ssr/src/componentsNew/titleSection/input/index.tsx b/apps/website-ssr/src/componentsNew/titleSection/input/index.tsx new file mode 100644 index 0000000..14afe03 --- /dev/null +++ b/apps/website-ssr/src/componentsNew/titleSection/input/index.tsx @@ -0,0 +1,24 @@ +import TextInput from '@/components/titleSection/input/textInput'; +import { InputProps } from '@/typings/typings'; +import dynamic from 'next/dynamic'; + +const EmailInput = dynamic(() => import('@/components/titleSection/input/emailInput'), { + ssr: false, +}); + +type Input = { + [key: string]: JSX.Element; +}; + +const Input = ({ typeOfInput }: InputProps) => { + const inputs: Input = { + text:Your QR code will be generated automatically
++ + + + + + + + + + + + +
+ + + + + ++Sobre | +Tecnologias | +Prรฉ requisitos | +Comeรงando | +Comandos | +Saiba Mais | +Deploy via Vercel | +Autor + +
+ +