Skip to content

Commit

Permalink
update: student profile
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhtnguyen committed Feb 10, 2025
1 parent 412007e commit ec20d27
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions src/components/learners/teacher-profile/CoursesSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,27 @@ import Image from 'next/image';
import React, { useState } from 'react';
import { TbLoader } from 'react-icons/tb';

/*
* ======================================================================
* Copyright (C) 2025 - lzaycoe (Lazy Code)
* ======================================================================
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* ======================================================================
*/

/*
* ======================================================================
* Copyright (C) 2025 - lzaycoe (Lazy Code)
Expand Down Expand Up @@ -215,7 +236,7 @@ const CourseSection: React.FC = () => {
role="region"
aria-label="Course and Student Feedback Section"
>
<nav className="flex pr-20 text-base font-medium leading-none text-center whitespace-nowrap max-w-[872px] max-md:pr-5 ">
<nav className="flex pr-20 text-base font-medium leading-none text-center whitespace-nowrap max-w-[872px] max-md:pr-5">
<button
className={`gap-2.5 self-stretch py-5 bg-white shadow-sm text-neutral-800 w-[200px] ${activeTab === 'courses' ? 'border-b-2 border-orange-500' : ''}`}
onClick={() => setActiveTab('courses')}
Expand All @@ -232,7 +253,7 @@ const CourseSection: React.FC = () => {
</nav>

{activeTab === 'courses' && (
<h1 className="text-2xl font-bold text-neutral-800 mt-6">
<h1 className="text-2xl font-bold text-neutral-800 mt-6 mb-6">
Voka Courses (02)
</h1>
)}
Expand Down Expand Up @@ -273,7 +294,7 @@ const CourseSection: React.FC = () => {

{activeTab === 'reviews' && (
<div
className="flex flex-col max-w-[872px]"
className="flex flex-col max-w-[872px] mt-6"
role="region"
aria-label="Student Feedback Section"
>
Expand Down

0 comments on commit ec20d27

Please sign in to comment.