Skip to content

Commit

Permalink
deploy: fc6400f
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattchewone committed Jan 14, 2025
0 parents commit 52f7ec2
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
27 changes: 27 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Redirecting...</title>
<script>
// Get the path from the URL
const path = window.location.pathname.split('/').filter(Boolean);
const repo = path[0];

// Check if we're already in an infinite loop
if (path.filter(p => p === 'index.html').length > 1) {
document.body.innerHTML = '<p>Error: Path not found</p>';
} else if (path.length === 1) {
// At repo root, redirect to main
window.location.href = `/${repo}/main/`;
} else {
// Try the branch preview once
const branchPath = path[1];
window.location.href = `/${repo}/${branchPath}/index.html`;
}
</script>
</head>
<body>
<p>Redirecting to preview...</p>
</body>
</html>
27 changes: 27 additions & 0 deletions fix-branch-issues/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Redirecting...</title>
<script>
// Get the path from the URL
const path = window.location.pathname.split('/').filter(Boolean);
const repo = path[0];

// Check if we're already in an infinite loop
if (path.filter(p => p === 'index.html').length > 1) {
document.body.innerHTML = '<p>Error: Path not found</p>';
} else if (path.length === 1) {
// At repo root, redirect to main
window.location.href = `/${repo}/main/`;
} else {
// Try the branch preview once
const branchPath = path[1];
window.location.href = `/${repo}/${branchPath}/index.html`;
}
</script>
</head>
<body>
<p>Redirecting to preview...</p>
</body>
</html>
24 changes: 24 additions & 0 deletions fix-branch-issues/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Eggstractor Demo</title>
<!-- Link to our final compiled CSS -->
<link rel="stylesheet" href="./prod.css" />
</head>
<body>
<div class="container">
<div class="custom-input">
<label for="demo-input">Label Text</label>
<input
type="text"
id="demo-input"
class="input-field"
placeholder="Enter text..."
>
</div>
</div>
</body>
</html>
1 change: 1 addition & 0 deletions fix-branch-issues/prod.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions fix-branch-issues/prod.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 52f7ec2

Please sign in to comment.