From f35b7ab48246e297b6fc688a140661226499b328 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sun, 5 May 2024 13:24:55 -0500 Subject: [PATCH] added 2 lesson --- src/App.tsx | 11 +++++++++++ src/Components/Progress.tsx | 28 +++++++++++++++++++++------- src/Styles/Progress.modules.css | 8 ++++++++ 3 files changed, 40 insertions(+), 7 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index ea2ce4610..9ba7c81d4 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -78,6 +78,15 @@ function App() { const toSecondLesson = () => { setPage("lesson/tcp_lesson"); }; + + const toThirdLesson = () => { + setPage("lesson/dns_lesson"); + }; + + const toFourthLesson = () => { + setPage("lesson/ip_lesson"); + }; + return (
@@ -183,6 +192,8 @@ function App() { backToHomeHandler={backToHome} goToFirstLesson={toFirstLesson} goToSecondLesson={toSecondLesson} + goToThirdLesson={toThirdLesson} + goToFourthLesson={toFourthLesson} SettingsHandler={toSettingsPage} /> } diff --git a/src/Components/Progress.tsx b/src/Components/Progress.tsx index fe5955b79..62502349a 100644 --- a/src/Components/Progress.tsx +++ b/src/Components/Progress.tsx @@ -17,6 +17,8 @@ interface Props { backToHomeHandler: () => void; goToFirstLesson: () => void; goToSecondLesson: () => void; + goToThirdLesson: () => void; + goToFourthLesson: () => void; } function Progress({ ProfileHandler, @@ -26,11 +28,13 @@ function Progress({ ProfileHandler, backToHomeHandler, SettingsHandler, goToFirstLesson, - goToSecondLesson }: Props) { + goToSecondLesson, + goToThirdLesson, + goToFourthLesson }: Props) { return (
- -
@@ -93,11 +97,21 @@ function Progress({ ProfileHandler,
-
+
-
+
LESSON 3
-
"Topic"
+
DNS
+
+
+
+ + +
+
+
+
LESSON 4
+
SHESH
diff --git a/src/Styles/Progress.modules.css b/src/Styles/Progress.modules.css index 27a1fb27d..3ca2e827e 100644 --- a/src/Styles/Progress.modules.css +++ b/src/Styles/Progress.modules.css @@ -169,6 +169,14 @@ top: 105%; } +#lesson4-box { + position: absolute; + width: 20%; + height: 18%; + left: 10%; + top: 140%; +} + #unlocked-border { box-sizing: border-box;