No one actually addressed the other errors in the responses. The problem is that your links to the CSS and JS files are wrong.
It is something like (if you inspect the network) or check the index.html file.
https://USERNAME.github.io/assets/index-97b0971f.css
and it should have the repository name on it. Therefore the correct link should be:
https://USERNAME.github.io/REPOSITORY/assets/index-97b0971f.css
If you are using some "frontend tooling" like Vite.js
you should go to the vite.config.js
and add the property base
like the example below:
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
base: "/tweak/",
//...whatever you had here remains the same
});