Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

174
Visualizações
How do I embed Github skyline in dark mode?

I've successfully added a github skyline into an iFrame on my site. However, it is not dark mode as specified in the url, and when it attempts to load the dark mode, three.js warnings are being thrown to the console.

I've been following this repo.

Here is how I load it into the iFrame:

<script lang="ts">


import "./styles/global.css";
  import { onMount } from "svelte";
  import { registerSW } from "virtual:pwa-register";
  import ImageScroller from "./lib/components/ImageScroller.svelte";


  const BASE_EMBED_URL =
    "https://viewscreen.githubusercontent.com/view/solid?color_mode=dark&url=https%3a%2f%2fraw.githubusercontent.com";
    
  const myRepoUrl = `${BASE_EMBED_URL}/MikeyGInTheMorning/self-titled/dev/public/github/MikeyGInTheMorning-2022.stl`;

  onMount(() => {
    registerSW();
  });
</script>

<div class="flex flex-col">
  <div class="relative h-500vh">
    <ImageScroller />
  </div>
  <div class="w-full z-10">
    <iframe
      width="50%"
      height="500rem"
      title="Github Skyline"
      id="mikes-github-skyline"
      frameborder="0"
      scrolling="no"
      src={myRepoUrl}
    />
  </div>

  <div class="bg-yellow">dsf</div>
  <div class="bg-green">adsf</div>
</div>

And here is what it looks like loaded:

site loaded

Finally, here is what I expected:

expectation

I did manage to check the url I was passing into the iFrame using a normal browser tab, and it still produces the same error. Link.

How do I begin to fix this?

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda