Skip to content

Commit 90dcffd

Browse files
authored
Update index.html
1 parent 4559da1 commit 90dcffd

File tree

1 file changed

+4
-71
lines changed

1 file changed

+4
-71
lines changed

index.html

Lines changed: 4 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -3,82 +3,15 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>BubuCode Documentation</title>
6+
<title>BubuCode</title>
77
<link rel="stylesheet" href="styles.css">
88
</head>
99
<body>
1010
<header>
11-
<h1>BubuCode <span>Documentation</span></h1>
11+
<h1>Welcome to BubuCode</h1>
12+
<p>Your simple, easy-to-learn programming language.</p>
13+
<a href="docs.html" class="button">Explore Documentation</a>
1214
</header>
13-
14-
<nav>
15-
<ul>
16-
<li><a href="#intro">Introduction</a></li>
17-
<li><a href="#syntax">Syntax</a></li>
18-
<li><a href="#variables">Variables</a></li>
19-
<li><a href="#functions">Functions</a></li>
20-
<li><a href="#conditionals">Conditionals</a></li>
21-
<li><a href="#loops">Loops</a></li>
22-
</ul>
23-
</nav>
24-
25-
<main>
26-
<section id="intro">
27-
<h2>Introduction</h2>
28-
<p>BubuCode is an easy-to-learn programming language designed for simple and memorable syntax.</p>
29-
</section>
30-
31-
<section id="syntax">
32-
<h2>Basic Syntax</h2>
33-
<p>Here is a sample syntax for BubuCode:</p>
34-
<div class="code-block">
35-
<code>** this is a comment<br>
36-
var number: 10<br>
37-
log("Hello, BubuCode!")</code>
38-
</div>
39-
</section>
40-
41-
<section id="variables">
42-
<h2>Variables</h2>
43-
<p>In BubuCode, you can declare variables using <code>var</code> keyword:</p>
44-
<div class="code-block">
45-
<code>var name: "Bubu"<br>
46-
var age: 20</code>
47-
</div>
48-
</section>
49-
50-
<section id="functions">
51-
<h2>Functions</h2>
52-
<p>You can define functions using the <code>function</code> keyword:</p>
53-
<div class="code-block">
54-
<code>function greet(name)<br>
55-
&nbsp;&nbsp;log("Hello, " + name)<br>
56-
end</code>
57-
</div>
58-
</section>
59-
60-
<section id="conditionals">
61-
<h2>Conditionals</h2>
62-
<p>Conditionals in BubuCode use <code>if</code> and <code>else</code>:</p>
63-
<div class="code-block">
64-
<code>if age >= 18 then<br>
65-
&nbsp;&nbsp;log("You are an adult.")<br>
66-
else<br>
67-
&nbsp;&nbsp;log("You are a minor.")<br>
68-
end</code>
69-
</div>
70-
</section>
71-
72-
<section id="loops">
73-
<h2>Loops</h2>
74-
<p>BubuCode supports <code>forloop</code> and <code>whileloop</code>:</p>
75-
<div class="code-block">
76-
<code>forloop i = 0, 5 do<br>
77-
&nbsp;&nbsp;log(i)<br>
78-
end</code>
79-
</div>
80-
</section>
81-
</main>
8215

8316
<footer>
8417
<p>© 2024 BubuTheDev. All rights reserved.</p>

0 commit comments

Comments
 (0)