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:
@@ -140,17 +140,16 @@ export default function HomepageGenerator() {
|
||||
|
||||
{!!codeData && (
|
||||
<>
|
||||
<div>
|
||||
<h2 style={{ marginTop: "1.5em" }}>Code React correspondant</h2>
|
||||
<Code language="jsx">{getReactMarkup(codeData)}</Code>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h2 style={{ marginTop: "1.5em" }}>Code HTML correspondant</h2>
|
||||
<Code language="html" fixedHeight>
|
||||
{getHTMLMarkup(codeData)}
|
||||
</Code>
|
||||
</div>
|
||||
<div>
|
||||
<h2 style={{ marginTop: "1.5em" }}>Code React correspondant</h2>
|
||||
<Code language="jsx">{getReactMarkup(codeData)}</Code>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user