Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Convert static html page to Blazor Page

$
0
0

I have build a static website, a long time ago, with Nicepage.

But i want to convert this project into a Blazor project, so i can use some C# code.

To achieve this, i copy/paste the code of a html page, into a razor file, except the script tags (i put them into index.html).

The issue is that elements are not well render.

For example, i have an image that i want to be visible only on desktop, and not on mobile. After i switch the project on Blazor, the image is not visible on desktop and mobile. I saw that nicepage as a global css file, and a specific css file for the html page. So i add them into the razor page

<link rel="stylesheet" href="nicepage.css" media="screen"> <link rel="stylesheet" href="home.css" media="screen">

But nothing happened.

So i would like to know if anyone has managed to create html page with Nicepage, and then use it in a Blazor project?

Thank you.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>