Skip to content

Commit 0b2a3fe

Browse files
committed
reformat
1 parent 3ca263d commit 0b2a3fe

39 files changed

+81
-140
lines changed

.DS_Store

0 Bytes
Binary file not shown.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
# Test commit for GitHub Pages
1+
```bash
2+
npm run build
3+
cd out && python3 -m http.server 3000
4+
```

app/blog/BlogPageClient.tsx

Lines changed: 6 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -10,83 +10,22 @@ interface BlogPageClientProps {
1010

1111
export default function BlogPageClient({ posts }: BlogPageClientProps) {
1212

13-
const [searchTerm, setSearchTerm] = useState('');
14-
const [selectedTag, setSelectedTag] = useState<string | null>(null);
15-
const allTags = Array.from(
16-
new Set(posts.flatMap(post => post.tags))
17-
).sort();
18-
19-
// Filter posts based on search and tag
20-
const filteredPosts = posts.filter(post => {
21-
const matchesSearch = post.title.toLowerCase().includes(searchTerm.toLowerCase()) ||
22-
post.excerpt.toLowerCase().includes(searchTerm.toLowerCase());
23-
const matchesTag = !selectedTag || post.tags.includes(selectedTag);
24-
return matchesSearch && matchesTag;
25-
});
26-
2713
return (
2814
<div>
2915
<div className='text-center'>
30-
<h1 className="text-4xl font-bold text-white sm:text-5xl">
16+
<h1 className="text-4xl font-bold text-white sm:text-5xl mb-8">
3117
Blog
3218
</h1>
3319
</div>
34-
{/* Filters */}
35-
<section className="max-w-7xl mx-auto py-8">
36-
<div className="flex flex-col sm:flex-row gap-4 items-center justify-between">
37-
{/* Search */}
38-
<div className="w-full sm:w-auto">
39-
<input
40-
type="text"
41-
placeholder="Search posts..."
42-
value={searchTerm}
43-
onChange={(e) => setSearchTerm(e.target.value)}
44-
className="w-full sm:w-64 px-4 py-2 border border-orange-400 rounded-lg focus:ring-2 focus:ring-orange-400 focus:border-transparent"
45-
/>
46-
</div>
4720

48-
{/* Tag Filter */}
49-
<div className="flex gap-2 flex-wrap">
50-
<button
51-
onClick={() => setSelectedTag(null)}
52-
className={`px-3 py-1 rounded-full text-sm font-medium transition-colors ${
53-
!selectedTag
54-
? 'bg-orange-400 text-white'
55-
: 'bg-gray-200 text-gray-700 hover:bg-gray-300'
56-
}`}
57-
>
58-
All
59-
</button>
60-
{allTags.map((tag) => (
61-
<button
62-
key={tag}
63-
onClick={() => setSelectedTag(tag)}
64-
className={`px-3 py-1 rounded-full text-sm font-medium transition-colors ${
65-
selectedTag === tag
66-
? 'bg-orange-400 text-white'
67-
: 'bg-white text-gray-700 hover:bg-gray-300'
68-
}`}
69-
>
70-
{tag}
71-
</button>
72-
))}
73-
</div>
74-
</div>
75-
</section>
7621

7722
{/* Posts Grid */}
7823
<section className="max-w-7xl mx-auto ">
79-
{filteredPosts.length === 0 ? (
80-
<div className="text-center py-12">
81-
<p className="text-gray-500 text-lg">No posts found matching your criteria.</p>
82-
</div>
83-
) : (
84-
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
85-
{filteredPosts.map((post) => (
86-
<BlogCard key={post.id} post={post} />
87-
))}
88-
</div>
89-
)}
24+
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
25+
{posts.map((post) => (
26+
<BlogCard key={post.id} post={post} />
27+
))}
28+
</div>
9029
</section>
9130
</div>
9231
);

app/page.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,12 @@ export default function LandingPage() {
101101

102102

103103

104-
{/* Blog Section */}
105-
<section id="blog" className="py-15 px-4 sm:px-6 lg:px-8">
106-
<BlogPageClient posts={posts} />
107-
</section>
108-
109104
{/* Research Section */}
110-
<h2 className="text-4xl md:text-5xl font-bold text-white text-center mb-16">
105+
<section id="research" className="py-15 px-4 sm:px-6 lg:px-8">
106+
<h2 className="text-4xl md:text-5xl font-bold text-white text-center mb-8">
111107
Research
112108
</h2>
113-
<section className=" max-w-7xl mx-auto py-2 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
109+
<div className="max-w-7xl mx-auto py-2 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
114110

115111
<article className="bg-white/10 backdrop-blur-lg rounded-2xl p-2 hover:bg-white/20 transition-all duration-300 transform hover:-translate-y-1">
116112
<div className="p-3">
@@ -150,7 +146,13 @@ export default function LandingPage() {
150146
</div>
151147

152148
</article>
153-
</section>
149+
</div>
150+
</section>
151+
152+
{/* Blog Section */}
153+
<section id="blog" className="py-15 px-4 sm:px-6 lg:px-8">
154+
<BlogPageClient posts={posts} />
155+
</section>
154156

155157
{/* Demo Video Section
156158

components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function Footer() {
2727
<p>829 University Ave, Palo Alto, CA 94301</p>
2828
</div>
2929
<div className="flex space-x-8 text-white">
30-
<Link href="/contact" className="hover:text-white transition-colors">Contact</Link>
30+
<Link href="https://calendly.com/amberljc/30min" className="hover:text-white transition-colors" target="_blank" rel="noopener noreferrer">Contact</Link>
3131
</div>
3232
</div>
3333

components/HeroSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function HeroSection() {
1616
Curie Research Platform helps answer your curiosity through end-to-end experimental automation, ensuring that every step—from hypothesis formulation to result interpretation—is conducted with precision, reliability, and reproducibility.
1717
</p>
1818
<div className="flex flex-col sm:flex-row gap-4 justify-center items-center">
19-
<a href="https://github.com/Just-Curieous">
19+
<a href="https://github.com/Just-Curieous/Curie">
2020
<button className="bg-gradient-to-r from-orange-400 to-orange-500 text-white px-8 py-4 rounded-full text-lg font-semibold hover:from-orange-700 hover:to-red-700 transition-all duration-300 transform hover:scale-105 flex items-center group">
2121
Github
2222
<ChevronRight className="ml-2 group-hover:translate-x-1 transition-transform" />

components/Navigation.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ export default function Navigation() {
4040

4141
{/* Desktop Menu */}
4242
<div className="hidden md:flex items-center space-x-8">
43-
<Link href="/contact" className="text-gray-300 hover:text-white transition-colors">Contact</Link>
44-
<a href="https://github.com/Just-Curieous" className="text-gray-300 hover:text-white transition-colors">Github</a>
43+
<a href="https://github.com/Just-Curieous/Curie" className="text-gray-300 hover:text-white transition-colors">Github</a>
4544
</div>
4645

4746
{/* Mobile Menu Button */}
@@ -58,8 +57,7 @@ export default function Navigation() {
5857
{isMenuOpen && (
5958
<div className="md:hidden bg-black/95 backdrop-blur-lg">
6059
<div className="px-4 py-4 space-y-4">
61-
<Link href="/contact" className="text-gray-300 hover:text-white transition-colors">Contact</Link>
62-
<a href="https://github.com/Just-Curieous" className="block text-gray-300 hover:text-white py-2">Github</a>
60+
<a href="https://github.com/Just-Curieous/Curie" className="block text-gray-300 hover:text-white py-2">Github</a>
6361
</div>
6462
</div>
6563
)}

next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
const nextConfig = {
3-
basePath: process.env.NODE_ENV === 'production' ? '/Just-Curieous.github.io' : '',
3+
// basePath: process.env.NODE_ENV === 'production' ? '/Just-Curieous.github.io' : '',
44
output: "export",
55
images: {
66
unoptimized: true

0 commit comments

Comments
 (0)