Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions public/about/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Reactfolio</title>
<script>
window.location.href = "../";
</script>
</head>
</html>
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
10 changes: 10 additions & 0 deletions public/albums/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Reactfolio</title>
<script>
window.location.href = "../";
</script>
</head>
</html>
File renamed without changes.
10 changes: 10 additions & 0 deletions public/articles/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Reactfolio</title>
<script>
window.location.href = "../";
</script>
</head>
</html>
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="/me/" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
Expand Down
10 changes: 10 additions & 0 deletions public/projects/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Reactfolio</title>
<script>
window.location.href = "../";
</script>
</head>
</html>
2 changes: 1 addition & 1 deletion src/components/common/footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Footer = () => {
<Link to="/articles">Articles</Link>
</li>
<li className="footer-nav-link-item">
<Link to="/contact">Contact</Link>
<Link to="/albums">Album</Link>
</li>
</ul>
</div>
Expand Down
128 changes: 64 additions & 64 deletions src/data/myAlbums/dragon.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,69 +3,69 @@ function dragonPhoto() {
const basedir = process.env.PUBLIC_URL || "/me";

const allphotos = [
{ src: `${basedir}/album/dragon/1.jpg`, width: 1200, height: 2131 },
{ src: `${basedir}/album/dragon/10.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/album/dragon/11.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/album/dragon/12.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/album/dragon/13.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/album/dragon/14.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/album/dragon/15.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/album/dragon/16.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/album/dragon/17.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/album/dragon/18.jpg`, width: 960, height: 1705 },
{ src: `${basedir}/album/dragon/19.jpg`, width: 960, height: 1705 },
{ src: `${basedir}/album/dragon/2.jpg`, width: 1200, height: 1600 },
{ src: `${basedir}/album/dragon/20.jpg`, width: 960, height: 1705 },
{ src: `${basedir}/album/dragon/21.jpg`, width: 960, height: 1706 },
{ src: `${basedir}/album/dragon/22.jpg`, width: 960, height: 1706 },
{ src: `${basedir}/album/dragon/23.jpg`, width: 960, height: 1705 },
{ src: `${basedir}/album/dragon/24.jpg`, width: 960, height: 1705 },
{ src: `${basedir}/album/dragon/25.jpg`, width: 1108, height: 1477 },
{ src: `${basedir}/album/dragon/26.jpg`, width: 960, height: 1705 },
{ src: `${basedir}/album/dragon/27.jpg`, width: 960, height: 1705 },
{ src: `${basedir}/album/dragon/28.jpg`, width: 960, height: 1706 },
{ src: `${basedir}/album/dragon/29.jpg`, width: 960, height: 1706 },
{ src: `${basedir}/album/dragon/3.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/album/dragon/30.jpg`, width: 1108, height: 1477 },
{ src: `${basedir}/album/dragon/31.jpg`, width: 1108, height: 1477 },
{ src: `${basedir}/album/dragon/32.jpg`, width: 1108, height: 1477 },
{ src: `${basedir}/album/dragon/33.jpg`, width: 1108, height: 1477 },
{ src: `${basedir}/album/dragon/34.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/35.jpg`, width: 563, height: 1000 },
{ src: `${basedir}/album/dragon/36.jpg`, width: 459, height: 816 },
{ src: `${basedir}/album/dragon/37.jpg`, width: 459, height: 816 },
{ src: `${basedir}/album/dragon/38.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/39.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/4.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/album/dragon/40.jpg`, width: 1075, height: 806 },
{ src: `${basedir}/album/dragon/41.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/42.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/43.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/44.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/45.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/46.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/47.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/48.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/49.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/5.jpg`, width: 1200, height: 1600 },
{ src: `${basedir}/album/dragon/50.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/51.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/52.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/53.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/54.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/55.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/56.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/57.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/58.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/59.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/6.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/album/dragon/60.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/61.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/album/dragon/62.jpg`, width: 1108, height: 1477 },
{ src: `${basedir}/album/dragon/63.jpg`, width: 960, height: 1706 },
{ src: `${basedir}/album/dragon/7.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/album/dragon/8.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/album/dragon/9.jpg`, width: 1200, height: 2134 }
{ src: `${basedir}/albums/dragon/1.jpg`, width: 1200, height: 2131 },
{ src: `${basedir}/albums/dragon/10.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/albums/dragon/11.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/albums/dragon/12.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/albums/dragon/13.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/albums/dragon/14.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/albums/dragon/15.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/albums/dragon/16.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/albums/dragon/17.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/albums/dragon/18.jpg`, width: 960, height: 1705 },
{ src: `${basedir}/albums/dragon/19.jpg`, width: 960, height: 1705 },
{ src: `${basedir}/albums/dragon/2.jpg`, width: 1200, height: 1600 },
{ src: `${basedir}/albums/dragon/20.jpg`, width: 960, height: 1705 },
{ src: `${basedir}/albums/dragon/21.jpg`, width: 960, height: 1706 },
{ src: `${basedir}/albums/dragon/22.jpg`, width: 960, height: 1706 },
{ src: `${basedir}/albums/dragon/23.jpg`, width: 960, height: 1705 },
{ src: `${basedir}/albums/dragon/24.jpg`, width: 960, height: 1705 },
{ src: `${basedir}/albums/dragon/25.jpg`, width: 1108, height: 1477 },
{ src: `${basedir}/albums/dragon/26.jpg`, width: 960, height: 1705 },
{ src: `${basedir}/albums/dragon/27.jpg`, width: 960, height: 1705 },
{ src: `${basedir}/albums/dragon/28.jpg`, width: 960, height: 1706 },
{ src: `${basedir}/albums/dragon/29.jpg`, width: 960, height: 1706 },
{ src: `${basedir}/albums/dragon/3.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/albums/dragon/30.jpg`, width: 1108, height: 1477 },
{ src: `${basedir}/albums/dragon/31.jpg`, width: 1108, height: 1477 },
{ src: `${basedir}/albums/dragon/32.jpg`, width: 1108, height: 1477 },
{ src: `${basedir}/albums/dragon/33.jpg`, width: 1108, height: 1477 },
{ src: `${basedir}/albums/dragon/34.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/35.jpg`, width: 563, height: 1000 },
{ src: `${basedir}/albums/dragon/36.jpg`, width: 459, height: 816 },
{ src: `${basedir}/albums/dragon/37.jpg`, width: 459, height: 816 },
{ src: `${basedir}/albums/dragon/38.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/39.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/4.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/albums/dragon/40.jpg`, width: 1075, height: 806 },
{ src: `${basedir}/albums/dragon/41.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/42.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/43.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/44.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/45.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/46.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/47.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/48.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/49.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/5.jpg`, width: 1200, height: 1600 },
{ src: `${basedir}/albums/dragon/50.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/51.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/52.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/53.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/54.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/55.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/56.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/57.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/58.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/59.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/6.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/albums/dragon/60.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/61.jpg`, width: 1080, height: 1920 },
{ src: `${basedir}/albums/dragon/62.jpg`, width: 1108, height: 1477 },
{ src: `${basedir}/albums/dragon/63.jpg`, width: 960, height: 1706 },
{ src: `${basedir}/albums/dragon/7.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/albums/dragon/8.jpg`, width: 1200, height: 2133 },
{ src: `${basedir}/albums/dragon/9.jpg`, width: 1200, height: 2134 }
];

return {
Expand All @@ -81,7 +81,7 @@ function dragonPhoto() {
"Stanley Shen",
],
photos: allphotos,
representative: `${basedir}/album/representative/dragon.jpg`,
representative: `${basedir}/albums/representative/dragon.jpg`,
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/data/myAlbums/util.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const albumName = 'dragon'; // Change this to your album name

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const absoluteDirPath = resolve(__dirname, '../../../public/album', albumName);
const absoluteDirPath = resolve(__dirname, '../../../public/albums', albumName);

const files = await readdir(absoluteDirPath);

Expand Down