From 2fc1d0b42c250f396c3fe4a84d597b03520d4d00 Mon Sep 17 00:00:00 2001 From: lauralog Date: Tue, 22 Oct 2024 13:19:27 +0200 Subject: [PATCH] ajustes y mejoras --- README.md | 7 + app/courses/page.js | 3 +- app/design-system/page.js | 22 +- app/documentation/page.js | 2 +- app/layout.js | 8 +- app/page.js | 18 +- app/research/page.js | 6 +- app/team/page.js | 59 ++--- components/LangSwitcher.js | 91 ------- components/LangSwitcher.jsx | 39 +++ components/RecentPublications.jsx | 10 +- components/TabsCategoryFilter.jsx | 26 +- components/core/Cards.jsx | 67 ++--- components/core/Footer.jsx | 24 +- components/ui/badge.jsx | 4 +- components/ui/customCard.jsx | 10 +- constants/langs/es.js | 25 +- constants/placeholder-constants/courses.json | 38 +++ constants/placeholder-constants/projects.json | 42 +++ .../placeholder-constants}/publications.js | 18 +- constants/placeholder-constants/team.json | 52 ++++ .../placeholder-constants}/tools.js | 0 constants/publications.js | 6 +- placeholder-constants/courses.js | 122 --------- placeholder-constants/projects.js | 153 ----------- placeholder-constants/team.js | 165 ------------ .../assets/fonts/opensans-regular-webfont.eot | Bin 19794 -> 0 bytes .../assets/fonts/opensans-regular-webfont.svg | 244 ------------------ .../assets/fonts/opensans-regular-webfont.ttf | Bin 42524 -> 0 bytes .../fonts/opensans-regular-webfont.woff | Bin 23452 -> 0 bytes transformPublications.js | 2 +- 31 files changed, 327 insertions(+), 936 deletions(-) delete mode 100644 components/LangSwitcher.js create mode 100644 components/LangSwitcher.jsx create mode 100644 constants/placeholder-constants/courses.json create mode 100644 constants/placeholder-constants/projects.json rename {placeholder-constants => constants/placeholder-constants}/publications.js (93%) create mode 100644 constants/placeholder-constants/team.json rename {placeholder-constants => constants/placeholder-constants}/tools.js (100%) delete mode 100644 placeholder-constants/courses.js delete mode 100644 placeholder-constants/projects.js delete mode 100644 placeholder-constants/team.js delete mode 100644 public/assets/fonts/opensans-regular-webfont.eot delete mode 100644 public/assets/fonts/opensans-regular-webfont.svg delete mode 100644 public/assets/fonts/opensans-regular-webfont.ttf delete mode 100644 public/assets/fonts/opensans-regular-webfont.woff diff --git a/README.md b/README.md index bf4bf4d..e363bf0 100644 --- a/README.md +++ b/README.md @@ -1 +1,8 @@ # boiler prueba +Este boiler utiliza React, Next y Tailwind + +## Quick Start +--- +- npm install +- npm run dev + diff --git a/app/courses/page.js b/app/courses/page.js index eec48bc..2899d0d 100644 --- a/app/courses/page.js +++ b/app/courses/page.js @@ -28,9 +28,10 @@ export default function Courses() {

{t('courses.desc')}

- {courses.map(({ date, edition, title, description, route }) => { + {courses.map(({ date, edition, title, description, route }, key) => { return ( { - // window.scrollTo(0, 0); - // }, []); - // Funcion y array de categorias de Tabs - const [filteredCards, setFilteredCards] = useState(projects); - - // Tus categorías para el filtro - const categories = ["all", "ind", "erg", "other"]; + const [filteredCards, setFilteredCards] = useState(publications); return (
@@ -316,26 +310,26 @@ export default function DesignSystem(props) { {/* Pasa las categorías y las tarjetas al componente Tabs */}
{filteredCards.map( ( - { date, route, title, center, description, tags, category }, + { date, route, title, author, center, description, category }, index ) => ( ) diff --git a/app/documentation/page.js b/app/documentation/page.js index d40032e..b688a77 100644 --- a/app/documentation/page.js +++ b/app/documentation/page.js @@ -16,7 +16,7 @@ import { FaceIcon } from "@radix-ui/react-icons"; // Array de datos (cards) import { projects } from "@/constants/projects"; -import { mypublications } from "@/constants/publications"; +import { publications } from "@/constants/publications"; export default function Documentation(props) { diff --git a/app/layout.js b/app/layout.js index 81d0998..d89a536 100644 --- a/app/layout.js +++ b/app/layout.js @@ -34,13 +34,9 @@ export default function RootLayout({ children }) { Boiler -
-
-
+
{children} -
-
-
+