Skip to content

Commit fc6d9b4

Browse files
author
Parsa Azari
committed
Update configuration for GitHub Pages deployment
1 parent 6850fee commit fc6d9b4

File tree

9 files changed

+196
-97
lines changed

9 files changed

+196
-97
lines changed

dist/404.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Page Not Found</title>
7+
<script>
8+
// Redirect to the home page
9+
const segmentCount = 1;
10+
const redirectPath = window.location.pathname.split('/').slice(0, segmentCount + 1).join('/');
11+
window.location.replace(`${redirectPath}/`);
12+
</script>
13+
<style>
14+
body {
15+
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
16+
text-align: center;
17+
padding: 20px;
18+
background: #000;
19+
color: #fff;
20+
}
21+
h1 {
22+
margin-top: 50px;
23+
color: #5CDED3;
24+
}
25+
p {
26+
margin: 20px 0;
27+
}
28+
a {
29+
color: #5CDED3;
30+
text-decoration: none;
31+
}
32+
a:hover {
33+
text-decoration: underline;
34+
}
35+
</style>
36+
</head>
37+
<body>
38+
<h1>Page Not Found</h1>
39+
<p>Redirecting to the home page...</p>
40+
<p>If you are not redirected automatically, <a href="/3D-Portfolio/">click here</a>.</p>
41+
</body>
42+
</html>

dist/assets/index-4f7f7306.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/assets/index-4f7f7306.js renamed to dist/assets/index-abe4efcc.js

Lines changed: 93 additions & 93 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/index-abe4efcc.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Interactive 3D Experience</title>
7-
<link rel="icon" href="/3D-Portfolio/assets/corridor-icon-Bg4EySwV-45adfbd2.svg" type="image/svg+xml">
7+
<link rel="icon" href="/3D-Portfolio/assets/corridor-icon.svg" type="image/svg+xml">
88
<style>
99
body {
1010
margin: 0;
@@ -342,8 +342,8 @@ <h3>An error occurred</h3>
342342

343343

344344

345-
<script type="module" crossorigin src="./assets/index-4f7f7306.js"></script>
346-
<link rel="stylesheet" href="./assets/index.css">
345+
<script type="module" crossorigin src="/3D-Portfolio/assets/index-abe4efcc.js"></script>
346+
<link rel="stylesheet" href="/3D-Portfolio/assets/index.css">
347347
</head>
348348
<body>
349349
<div id="app-container">

public/404.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Page Not Found</title>
7+
<script>
8+
// Redirect to the home page
9+
const segmentCount = 1;
10+
const redirectPath = window.location.pathname.split('/').slice(0, segmentCount + 1).join('/');
11+
window.location.replace(`${redirectPath}/`);
12+
</script>
13+
<style>
14+
body {
15+
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
16+
text-align: center;
17+
padding: 20px;
18+
background: #000;
19+
color: #fff;
20+
}
21+
h1 {
22+
margin-top: 50px;
23+
color: #5CDED3;
24+
}
25+
p {
26+
margin: 20px 0;
27+
}
28+
a {
29+
color: #5CDED3;
30+
text-decoration: none;
31+
}
32+
a:hover {
33+
text-decoration: underline;
34+
}
35+
</style>
36+
</head>
37+
<body>
38+
<h1>Page Not Found</h1>
39+
<p>Redirecting to the home page...</p>
40+
<p>If you are not redirected automatically, <a href="/3D-Portfolio/">click here</a>.</p>
41+
</body>
42+
</html>

public/CNAME

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This file is for setting up a custom domain
2+
# Replace with your actual domain if you want to use a custom domain
3+
# Example: portfolio.example.com

public/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
User-agent: *
2+
Allow: /
3+
Sitemap: https://parsaa74.github.io/3D-Portfolio/sitemap.xml

public/sitemap.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
<url>
4+
<loc>https://parsaa74.github.io/3D-Portfolio/</loc>
5+
<lastmod>2023-11-05</lastmod>
6+
<changefreq>monthly</changefreq>
7+
<priority>1.0</priority>
8+
</url>
9+
</urlset>

0 commit comments

Comments
 (0)