Code Monkey home page Code Monkey logo

Comments (8)

granicz avatar granicz commented on June 27, 2024 1

Basically, you can either 1) change the current index.html and add your own styling (CSS) and JS, or 2) take a different HTML theme/template and embed the WebSharper.UI templating markers in it (placeholders, inner templates, event handlers) to fit the F# code (or change the code as per your needs).

from sitefi.

AngelMunoz avatar AngelMunoz commented on June 27, 2024 1

@ShalokShalom I'm just speculating here but
the whole design of the website is defined in the index.html file, it's being used in this line https://github.com/granicz/SiteFi/blob/master/src/Hosted/Main.fs#L125

if you wanted to introduce themes you'd need to provide a different index.html and also update the Main.fs file to match your template with the HTML Holes you may have introduced or changed

Edit:
You could also just switch the index file's contents with different layouts and theming things, without actually changing the HTML wholes and no changes would be needed to the Main.fs file

from sitefi.

granicz avatar granicz commented on June 27, 2024

Sure, I'd put JS/CSS artifacts in separate subfolders and reference them accordingly from the main template file.

from sitefi.

ShalokShalom avatar ShalokShalom commented on June 27, 2024

How do I do this?

from sitefi.

ShalokShalom avatar ShalokShalom commented on June 27, 2024

That doesnt really help me further.

from sitefi.

granicz avatar granicz commented on June 27, 2024

Ok, let's take a step back: tell me what you are doing and what you get that is unexpected, and I will try to help.

from sitefi.

ShalokShalom avatar ShalokShalom commented on June 27, 2024

I dont know, where to fill that in.
CSS and JS in the index.html or the WebSharper specifics into the new HTML stuff.
While I dont know where to start, and what to fill in at which place and so on.

from sitefi.

ShalokShalom avatar ShalokShalom commented on June 27, 2024

I think I solved this

from sitefi.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.