-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpage.jsx
More file actions
128 lines (116 loc) · 4.14 KB
/
Copy pathpage.jsx
File metadata and controls
128 lines (116 loc) · 4.14 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
import Animation from "@/app/visualizer/sorting/selectionsort/animation";
import Navbar from "@/app/components/navbarinner";
import BackToTopButton from "@/app/components/ui/backtotop";
import Footer from "@/app/components/footer";
import Content from '@/app/visualizer/sorting/selectionsort/content';
import ExploreOther from "@/app/components/ui/exploreOther";
import Code from "@/app/visualizer/sorting/selectionsort/codeBlock";
import Quiz from "@/app/visualizer/sorting/selectionsort/quiz";
import Breadcrumbs from "@/app/components/ui/Breadcrumbs";
import ArticleActions from "@/app/components/ui/ArticleActions";
import ModuleCard from "@/app/components/ui/ModuleCard";
import { MODULE_MAPS } from "@/lib/modulesMap";
export const metadata = {
title:
"Selection Sort Visualizer | Simple Sorting Animation with Code in JS, C, Python, Java",
description:
"Visualize Selection Sort in action with step-by-step animations and code examples in JavaScript, C, Python, and Java. A beginner-friendly way to understand this simple sorting algorithm using comparisons and swaps.",
keywords: [
"Selection Sort Visualizer",
"Selection Sort Animation",
"Selection Sort Algorithm",
"DSA Selection Sort",
"Learn Selection Sort",
"Sorting Algorithm Visualization",
"Interactive Sorting Tool",
"Sorting for Beginners",
"Step by Step Sorting",
"Selection Sort in JavaScript",
"Selection Sort in C",
"Selection Sort in Python",
"Selection Sort in Java",
"Selection Sort Code Examples",
],
robots: "index, follow",
openGraph: {
images: [
{
url: "/og/sorting/selectionSort.png",
width: 1200,
height: 630,
alt: "Selection Sort Algorithm Visualization",
},
],
},
};
export default function Page() {
const paths = [
{ name: "Home", href: "/" },
{ name: "Visulaizer", href: "/visualizer" },
{ name: "Selection Sort", href: "" },
];
return (
<>
<div>
<Navbar />
</div>
<div className="py-20 bg-gray-100 dark:bg-neutral-900 text-gray-800 dark:text-gray-200">
<section className="px-6 md:px-12">
<div className="mt-10 sm:mt-10 mb-4">
<Breadcrumbs paths={paths} />
</div>
<div className="flex items-center flex-col">
<div className="flex">
<p className="uppercase tracking-wide bg-green-500 dark:text-black px-4 py-1 mb-2 rounded-full">
Sorting
</p>
</div>
<h1 className="text-4xl md:text-4xl font-bold text-center text-gray-900 dark:text-white mb-0">
Selection Sort
</h1>
<ArticleActions />
</div>
<div className="bg-black border border-none dark:bg-gray-600 w-100 h-[2px] rounded-xl my-10"></div>
<Content />
</section>
<section>
<Animation />
</section>
<section className="px-6">
<p className="text-lg text-center text-gray-600 dark:text-gray-400 mb-2">
Test Your Knowledge before moving forward!
</p>
<Quiz />
</section>
<section className="px-6">
<Code />
</section>
<section className="px-6 md:px-12 my-12">
<ModuleCard
moduleId={MODULE_MAPS.selectionSort}
title="Selection Sort"
description="Mark Selection Sort as done and view it on your dashboard"
initialDone={false}
/>
</section>
<section className="px-6">
<ExploreOther
title="Explore Sorting Algorithms"
links={[
{ text: "Quick Sort", url: "/visualizer/sorting/quicksort" },
{ text: "Bubble Sort", url: "/visualizer/sorting/bubblesort" },
{
text: "Insertion Sort",
url: "/visualizer/sorting/insertionsort",
},
{ text: "Merge Sort", url: "/visualizer/sorting/mergesort" },
{ text: "Heap Sort", url: "/algorithms/sorting/heap" },
]}
/>
</section>
</div>
<BackToTopButton />
<Footer />
</>
);
}