Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKillerz7 committed Jul 16, 2023
2 parents 5bfb20e + 2f527ce commit 8b3388f
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 3 deletions.
3 changes: 2 additions & 1 deletion frontend/components/CourseCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ export const CourseCard = ({
name,
certificate = false,
test = false,
img,
},
}: {
course?: Course
}) => {
return (
<div className="min-w-[290px] border-[0.5px] border-[#D6D6D6] rounded-xs">
<img src="/testimg.png" className="w-[100%] "></img>
<img src={img} className="w-[100%] "></img>
<div className="p-4">
<div className="text-lg">{name}</div>
<div className="mt-1 text-xs text-gray-300">{description}</div>
Expand Down
8 changes: 7 additions & 1 deletion frontend/constant/courses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const courses: Course[] = [
duration: '5 อาทิตย์ (30 ชั่วโมง)',
certificate: true,
test: true,
img: '/course/course-1.png',
},
{
id: '2',
Expand All @@ -26,6 +27,7 @@ export const courses: Course[] = [
duration: '2 อาทิตย์ (6 ชั่วโมง)',
certificate: true,
test: true,
img: '/course/course-2.png',
},
{
id: '3',
Expand All @@ -36,6 +38,7 @@ export const courses: Course[] = [
duration: '2 อาทิตย์ (6 ชั่วโมง)',
certificate: true,
test: true,
img: '/course/course-3.png',
},
{
id: '4',
Expand All @@ -45,6 +48,7 @@ export const courses: Course[] = [
schedule: [],
duration: '1 วัน (3 ชั่วโมง)',
certificate: true,
img: '/course/course-4.png',
},
{
id: '5',
Expand All @@ -55,14 +59,16 @@ export const courses: Course[] = [
duration: '2 วัน (3 ชั่วโมง)',
certificate: true,
test: true,
img: '/course/course-5.png',
},
{
id: '7',
id: '6',
name: 'ติดตั้ง/ซ่อมปั๊มน้ำ',
description: 'เรียนรู้การติดตั้งและซ่อมปั๊มน้ำขนาดเล็ก',
schedule: [],
location: 'กรุงเทพมหานคร',
duration: '1 วัน (3 ชั่วโมง)',
certificate: true,
img: '/course/course-6.png',
},
]
1 change: 1 addition & 0 deletions frontend/constant/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export type Course = {
dateTime: string
}[]
duration: string
img: string
certificate?: boolean
test?: boolean
}
8 changes: 7 additions & 1 deletion frontend/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ export default function Main() {
<div className="text-lg text-center ">
หางานและคอร์สที่ใช่สำหรับคุณ !
</div>
<img src="/images/banner.svg" className="mt-6"></img>
<div className="flex items-center gap-2 mt-5">
<div className="bg-lightBlue rounded-xs w-[48px] h-[48px] flex items-center justify-center">
<img src="/learning.svg" className="w-[32px] h-[32px]"></img>
</div>
<div className="text-2xl font-medium">คอร์สที่คุณกำลังเรียนอยู่</div>
</div>
<img src="/images/banner.svg" className="mt-4"></img>
<div className="flex items-center gap-2 mt-6">
<div className="bg-lightBlue rounded-xs w-[48px] h-[48px] flex items-center justify-center">
<img src="/learning.svg" className="w-[32px] h-[32px]"></img>
</div>
Expand Down
Binary file added frontend/public/course/course-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/course/course-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/course/course-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/course/course-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/course/course-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/course/course-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8b3388f

Please sign in to comment.