+ <>
{isLoading ? (
Loading...
) : (
@@ -43,30 +42,26 @@ const CourseIdPage = (params : any) => {
Course
{courseInfo.course.name}{" "}
-
-
+
-
{" "}
-
{courseInfo.chapters.map((chapter: any) => {
- return <>
- {chapter.elements.map((element: any) => {
- return <>
-
-
-
-
- {" "}
- >;
- })}
-
- >;
+ return (
+ <>
+ {chapter.elements.map((element: any) => {
+ return (
+ <>
+
+
+ {" "}
+ >
+ );
+ })}
+
+ >
+ );
})}
@@ -75,48 +70,54 @@ const CourseIdPage = (params : any) => {
Description
- {courseInfo.course.description}
+
+
+ {courseInfo.course.description}
+
What you will learn
- {courseInfo.course.learnings == ![] ? "no data" : courseInfo.course.learnings}
+
+ {courseInfo.course.learnings == ![] ? "no data" : courseInfo.course.learnings}
+
Course Lessons
- {courseInfo.chapters.map((chapter: any) => {
- return <>
- Chapter : {chapter.name}
- {chapter.elements.map((element: any) => {
- return <>
-
- Element {element.name}
-
-
-
-
- {" "}
-
- >;
- })}
-
- >;
- })}
+
+ {courseInfo.chapters.map((chapter: any) => {
+ return (
+ <>
+ Chapter : {chapter.name}
+ {chapter.elements.map((element: any) => {
+ return (
+ <>
+
+ Element {element.name}
+
+
+ {" "}
+
+ >
+ );
+ })}
+
+ >
+ );
+ })}
+
)}
-
+ >
);
};
const CourseThumbnailWrapper = styled.div`
display: flex;
+ padding-bottom: 20px;
img {
- width: 794px;
- height: 224.28px;
+ width: 100%;
+ height: 300px;
object-fit: cover;
- object-position: top;
-
+ object-position: center;
background: url(), #d9d9d9;
border: 1px solid rgba(255, 255, 255, 0.19);
box-shadow: 0px 13px 33px -13px rgba(0, 0, 0, 0.42);
@@ -124,21 +125,39 @@ const CourseThumbnailWrapper = styled.div`
}
`;
const CoursePageLayout = styled.div`
- margin-left: 40px;
- margin-right: 40px;
+ width: 1300px;
+ margin: 0 auto;
+ p {
+ margin-bottom: 0px;
+ letter-spacing: -0.05em;
+
+ color: #727272;
+ font-weight: 700;
+ }
+ h1 {
+ margin-top: 5px;
+ letter-spacing: -0.05em;
+ margin-bottom: 10px;
+ }
+
+
`;
const ChaptersWrapper = styled.div`
display: flex;
+ justify-content: space-around;
+ width: 100%;
`;
const ChapterIndicator = styled.div`
border-radius: 20px;
height: 5px;
background: #151515;
border-radius: 3px;
- width: 40px;
+
+ width: 35px;
background-color: black;
margin: 10px;
+ margin-bottom: 20px;
margin-left: 0px;
transition: all 0.2s ease;
@@ -148,4 +167,24 @@ const ChapterIndicator = styled.div`
}
`;
+const BoxWrapper = styled.div`
+ background: #ffffff;
+ box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.03);
+ border-radius: 7px;
+ padding: 20px;
+ padding-top: 7px;
+ padding-left: 30px;
+
+
+ p {
+ font-family: "DM Sans";
+ font-style: normal;
+ font-weight: 500;
+ line-height: 16px;
+ letter-spacing: -0.02em;
+
+ color: #9d9d9d;
+ }
+`;
+
export default CourseIdPage;
diff --git a/front/app/_orgs/[orgslug]/courses/new/page.tsx b/front/app/_orgs/[orgslug]/courses/new/page.tsx
index 971ab532..a05ad43c 100644
--- a/front/app/_orgs/[orgslug]/courses/new/page.tsx
+++ b/front/app/_orgs/[orgslug]/courses/new/page.tsx
@@ -1,3 +1,4 @@
+"use client";
import { useRouter } from "next/navigation";
import React from "react";
import { Header } from "../../../../../components/UI/Header";
@@ -55,8 +56,7 @@ const NewCoursePage = (params: any) => {
return (
-