Is it advisable for Prepros to compile my SASS into CSS on a Github.io page? If it is, what could be the potential reasons for my SASS styling not functioning properly on the Github.io page?

Once I finished styling my project locally, I pushed it to GitHub. However, upon publishing it to a GitHub.io page, none of my stylings appeared. Have I misconstrued the purpose and function of Prepros, or is there another mistake I might be making? What specific information do you require in order to identify the underlying issue?

This is the content of my prepros-6.config file:

 {
  "name": "landingPage",
  "firstRun": false,
  // More configurations listed here
}

Answer №1

When it comes to Github pages, they are designed to only serve static files such as *.html, *.css, and *.js. Fortunately, Github pages support the use of a static site generator known as Jekyll. This means you can easily push your project to Github and it will automatically build.

It's important to note that if you are relying on Github to compile your SASS files using Prepros, this won't work. You'll need to compile the files on your own machine and then push the static files to Github.

If you're looking for more information on how Github handles static files and website building, you can check out their official documentation here on pages.github.com

Answer №2

No, Github pages are unable to process sass using prepros. This functionality is only available with jekyll.

However, the issue you're facing is that the path to your css file leads to a 404 error page on this link.

https://lenocam.github.io/landing-page/ + /styles/style.css

= 404 when trying to access https://lenocam.github.io/styles/style.css

To resolve this, try referencing your css file using a relative path:

<link rel="stylesheet" href="./styles/style.css">

The same applies for your images. For example:

<img src="./images/barrels.jpg" alt="">

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

How to utilize CSS variable references across different files in React?

In my React project, I have integrated multiple variables that I would like to be able to access from other CSS files in order to maintain a unified codebase for specific UI configurations such as colors and buttons. However, I am uncertain whether these ...

CSS: Inject Text at the End of Input Text's Value

Hey there, I'm facing a minor issue. The user wants to add some funny text to an input field if a specific condition is met. For example: Normal Condition: the input field shows "#{model.user}" Abnormal condition: the input field should display "# ...

Having trouble displaying SVG elements in Material UI

Currently, I am faced with an issue while trying to display a .svg file in the header of a drawer using Material-UI and create-react-app. Instead of the expected .svg image, all I see is a broken image rendering. Any assistance on resolving this problem ...

Give the inner container the ability to expand to fill the remaining space

After formatting my HTML code as shown below: https://i.sstatic.net/oaVVg.png The blue rectangle takes up 70% of the outer container's width, while the green rectangle occupies the remaining 30%. My goal is to have the blue rectangle expand to fill ...

Looking to update the background color of a div every 3 seconds?

Every 3 seconds, I need to change the background color of each div. To do this, I attempted to modify the values in the color array every 3 seconds. For example, the value at index 0 (which is "red") would move to index 1, then the value at index 1 would ...

Font sizes for inline elements can be customized with gaps

Having trouble with setting font-size styles for inline elements, causing unexpected gaps to appear. Despite finding related questions on this issue, I have yet to discover a solution that fits my specific case. Here is the code in question: <!docty ...

What is the best way to include a final tag on its own line?

I'm trying to add a new line for "Payment Remaining", but it doesn't go to the next line as expected. I need the final text to be on a separate line, Payment Remaining #authorization-wizard-start-work .btn-group label.active { color: #009 ...

What is the best way to create an L shape using CSS?

I am currently working on achieving a unique style using CSS. https://i.sstatic.net/bJlok.png My progress so far: .file { width: 279px; height: 326px; background: linear-gradient(-135deg, transparent 66px, #A1A1A4 40px); position: relative; } ...

Retrieve the color information stored in the database and display each color against a colorful background

load @foreach ($colors as $color) <tr> <th scope="row">{{ $color->code }}</th> <td>{{ $color->name } ...

Utilizing the CSS grid framework to efficiently create repetitive rows and columns in code

When I work with CSS frameworks like Bootstrap or Materialize, I often find myself repeatedly typing the same HTML code: <div class="row"> <div class="col s12"> <!-- Some text/ a button / something --> </div> </d ...

Issues with Bootstrap indicators and slide controls functionality are being experienced

I am currently exploring a method to create a carousel with thumbnails by referring to this example. I have followed their instructions closely, but unfortunately, clicking on the thumbnails and indicators does not seem to be working as expected. The onl ...

The footer is anchored at the bottom on one page but mysteriously relocates to the center on the next page

I've been working on creating a footer for my Angular application and here's the code for it: // HTML <footer class="footer"> // code for footer </footer> // LESS .footer { position: absolute; bottom: 0; width: 100% ...

How can jQuery be used to target a specific class based on its inner value?

For instance, within a div of the same class, there are 6 "p" tags - some containing 'member' text and others not. I aim to use jQuery to select all "p" tags with 'member' as their inner text and apply an additional class to them. Here ...

Limitations of HTML and CSS on Android browsers

i have developed a website that can be found at this address : the site is experiencing some issues on android tablets browsers for instance : i suspect that some divs with the property margin:0 auto are not being centered on the page i am curious to k ...

Horizontal image scrolling problem across different browsers

Check out my Fiddle. I'm having trouble with scrolling on different browsers. In Chrome, the scroll behaves as expected and stops when the content ends. However, in Firefox, it keeps scrolling even after reaching the end despite setting a fixed width ...

Text overlay effect on hovering an image

I am struggling to add text to a photo and make the entire photo clickable with a link. I have already applied a darkening effect that I want to keep, but now I need to insert text on top of it. It is important for me to maintain the current dimensions and ...

"Employing the ScrollSpy feature in Bootstrap allows you to effortlessly monitor

Recently, I came across a document containing Bootstrap 4 code like the following: <div className="container"> <nav class="navbar navbar-expand-lg navbar-light"> <a class="navbar-brand active" aria-current="true" href="/"> ...

Inline-block display for file input button in Bootstrap 4 style

I have added an input file button and I am trying to make it full width using display:block. Even after hiding the input field, I am not seeing any difference. Here is the relevant code snippet: <link href="https://stackpath.bootstrapcdn.com/bootstra ...

The positioning attribute and flexible height in CSS are essential for creating dynamic

My goal is to create a layout with 3 DIVs inside a container, similar to table rows. top {height = 100px} / middle {height = dynamic} / bottom {height = 100px} I am trying to figure out the best approach to make the height of the middle div dynamic whi ...

The issue of CSS percentages not functioning properly in Internet Explorer 9 while working seamlessly in all other browsers

Currently, I am creating a unique theme with inline CSS for my first website located at . I have conducted testing on various browsers such as Firefox, Opera, and Chrome, only to discover that most of the CSS is not displaying correctly in the latest vers ...