Skip to content

Commit f422b29

Browse files
feat: serve images, make 11 public
2 parents 850cafc + 4d491f8 commit f422b29

35 files changed

+387
-1502
lines changed

.gitpod.Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ ARG REPO_NAME=solana-curriculum
44
ARG HOMEDIR=/workspace/$REPO_NAME
55

66
WORKDIR ${HOMEDIR}
7-
ENV HOME=${HOMEDIR}
87

98
RUN bash -c 'VERSION="18" \
109
&& source $HOME/.nvm/nvm.sh && nvm install $VERSION \

config/projects.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@
112112
"dashedName": "learn-how-to-build-a-client-side-app-part-2",
113113
"isIntegrated": false,
114114
"description": "In this project, you will learn how to use the Phantom browser extension to connect to your local validator, connect your wallet to your dApp, and sign transactions.",
115-
"isPublic": false,
116-
"currentLesson": 13,
115+
"isPublic": true,
116+
"currentLesson": 1,
117117
"runTestsOnWatch": true,
118118
"numberOfLessons": 35
119119
},
@@ -159,4 +159,4 @@
159159
"currentLesson": 1,
160160
"numberOfLessons": 1
161161
}
162-
]
162+
]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

curriculum/locales/english/learn-how-to-build-a-client-side-app-part-2.md

+128-20
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,13 @@ assert.include(lastCommand, 'done');
477477

478478
Click the "Download" button, and follow your browser's instructions to add the extension.
479479

480-
![Phantom browser extension download page](image.png)
480+
![Phantom browser extension download page](../../images/phantom/image.png)
481+
482+
<style>
483+
img {
484+
width: 100%;
485+
}
486+
</style>
481487

482488
### --tests--
483489

@@ -496,7 +502,13 @@ After installing the extension, click the Phantom icon in your browser's toolbar
496502

497503
Create a password, and click "Continue".
498504

499-
![Phantom browser extension password creation](image-2.png)
505+
![Phantom browser extension password creation](../../images/phantom/image-2.png)
506+
507+
<style>
508+
img {
509+
width: 100%;
510+
}
511+
</style>
500512

501513
### --tests--
502514

@@ -513,7 +525,13 @@ assert.include(lastCommand, 'done');
513525

514526
Take note of your secret recovery phrase. This is the only way to recover your wallet if you forget your password, and can be used to import your wallet into other browsers/platforms. Then, click "Continue".
515527

516-
![Phantom browser extension secret recovery phrase](image-3.png)
528+
![Phantom browser extension secret recovery phrase](../../images/phantom/image-3.png)
529+
530+
<style>
531+
img {
532+
width: 100%;
533+
}
534+
</style>
517535

518536
### --tests--
519537

@@ -530,7 +548,13 @@ assert.include(lastCommand, 'done');
530548

531549
Finish reading the setup information, and click the Phantom icon in your browser's toolbar to open the extension.
532550

533-
![Phantom browser extension setup information](image-4.png)
551+
![Phantom browser extension setup information](../../images/phantom/image-4.png)
552+
553+
<style>
554+
img {
555+
width: 100%;
556+
}
557+
</style>
534558

535559
### --tests--
536560

@@ -547,7 +571,13 @@ assert.include(lastCommand, 'done');
547571

548572
You should a UI similar to:
549573

550-
![Phantom browser extension landing page](image-5.png)
574+
![Phantom browser extension landing page](../../images/phantom/image-5.png)
575+
576+
<style>
577+
img {
578+
width: 100%;
579+
}
580+
</style>
551581

552582
Open the menubar by clicking the three dots in the top left corner.
553583

@@ -566,7 +596,13 @@ assert.include(lastCommand, 'done');
566596

567597
Open the settings page:
568598

569-
![Phantom browser extension settings button](image-6.png)
599+
![Phantom browser extension settings button](../../images/phantom/image-6.png)
600+
601+
<style>
602+
img {
603+
width: 100%;
604+
}
605+
</style>
570606

571607
### --tests--
572608

@@ -583,7 +619,13 @@ assert.include(lastCommand, 'done');
583619

584620
Click the "Developer Settings" button.
585621

586-
![Phantom browser extension developer settings button](image-7.png)
622+
![Phantom browser extension developer settings button](../../images/phantom/image-7.png)
623+
624+
<style>
625+
img {
626+
width: 100%;
627+
}
628+
</style>
587629

588630
### --tests--
589631

@@ -600,7 +642,13 @@ assert.include(lastCommand, 'done');
600642

601643
Enable the "Testnet Mode" in order to connect to your local validator.
602644

603-
![Phantom browser extension testnet mode](image-8.png)
645+
![Phantom browser extension testnet mode](../../images/phantom/image-8.png)
646+
647+
<style>
648+
img {
649+
width: 100%;
650+
}
651+
</style>
604652

605653
### --tests--
606654

@@ -617,7 +665,13 @@ assert.include(lastCommand, 'done');
617665

618666
Click the Solana network button.
619667

620-
![Phantom browser extension solana network button](image-9.png)
668+
![Phantom browser extension solana network button](../../images/phantom/image-9.png)
669+
670+
<style>
671+
img {
672+
width: 100%;
673+
}
674+
</style>
621675

622676
### --tests--
623677

@@ -634,7 +688,13 @@ assert.include(lastCommand, 'done');
634688

635689
Select the "Solana Localnet" option.
636690

637-
![Phantom browser extension solana localnet option](image-10.png)
691+
![Phantom browser extension solana localnet option](../../images/phantom/image-10.png)
692+
693+
<style>
694+
img {
695+
width: 100%;
696+
}
697+
</style>
638698

639699
### --tests--
640700

@@ -651,7 +711,13 @@ assert.include(lastCommand, 'done');
651711

652712
From the menubar, click the account to edit it.
653713

654-
![Phantom browser extension account button](image-12.png)
714+
![Phantom browser extension account button](../../images/phantom/image-12.png)
715+
716+
<style>
717+
img {
718+
width: 100%;
719+
}
720+
</style>
655721

656722
### --tests--
657723

@@ -668,7 +734,13 @@ assert.include(lastCommand, 'done');
668734

669735
Change the account name to `Player 1` to help you keep track of it.
670736

671-
![Phantom browser extension account name](image-12.png)
737+
![Phantom browser extension account name](../../images/phantom/image-12.png)
738+
739+
<style>
740+
img {
741+
width: 100%;
742+
}
743+
</style>
672744

673745
### --tests--
674746

@@ -733,7 +805,13 @@ try {
733805

734806
Within the Phantom browser extension, click on your account name to get your Solana public key:
735807

736-
![Phantom browser extension account public key](image-13.png)
808+
![Phantom browser extension account public key](../../images/phantom/image-13.png)
809+
810+
<style>
811+
img {
812+
width: 100%;
813+
}
814+
</style>
737815

738816
### --tests--
739817

@@ -782,7 +860,13 @@ Within your browser, navigate to http://localhost:5173/. You should see the clie
782860

783861
Connect your wallet to the app by clicking the "Connect Wallet" button.
784862

785-
![Phantom browser extension connect wallet button](image-14.png)
863+
![Phantom browser extension connect wallet button](../../images/phantom/image-14.png)
864+
865+
<style>
866+
img {
867+
width: 100%;
868+
}
869+
</style>
786870

787871
### --tests--
788872

@@ -799,9 +883,15 @@ assert.include(lastCommand, 'done');
799883

800884
Within the Phantom browser extension, create a second Solana account:
801885

802-
![Phantom browser extension create account button](image-15.png)
886+
![Phantom browser extension create account button](../../images/phantom/image-15.png)
803887

804-
![Phantom browser extension create account button](image-16.png)
888+
<style>
889+
img {
890+
width: 100%;
891+
}
892+
</style>
893+
894+
![Phantom browser extension create account button](../../images/phantom/image-16.png)
805895

806896
### --tests--
807897

@@ -818,7 +908,13 @@ assert.include(lastCommand, 'done');
818908

819909
Rename the second account to `Player 2`:
820910

821-
![Phantom browser extension rename account button](image-17.png)
911+
![Phantom browser extension rename account button](../../images/phantom/image-17.png)
912+
913+
<style>
914+
img {
915+
width: 100%;
916+
}
917+
</style>
822918

823919
### --tests--
824920

@@ -869,7 +965,13 @@ Within the client app, click the start game button.
869965

870966
The Phantom browser extension should prompt you to approve the transaction. Approve it.
871967

872-
![Phantom browser extension approve transaction](image-19.png)
968+
![Phantom browser extension approve transaction](../../images/phantom/image-19.png)
969+
970+
<style>
971+
img {
972+
width: 100%;
973+
}
974+
</style>
873975

874976
### --tests--
875977

@@ -886,9 +988,15 @@ assert.include(lastCommand, 'done');
886988

887989
Once the game is started, you can play the game by opening a second browser window, and connecting to the second account.
888990

889-
![Phantom browser extension connect wallet button](image-18.png)
991+
![Phantom browser extension connect wallet button](../../images/phantom/image-18.png)
992+
993+
![Phantom browser extension approve transaction](../../images/phantom/image-19.png)
890994

891-
![Phantom browser extension approve transaction](image-19.png)
995+
<style>
996+
img {
997+
width: 100%;
998+
}
999+
</style>
8921000

8931001
### --tests--
8941002

freecodecamp.conf.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"description": "Learn the Solana toolchain, and test your new-found skills.",
3838
"faq-link": "#",
3939
"faq-text": "https://github.com/freeCodeCamp/solana-curriculum/issues"
40-
}
40+
},
41+
"static": { "/images/phantom": "./curriculum/images/phantom" }
4142
},
4243
"config": {
4344
"projects.json": "./config/projects.json",

learn-how-to-build-a-client-side-app-part-2/_answer/app/.gitignore

-24
This file was deleted.

0 commit comments

Comments
 (0)