Skip to content

Commit a25b118

Browse files
committed
Remove the unnecessary code snippets
1 parent 3750b3e commit a25b118

15 files changed

Lines changed: 36 additions & 155 deletions

File tree

backend/README.md

Lines changed: 0 additions & 119 deletions
This file was deleted.

backend/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
2222
.parse::<u16>()
2323
.unwrap_or(8080);
2424

25-
println!("🚀 Starting Rust backend server on port {}", port);
25+
println!("Starting Rust backend server on port {}", port);
2626

2727
let app = Router::new()
2828
.route("/api/course", get(get_course))
@@ -39,7 +39,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
3939

4040
// Bind to 0.0.0.0 for deployment (allows external connections)
4141
let addr = SocketAddr::from(([0, 0, 0, 0], port));
42-
println!("Server listening on {}", addr);
42+
println!("Server listening on {}", addr);
4343

4444
let listener = tokio::net::TcpListener::bind(addr).await?;
4545
axum::serve(listener, app).await?;

backend/src/models.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub struct Exercise {
6767
}
6868

6969
#[derive(Debug, Serialize, Deserialize, Clone)]
70-
#[serde(rename_all = "camelCase")]
70+
w#[serde(rename_all = "camelCase")]
7171
pub struct ProjectIdea {
7272
pub id: String,
7373
pub title: String,

frontend/app/game/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ async function loadGameLessons(): Promise<GameLesson[]> {
99
title: 'Chapter 1: Meet Your First Zombie',
1010
description: 'Learn Rust basics by creating your first zombie!',
1111
unlocked: true,
12-
story: `Welcome to Rust Zombies! 🧟
12+
story: `Welcome to Rust Zombies!
1313
1414
In this game, you'll learn Rust programming by building a zombie army. Each zombie is a struct that you'll create and customize.
1515

frontend/app/lessons/[lessonId]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ export default async function LessonPage({ params }: LessonPageProps) {
6767
{difficultyLabels[lesson.difficulty]}
6868
</span>
6969
<span className="px-4 py-2 rounded-xl text-sm font-bold bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-md">
70-
⏱️ {lesson.estimatedTime} min
70+
{lesson.estimatedTime} min
7171
</span>
7272
{lesson.prerequisites && lesson.prerequisites.length > 0 && (
7373
<span className="px-4 py-2 rounded-xl text-sm font-bold bg-gradient-to-br from-purple-500 to-purple-600 text-white shadow-md">
74-
📚 Prerequisites: {lesson.prerequisites.length}
74+
Prerequisites: {lesson.prerequisites.length}
7575
</span>
7676
)}
7777
</div>

frontend/app/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,21 @@ export default async function Home() {
5858

5959
<div className="grid grid-cols-1 md:grid-cols-3 gap-8 max-w-5xl mx-auto">
6060
<div className="bg-white/10 backdrop-blur-lg rounded-2xl p-6 border border-white/20">
61-
<div className="text-4xl mb-4">🧟</div>
61+
<div className="text-4xl mb-4"></div>
6262
<h3 className="text-xl font-bold text-white mb-2">Build Zombies</h3>
6363
<p className="text-purple-200">
6464
Create and customize your zombie army using Rust structs, functions, and more.
6565
</p>
6666
</div>
6767
<div className="bg-white/10 backdrop-blur-lg rounded-2xl p-6 border border-white/20">
68-
<div className="text-4xl mb-4">💻</div>
68+
<div className="text-4xl mb-4"></div>
6969
<h3 className="text-xl font-bold text-white mb-2">Code Editor</h3>
7070
<p className="text-purple-200">
7171
Write Rust code directly in your browser with instant feedback and validation.
7272
</p>
7373
</div>
7474
<div className="bg-white/10 backdrop-blur-lg rounded-2xl p-6 border border-white/20">
75-
<div className="text-4xl mb-4">🏆</div>
75+
<div className="text-4xl mb-4"></div>
7676
<h3 className="text-xl font-bold text-white mb-2">Earn XP & Achievements</h3>
7777
<p className="text-purple-200">
7878
Level up, unlock achievements, and track your progress as you learn.

frontend/components/CareerGuide.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,17 @@ export default function CareerGuide() {
143143
</h3>
144144
<div className="grid grid-cols-1 md:grid-cols-3 gap-6 max-w-4xl mx-auto">
145145
<div className="text-center">
146-
<div className="text-5xl mb-4">📚</div>
146+
<div className="text-5xl mb-4"></div>
147147
<p className="font-bold text-lg mb-2">Learn</p>
148148
<p className="text-orange-100 text-sm">Complete all 86+ lessons</p>
149149
</div>
150150
<div className="text-center">
151-
<div className="text-5xl mb-4">💻</div>
151+
<div className="text-5xl mb-4"></div>
152152
<p className="font-bold text-lg mb-2">Build</p>
153153
<p className="text-orange-100 text-sm">Create portfolio projects</p>
154154
</div>
155155
<div className="text-center">
156-
<div className="text-5xl mb-4">🚀</div>
156+
<div className="text-5xl mb-4"></div>
157157
<p className="font-bold text-lg mb-2">Deploy</p>
158158
<p className="text-orange-100 text-sm">Showcase your work</p>
159159
</div>

frontend/components/Features.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,32 @@
22

33
const features = [
44
{
5-
icon: '📚',
5+
icon: '',
66
title: 'Comprehensive Curriculum',
77
description: 'From Rust basics to advanced blockchain development, covering everything you need to know.',
88
},
99
{
10-
icon: '💻',
10+
icon: '',
1111
title: 'Hands-On Projects',
1212
description: 'Build real-world projects with practical exercises and code examples in every lesson.',
1313
},
1414
{
15-
icon: '🔒',
15+
icon: '',
1616
title: 'Security First',
1717
description: 'Learn security best practices and common vulnerabilities in smart contract development.',
1818
},
1919
{
20-
icon: '',
20+
icon: '',
2121
title: 'Performance Focused',
2222
description: 'Understand how Rust\'s zero-cost abstractions make it perfect for blockchain systems.',
2323
},
2424
{
25-
icon: '🌐',
25+
icon: '',
2626
title: 'Real-World Examples',
2727
description: 'Study actual blockchain implementations from Solana, Polkadot, and NEAR Protocol.',
2828
},
2929
{
30-
icon: '🎯',
30+
icon: '',
3131
title: 'Interview Ready',
3232
description: 'Prepare for blockchain developer interviews with comprehensive Q&A sections.',
3333
},

frontend/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function Footer() {
1515
<div className="grid grid-cols-1 md:grid-cols-4 gap-12 mb-12">
1616
<div className="col-span-1 md:col-span-2">
1717
<div className="flex items-center gap-3 mb-4">
18-
<div className="text-4xl">🦀</div>
18+
<div className="text-4xl">R</div>
1919
<div>
2020
<h3 className="text-2xl font-extrabold bg-gradient-to-r from-orange-400 to-orange-500 bg-clip-text text-transparent">
2121
Rust Blockchain Course

frontend/components/GameMode.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function GameMode({ lessons }: GameModeProps) {
2222
id: 'first-zombie',
2323
title: 'First Zombie',
2424
description: 'Created your first zombie',
25-
icon: '🧟',
25+
icon: '',
2626
rarity: 'common',
2727
},
2828
{
@@ -109,7 +109,7 @@ export default function GameMode({ lessons }: GameModeProps) {
109109
<div className="bg-gradient-to-br from-gray-800 to-gray-900 rounded-2xl shadow-2xl p-8 border-2 border-purple-500">
110110
<div className="mb-6">
111111
<div className="flex items-center gap-3 mb-4">
112-
<span className="text-4xl flex-shrink-0">🧟</span>
112+
<span className="text-4xl flex-shrink-0"></span>
113113
<div className="min-w-0 flex-1">
114114
<h1 className="text-3xl font-bold text-white mb-2 break-words">
115115
{currentLesson.title}
@@ -119,7 +119,7 @@ export default function GameMode({ lessons }: GameModeProps) {
119119
</div>
120120

121121
<div className="bg-gray-800/50 rounded-lg p-4 mb-6 border border-purple-500/30">
122-
<h3 className="text-lg font-bold text-purple-300 mb-2">📖 Story</h3>
122+
<h3 className="text-lg font-bold text-purple-300 mb-2">Story</h3>
123123
<p className="text-gray-300 whitespace-pre-line break-words">{currentLesson.story}</p>
124124
</div>
125125

@@ -139,7 +139,7 @@ export default function GameMode({ lessons }: GameModeProps) {
139139
</h2>
140140
<p className="text-gray-300 mb-4 break-words">{currentChallenge.description}</p>
141141
<div className="bg-blue-900/30 rounded-lg p-4 border border-blue-700">
142-
<h3 className="text-lg font-semibold text-blue-300 mb-2">📋 Instructions</h3>
142+
<h3 className="text-lg font-semibold text-blue-300 mb-2">Instructions</h3>
143143
<p className="text-gray-300 whitespace-pre-line break-words">{currentChallenge.instructions}</p>
144144
</div>
145145
</div>
@@ -155,7 +155,7 @@ export default function GameMode({ lessons }: GameModeProps) {
155155
<GameProgressComponent progress={progress} />
156156

157157
<div className="mt-6 bg-gray-800 rounded-2xl shadow-xl p-6 border border-gray-700">
158-
<h3 className="text-xl font-bold text-white mb-4">📚 Chapters</h3>
158+
<h3 className="text-xl font-bold text-white mb-4">Chapters</h3>
159159
<div className="space-y-2">
160160
{lessons.map((lesson) => (
161161
<button
@@ -177,7 +177,7 @@ export default function GameMode({ lessons }: GameModeProps) {
177177
>
178178
<div className="flex items-center justify-between gap-2">
179179
<span className="font-semibold break-words">Chapter {lesson.chapter}</span>
180-
{!lesson.unlocked && <span className="flex-shrink-0">🔒</span>}
180+
{!lesson.unlocked && <span className="flex-shrink-0">LOCKED</span>}
181181
</div>
182182
<p className="text-sm mt-1 opacity-75 break-words">{lesson.title}</p>
183183
</button>

0 commit comments

Comments
 (0)