-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathpage.jsx
More file actions
202 lines (194 loc) · 7.54 KB
/
Copy pathpage.jsx
File metadata and controls
202 lines (194 loc) · 7.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
"use client";
import Navbar from "@/components/navbar";
import Footer from "../components/footer";
import { Code2, GitFork, Lightbulb, Layers } from "lucide-react";
const algorithms = [
{
category: "Graph Search",
items: ["DFS", "BFS", "Dijkstra", "A*", "Recursive Maze Generation"],
},
{
category: "Data Structures",
items: [
"Linked List — insert, delete, search, reverse (singly & doubly)",
],
},
{
category: "Trees",
items: [
"Binary Search Tree — insert, delete, search with animated re-layout",
],
},
{
category: "Interactive Graphs",
items: [
"Graph Traversal — BFS / DFS",
"Shortest Path — Dijkstra & Bellman-Ford (with negative-cycle detection)",
"Minimum Spanning Tree — Kruskal & Prim",
"Connectivity — Connected Components, Strongly & Weakly Connected",
"Network Flow — max flow / min cut (Edmonds-Karp & Ford-Fulkerson)",
],
},
{
category: "Sorting",
items: [
"Bubble Sort",
"Selection Sort",
"Insertion Sort",
"Heap Sort",
"Merge Sort",
"Quick Sort",
],
},
{
category: "Number Theory",
items: ["Sieve of Eratosthenes", "Ulam Spiral"],
},
{
category: "Backtracking",
items: ["N-Queen"],
},
{
category: "Geometry",
items: ["Graham Scan (Convex Hull)"],
},
{
category: "Search",
items: ["Binary Search"],
},
{
category: "Recursion",
items: [
"Fibonacci",
"Binomial Coefficient",
"Derangement",
"Fast Exponentiation",
"Stirling Number (2nd Kind)",
],
},
{
category: "Automata",
items: ["Turing Machine — Bitwise NOT, Increment, 2's Complement"],
},
{
category: "Simulation",
items: ["Conway's Game of Life"],
},
];
const inspirations = [
{
title: "Pathfinder",
description: "The Projects That Got Me Into Google",
url: "https://youtu.be/n4t_-NjY_Sg",
},
{
title: "Prime Spirals",
description: "Why do prime numbers make these spirals?",
url: "https://youtu.be/EK32jo7i5LQ",
},
{
title: "Recursion Tree",
description: "Recursion Tree Visualizer by brpapa",
url: "https://github.com/brpapa/recursion-tree-visualizer",
},
{
title: "Turing Machine",
description: "Tursi by schaetzc",
url: "https://github.com/schaetzc/tursi",
},
];
export default function AboutPage() {
return (
<div className="min-h-screen bg-background">
<Navbar />
<main className="container mx-auto py-12 px-4 max-w-4xl">
<h1 className="text-4xl font-bold mb-2">About</h1>
<p className="text-lg text-muted-foreground mb-10">
A better way to understand algorithms — visually, step by step.
</p>
<section className="mb-12">
<div className="flex items-center gap-2 mb-4">
<Lightbulb className="h-5 w-5 text-primary" />
<h2 className="text-2xl font-semibold">What is this?</h2>
</div>
<p className="text-muted-foreground leading-relaxed">
Algorithm Visualizer is an interactive tool that brings algorithms
to life. Instead of reading pseudocode or tracing through dry runs,
you can watch algorithms execute in real time — see how a pathfinding
algorithm explores a maze, how sorting algorithms compare and swap
elements, or how backtracking systematically places queens on a
chessboard. The goal is to make the learning process more engaging
and intuitive.
</p>
</section>
<section className="mb-12">
<div className="flex items-center gap-2 mb-4">
<Layers className="h-5 w-5 text-primary" />
<h2 className="text-2xl font-semibold">
Algorithms ({algorithms.reduce((sum, c) => sum + c.items.length, 0)}+)
</h2>
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
{algorithms.map((group) => (
<div
key={group.category}
className="rounded-lg border bg-card p-4"
>
<h3 className="font-medium mb-2">{group.category}</h3>
<ul className="text-sm text-muted-foreground space-y-1">
{group.items.map((item) => (
<li key={item} className="flex items-center gap-2">
<span className="text-primary text-[6px]">●</span>
{item}
</li>
))}
</ul>
</div>
))}
</div>
</section>
<section className="mb-12">
<div className="flex items-center gap-2 mb-4">
<Code2 className="h-5 w-5 text-primary" />
<h2 className="text-2xl font-semibold">Tech Stack</h2>
</div>
<div className="flex flex-wrap gap-2">
{["Next.js", "React", "Tailwind CSS", "Radix UI", "Lucide Icons"].map(
(tech) => (
<span
key={tech}
className="rounded-full border bg-secondary px-3 py-1 text-sm"
>
{tech}
</span>
)
)}
</div>
</section>
<section className="mb-12">
<div className="flex items-center gap-2 mb-4">
<GitFork className="h-5 w-5 text-primary" />
<h2 className="text-2xl font-semibold">Inspirations</h2>
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3">
{inspirations.map((item) => (
<a
key={item.title}
href={item.url}
target="_blank"
rel="noopener noreferrer"
className="rounded-lg border p-4 hover:bg-accent transition-colors"
>
<h3 className="font-medium">{item.title}</h3>
<p className="text-sm text-muted-foreground">
{item.description}
</p>
</a>
))}
</div>
</section>
</main>
<Footer />
</div>
);
}