Skip to content

Commit cce72bf

Browse files
committed
fixed github pages issue
1 parent 6bafd30 commit cce72bf

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ if (acceptRulesBtn) {
201201
const loadEnv = async () => {
202202
if (window.__ENV) return window.__ENV;
203203
try {
204-
const response = await fetch("/env.json");
204+
const response = await fetch("env.json");
205205
if (!response.ok) return null;
206206
return await response.json();
207207
} catch (err) {

guide.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<header class="site-header">
1919
<div class="header-left">
20-
<a href="/" class="back-link">← Back to Almost Sent</a>
20+
<a href="index.html" class="back-link">← Back to Almost Sent</a>
2121
</div>
2222
</header>
2323

@@ -85,7 +85,7 @@ <h2>The rules</h2>
8585
Every message here represents a moment of courage, the courage to feel, to write,
8686
and to let go. Thank you for being part of this.
8787
</p>
88-
<a href="/" class="primary-btn">Start Writing</a>
88+
<a href="index.html" class="primary-btn">Start Writing</a>
8989
</div>
9090
</section>
9191
</main>

index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div class="header-left">
1919
<h1 id="typing-title"></h1>
2020
</div>
21-
<a href="/guide.html" class="guide-link">What's this about?</a>
21+
<a href="guide.html" class="guide-link">What's this about?</a>
2222
</header>
2323

2424
<main class="container">
@@ -84,7 +84,6 @@ <h2>Rules of the Diary</h2>
8484
</div>
8585
</div>
8686

87-
<script src="/api/env.js"></script>
8887
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
8988
<script src="app.js"></script>
9089
<script>

styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ body {
3333
left: -20px;
3434
right: -20px;
3535
bottom: -20px;
36-
background: url("/cloud.jpg") no-repeat center center;
36+
background: url("cloud.jpg") no-repeat center center;
3737
background-size: cover;
3838
z-index: -1;
3939
transition: transform 0.1s ease-out;
@@ -299,7 +299,7 @@ input::placeholder {
299299
}
300300

301301
.note-card {
302-
background: url("/note-bg.png") center/cover no-repeat;
302+
background: url("note-bg.png") center/cover no-repeat;
303303
border-radius: 8px;
304304
border: none;
305305
padding: 18px 20px 24px 56px;

0 commit comments

Comments
 (0)