Skip to content

Commit 3f84763

Browse files
committed
some changes
1 parent 2704472 commit 3f84763

5 files changed

Lines changed: 42 additions & 24 deletions

File tree

next.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
44
output: "export",
5+
// disabled because:
6+
// a) i dislike the optimized links that next.js generates
7+
// b) it doesn't work with github pages
8+
images: {
9+
unoptimized: true,
10+
},
511
};
612

713
export default nextConfig;

src/app/about/page.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Image from "next/image";
44
import Header from "@/components/header"
55
import Footer from "@/components/footer";
66

7-
import HeroImage from '@/../public/clouds/purple.webp'
87
import Interact from "./interact";
98

109

@@ -15,7 +14,12 @@ export default function page() {
1514
<div className="xl:w-[1200px] lg:w-[1000px] md:w-[768px] w-full px-4 flex gap-4 flex-col py-2">
1615
<Header />
1716

18-
<Image src={HeroImage} className="h-[200px] w-full object-cover" alt="picture of sunset" priority/>
17+
<div className="relative h-52 w-full">
18+
<Image
19+
src="/clouds/purple.webp" fill={true}
20+
className="object-cover" alt="picture of sunset" priority
21+
/>
22+
</div>
1923

2024

2125
<Interact />

src/app/blog/page.tsx

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Image from "next/image";
44
import Header from "@/components/header"
55
import Footer from "@/components/footer";
66

7-
import HeroImage from '@/../public/clouds/sunset.webp'
87

98
import { posts } from "@/app/blog/posts"
109

@@ -15,7 +14,12 @@ export default function page() {
1514
<div className="xl:w-[1200px] lg:w-[1000px] md:w-[768px] w-full px-4 flex gap-4 flex-col py-2">
1615
<Header />
1716

18-
<Image src={HeroImage} className="h-[200px] w-full object-cover" alt="picture of sunset" priority />
17+
<div className="relative h-52 w-full">
18+
<Image
19+
src="/clouds/sunset.webp" fill={true}
20+
className="object-cover" alt="picture of sunset" priority
21+
/>
22+
</div>
1923

2024

2125

@@ -32,20 +36,20 @@ export default function page() {
3236
<div className="w-full border-2 border-gray-800 rounded p-2" >
3337
<h1 className="font-bold pb-2">Writings:</h1>
3438
<div className="flex flex-col gap-4">
35-
{posts.map((post, index) => (
36-
<div key={index} className="p-2 border rounded">
37-
<a href={`/blog/${post.url}`}>
38-
<h2 className="text-xl font-bold">{post.title}</h2>
39-
<p className="text-sm">{new Date(post.published).toLocaleDateString('en-US', {
40-
year: 'numeric',
41-
month: 'long',
42-
day: 'numeric'
43-
})}</p>
44-
<p className="text-sm">{post.teaser}</p>
45-
</a>
46-
{/* <p dangerouslySetInnerHTML={{ __html: post.post }} /> */}
47-
</div>
48-
))}
39+
{posts.map((post, index) => (
40+
<div key={index} className="p-2 border rounded">
41+
<a href={`/blog/${post.url}`}>
42+
<h2 className="text-xl font-bold">{post.title}</h2>
43+
<p className="text-sm">{new Date(post.published).toLocaleDateString('en-US', {
44+
year: 'numeric',
45+
month: 'long',
46+
day: 'numeric'
47+
})}</p>
48+
<p className="text-sm">{post.teaser}</p>
49+
</a>
50+
{/* <p dangerouslySetInnerHTML={{ __html: post.post }} /> */}
51+
</div>
52+
))}
4953
</div>
5054
</div>
5155

src/app/page.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { ProjectList } from "@/components/project-list";
55
import Header from "../components/header"
66
import Footer from "@/components/footer";
77

8-
import HeroImage from '@/../public/clouds/sunrise.webp'
98
import Image from "next/image";
109

1110
export default function Home() {
@@ -15,7 +14,12 @@ export default function Home() {
1514
<div className="xl:w-[1200px] lg:w-[1000px] md:w-[768px] w-full px-4 flex gap-4 flex-col py-2">
1615
<Header />
1716

18-
<Image src={HeroImage} className="h-[200px] w-full object-cover" alt="picture of sunrise" priority />
17+
<div className="relative h-52 w-full">
18+
<Image
19+
src="/clouds/sunrise.webp" fill={true}
20+
className="object-cover" alt="picture of sunrise" priority
21+
/>
22+
</div>
1923

2024

2125
<div className="flex gap-4 w-full">
@@ -48,9 +52,9 @@ export default function Home() {
4852

4953
<div className="border-2 border-gray-800 rounded p-2">
5054
<h3 className="font-bold">Quick Facts:</h3>
51-
<p>📍Vancouver, Canada</p>
52-
<p>🏫Studying Data Science @ Simon Fraser Univ.</p>
53-
<p>🖥️Windows 11 {"<"}3</p>
55+
<p>📍Vancouver, Canada</p>
56+
<p>🏫Studying Data Science @ Simon Fraser Univ.</p>
57+
<p>🖥️Windows 11 {"<"}3</p>
5458
</div>
5559

5660
<div className="border-2 border-gray-800 rounded p-2">

src/components/background.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const CanvasBackground = () => {
2121
resizeCanvas();
2222

2323
// Create stars
24-
const stars = Array(200).fill(null).map(() => ({
24+
const stars = Array(50).fill(null).map(() => ({
2525
x: Math.random() * canvas.width,
2626
y: Math.random() * canvas.height,
2727
size: Math.random() * 2,

0 commit comments

Comments
 (0)