website: show html code example first

makes more sense as more people will use the HTML than the react code
This commit is contained in:
Emmanuel Pelletier
2024-05-15 07:47:43 +02:00
parent 84bcb5181a
commit 3fcc774954

View File

@@ -140,17 +140,16 @@ export default function HomepageGenerator() {
{!!codeData && ( {!!codeData && (
<> <>
<div>
<h2 style={{ marginTop: "1.5em" }}>Code React correspondant</h2>
<Code language="jsx">{getReactMarkup(codeData)}</Code>
</div>
<div> <div>
<h2 style={{ marginTop: "1.5em" }}>Code HTML correspondant</h2> <h2 style={{ marginTop: "1.5em" }}>Code HTML correspondant</h2>
<Code language="html" fixedHeight> <Code language="html" fixedHeight>
{getHTMLMarkup(codeData)} {getHTMLMarkup(codeData)}
</Code> </Code>
</div> </div>
<div>
<h2 style={{ marginTop: "1.5em" }}>Code React correspondant</h2>
<Code language="jsx">{getReactMarkup(codeData)}</Code>
</div>
</> </>
)} )}
</div> </div>