Skip to content

Commit 9b44052

Browse files
feat: add tutorial text content
1 parent 2fb51a0 commit 9b44052

File tree

1 file changed

+92
-3
lines changed

1 file changed

+92
-3
lines changed
Lines changed: 92 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,96 @@
11
export default function TutorialHelloWorld() {
22
return (
3-
<>
4-
<h1>Hello World</h1>
5-
</>
3+
<div className="min-h-screen bg-gray-50 p-8">
4+
{" "}
5+
{/* Basic page styling */}
6+
<article className="max-w-4xl mx-auto bg-white p-6 md:p-10 rounded-lg shadow-md space-y-6">
7+
{" "}
8+
{/* Container */}
9+
{/* Quest Title */}
10+
<h1 className="text-3xl md:text-4xl font-bold text-indigo-700 border-b pb-2 mb-6">
11+
Quest: The Oracle&apos;s First Greeting - Whispering &quot;Hello World&quot;
12+
</h1>
13+
{/* Flavor Text / Introduction */}
14+
<p className="text-lg italic text-gray-600">
15+
Welcome, brave coder! Your journey into the mystical lands of programming begins now.
16+
Before you can conjure complex spells or build mighty digital fortresses, every adventurer
17+
must learn the first incantation, the universal greeting recognized across all realms:{" "}
18+
<strong className="font-semibold text-indigo-600">&quot;Hello World&quot;</strong>. This
19+
simple phrase is your key to unlocking the power of code.
20+
</p>
21+
<p className="text-gray-700">
22+
This quest will guide you through understanding and wielding this fundamental magic.
23+
</p>
24+
<hr className="my-6" />
25+
{/* Section 1 */}
26+
<section className="space-y-3">
27+
<h2 className="text-2xl font-semibold text-gray-800">
28+
What is this &quot;Hello World&quot; Sorcery?
29+
</h2>
30+
<p className="text-gray-700">
31+
In the ancient scrolls of programming, &quot;Hello World&quot; is the traditional first
32+
spell learned. What does it do? It simply commands the machine - your loyal golem - to
33+
display the message{" "}
34+
<code className="bg-gray-100 px-1 rounded text-indigo-700">
35+
&quot;Hello World!&quot;
36+
</code>{" "}
37+
on the screen.
38+
</p>
39+
<p className="text-gray-700">
40+
Think of it like teaching a parrot its first words. You&apos;re not asking it to recite
41+
poetry yet, just to say &quot;Hello!&quot; It&apos;s the basic proof that you can
42+
communicate your intentions to the machine and make it respond.
43+
</p>
44+
</section>
45+
<hr className="my-6" />
46+
{/* Section 2 */}
47+
<section className="space-y-3">
48+
<h2 className="text-2xl font-semibold text-gray-800">Why This First Greeting Matters</h2>
49+
<p className="text-gray-700">Why start with something so simple?</p>
50+
<ul className="list-disc list-inside space-y-2 text-gray-700 pl-4">
51+
<li>
52+
<strong className="font-semibold">It&apos;s Tradition:</strong> Like a knight
53+
receiving their first sword, programmers worldwide start here. It connects you to
54+
generations of coders before you!
55+
</li>
56+
<li>
57+
<strong className="font-semibold">It&apos;s a Test:</strong> Successfully making the
58+
machine say &quot;Hello World&quot; proves your basic setup is working. Your coding
59+
environment, the language you&apos;re using - they&apos;re all aligned and ready for
60+
more complex commands. It&apos;s like checking if your magic wand sparks before trying
61+
to levitate a mountain.
62+
</li>
63+
<li>
64+
<strong className="font-semibold">It&apos;s Confidence:</strong> Seeing your very
65+
first command come to life, even a simple one, is a powerful boost! It&apos;s the
66+
first step on your epic journey.
67+
</li>
68+
</ul>
69+
</section>
70+
<hr className="my-6" />
71+
{/* Section 3 */}
72+
<section className="space-y-3">
73+
<h2 className="text-2xl font-semibold text-gray-800">
74+
Visualizing the Incantation (Conceptual Example)
75+
</h2>
76+
<p className="text-gray-700">
77+
Imagine you have a magical scroll (your program). To perform the &quot;Hello World&quot;
78+
greeting, you&apos;d write an instruction similar to this:
79+
</p>
80+
<pre className="bg-gray-100 p-4 rounded-md font-mono text-sm text-gray-800 overflow-x-auto">
81+
<code>{`// Command the Oracle (or Screen) to speak:\nDisplay: "Hello World!"`}</code>
82+
</pre>
83+
<p className="text-gray-700">
84+
Different programming languages (spellbooks) have slightly different words for the
85+
&apos;Display&apos; command (like{" "}
86+
<code className="bg-gray-100 px-1 rounded text-indigo-700">print</code>,{" "}
87+
<code className="bg-gray-100 px-1 rounded text-indigo-700">console.log</code>,{" "}
88+
<code className="bg-gray-100 px-1 rounded text-indigo-700">echo</code>), but the core
89+
idea is the same: tell the machine to show those exact words.
90+
</p>
91+
</section>
92+
<hr className="my-6" />
93+
</article>
94+
</div>
695
);
796
}

0 commit comments

Comments
 (0)