From 0877e042c1fb499955eb63c7621f1bc0567e72e2 Mon Sep 17 00:00:00 2001 From: Bojay Liu <189326887+BojayL@users.noreply.github.com> Date: Mon, 22 Jun 2026 12:03:31 +0800 Subject: [PATCH] Update available courses view with Tailwind --- .../Dashboard/AvailableCourses/index.jsx | 6 +- .../src/views/Dashboard/CourseCard/index.jsx | 60 ++++++++++++------- 2 files changed, 42 insertions(+), 24 deletions(-) diff --git a/frontend/src/views/Dashboard/AvailableCourses/index.jsx b/frontend/src/views/Dashboard/AvailableCourses/index.jsx index 636fea2..a878090 100644 --- a/frontend/src/views/Dashboard/AvailableCourses/index.jsx +++ b/frontend/src/views/Dashboard/AvailableCourses/index.jsx @@ -2,8 +2,6 @@ import React, { useState, useEffect } from 'react'; import { Outlet } from 'react-router-dom'; import axios from 'axios'; import { useSelector, useDispatch } from 'react-redux'; -//styles -import Styles from './../Grid.module.css'; //actions import { logOut } from './../../../redux/actions/auth'; //components @@ -31,10 +29,10 @@ const AvailableCourses = () => { return ( <> -
+
{listCourses.map((course) => { return ( -
+
{ const navigate = useNavigate(); return ( <> -
-

{data.title}

-

{data.title_second}

-

{data.title_extra}

-
-

{data.type}

-

{data.duration}

-

Nivel {data.level}

+
+

+ {data.title} +

+

+ {data.title_second} +

+

+ {data.title_extra} +

+
+

+ {data.type} +

+

+ {data.duration} +

+

+ Nivel {data.level} +

-
-

+

+

Dominarás: {data.technologies}

-

+

Precio: {data.price}

-

+

Inicia: Al llegar a {data.minimum} aplicaciones daremos fecha.

-
+
{text2 && url2 && ( )} {text && url && ( )}
-
- {data.extra_alert && } -

{`${ +

+ {data.extra_alert && ( +