changeset 85:0618addd5438

Updated so CSS and JS works for non root path.
author June Park <parkjune1995@gmail.com>
date Thu, 01 Jan 2026 13:16:30 -0800
parents bcc76a156aea
children 431df06b1a9b
files .claude/settings.local.json mrjunejune/src/parts/base_head.html mrjunejune/src/parts/header.html mrjunejune/src/tools/markdown_to_html/index.css
diffstat 4 files changed, 5 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/.claude/settings.local.json	Thu Jan 01 13:01:10 2026 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-{
-  "permissions": {
-    "allow": [
-      "Bash(ls:*)",
-      "Bash(hg status:*)",
-      "Bash(hg:*)",
-      "Bash(sqlite3:*)",
-      "Bash(bazel build:*)"
-    ]
-  }
-}
--- a/mrjunejune/src/parts/base_head.html	Thu Jan 01 13:01:10 2026 -0800
+++ b/mrjunejune/src/parts/base_head.html	Thu Jan 01 13:16:30 2026 -0800
@@ -3,6 +3,6 @@
 <link rel="preload" href="/fonts/atkinson-regular.woff" as="font" type="font/woff" crossorigin>
 <link rel="preload" href="/fonts/atkinson-bold.woff" as="font" type="font/woff" crossorigin>
 
-<link rel="preload" href="base.css" as="style" />
-<link rel="stylesheet" href="base.css" />
+<link rel="preload" href="/base.css" as="style" />
+<link rel="stylesheet" href="/base.css" />
 
--- a/mrjunejune/src/parts/header.html	Thu Jan 01 13:01:10 2026 -0800
+++ b/mrjunejune/src/parts/header.html	Thu Jan 01 13:16:30 2026 -0800
@@ -28,8 +28,6 @@
   header {
     margin: auto;
     padding: 1.5em 1em;
-    background: var(--header-background);
-    color: var(--header-color);
     font-family: "Atkinson", sans-serif;
     box-shadow: 0 2px 8px rgba(var(--black), 5%);
     width: 720px;
@@ -137,5 +135,5 @@
     <a href="/"><img id="logo" src="/public/logo_white.png"> </a>
   </h1>
 </header>
-<script src="index.js"></script>
+<script src="/index.js"></script>
 
--- a/mrjunejune/src/tools/markdown_to_html/index.css	Thu Jan 01 13:01:10 2026 -0800
+++ b/mrjunejune/src/tools/markdown_to_html/index.css	Thu Jan 01 13:16:30 2026 -0800
@@ -9,7 +9,6 @@
   padding: 20px;
   max-width: 1200px;
   margin: 0 auto;
-  background: rgb(var(--gray-light));
 }
 
 button {
@@ -40,7 +39,8 @@
   width: 100%;
   height: 500px;
   padding: 15px;
-  border: 1px solid rgb(var(--gray-light));
+  background: rgb(var(--gray-light));
+  color: var(--darkgray);
   border-radius: 4px;
   font-family: 'Courier New', monospace;
   font-size: 14px;