Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EdamAme-x committed Nov 19, 2023
1 parent 4e50112 commit 1770c14
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Binary file modified src/public/background-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/public/background-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/public/background.png
Binary file not shown.
10 changes: 5 additions & 5 deletions src/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ import Layout from '../layout/Layout.astro';

<Layout>
<div style={{
background: "url('/background.png')",
background: "url('/background-dark.png')",
backgroundSize: "cover",
}} class="min-h-screen flex items-center justify-center" id="hero">

<div>
<div class="scale-150 md:scale-[1]">
<div class="text-5xl md:text-4xl font-ultrabold font-mont">Hello JavaScriptist 👋</div>
<h1 class="text-xl md:text-lg">JavaScript Professional Certification Examination</h1>
<div class="hidden">
<h2>JSPCE - JavaScript Professional Certification Examination</h2>
<h3>JavaScript 資格 試験</h3>
</div>
<div class="flex items-center justify-center gap-4 space-x-4 mt-[2rem]">
<a href="#" class="bg-[#E0234E] dark:bg-[#E0234E] font-mont text-2xl md:text-xl text-white rounded-lg px-3 py-2 transition duration-150">Get Started</a>
<a href="/about" class="bg-[#E0234E] dark:bg-[#E0234E] font-mont text-2xl md:text-xl text-white rounded-lg px-3 py-2 transition duration-150">Get Started</a>
</div>
</div>
</div>
Expand All @@ -29,10 +29,10 @@ import Layout from '../layout/Layout.astro';
const hero = document.getElementById("hero");

if (currentTheme === "dark") {
hero.style.background = "url('/background.png')";
hero.style.background = "url('/background-dark.png')";
hero.style.backgroundSize = "cover";
}else {
hero.style.background = "url('/background-dark.png')";
hero.style.background = "url('/background-light.png')";
hero.style.backgroundSize = "cover";
}
})
Expand Down

0 comments on commit 1770c14

Please sign in to comment.