From 8b64ace7db6a414a3f7335008d129aece9ef0dfc Mon Sep 17 00:00:00 2001 From: Adrian Ruiz Date: Fri, 1 Aug 2025 19:01:32 -0500 Subject: [PATCH 1/4] Advance: pre-exams card structure --- src/components/home/pre-exams-content.tsx | 245 ++++++++++++++++++++++ src/components/home/sections/about-us.tsx | 7 +- 2 files changed, 249 insertions(+), 3 deletions(-) create mode 100644 src/components/home/pre-exams-content.tsx diff --git a/src/components/home/pre-exams-content.tsx b/src/components/home/pre-exams-content.tsx new file mode 100644 index 0000000..7cef653 --- /dev/null +++ b/src/components/home/pre-exams-content.tsx @@ -0,0 +1,245 @@ +interface PreExam { + id: string; + title: string; + description: string; + dates: string[]; + images: string[]; + materials: { + name: string; + url: string; + type: 'pdf' | 'ppt' | 'doc' | 'link'; + }[]; + topics: string[]; +} + +const preExams: PreExam[] = [ + { + id: "1", + title: "Taller: Introducción a la Programación", + description: "Taller básico para principiantes. Conceptos fundamentales de programación y lógica computacional.", + dates: ["15 de Marzo, 2024", "22 de Marzo, 2024", "5 de Abril, 2024"], + images: [ + "https://images.pexels.com/photos/1181467/pexels-photo-1181467.jpeg?auto=compress&cs=tinysrgb&w=500" + ], + materials: [ + { + name: "Presentación del Taller", + url: "#", + type: "ppt" + }, + { + name: "Ejercicios Prácticos", + url: "#", + type: "pdf" + } + ], + topics: ["Variables", "Estructuras de control", "Funciones", "Arrays"] + }, + { + id: "2", + title: "Taller: Programación Avanzada", + description: "Técnicas avanzadas de programación y mejores prácticas para desarrollo eficiente.", + dates: ["22 de Marzo, 2024", "29 de Marzo, 2024", "12 de Abril, 2024"], + images: [ + "https://images.pexels.com/photos/1181676/pexels-photo-1181676.jpeg?auto=compress&cs=tinysrgb&w=500" + ], + materials: [ + { + name: "Guía de Programación Avanzada", + url: "#", + type: "pdf" + }, + { + name: "Código de Ejemplos", + url: "#", + type: "link" + } + ], + topics: ["POO", "Recursión", "Manejo de errores", "Optimización"] + }, + { + id: "3", + title: "Taller: Estructuras de Datos", + description: "Implementación y uso de estructuras de datos fundamentales para resolver problemas complejos.", + dates: ["29 de Marzo, 2024", "5 de Abril, 2024", "19 de Abril, 2024"], + images: [ + "https://images.pexels.com/photos/1181677/pexels-photo-1181677.jpeg?auto=compress&cs=tinysrgb&w=500" + ], + materials: [ + { + name: "Estructuras de Datos - Teoría", + url: "#", + type: "pdf" + }, + { + name: "Implementaciones", + url: "#", + type: "link" + } + ], + topics: ["Listas", "Pilas y colas", "Árboles", "Grafos"] + }, + { + id: "4", + title: "Taller: Análisis de Algoritmos", + description: "Análisis de complejidad temporal y espacial. Técnicas para optimizar algoritmos.", + dates: ["5 de Abril, 2024", "12 de Abril, 2024", "26 de Abril, 2024"], + images: [ + "https://images.pexels.com/photos/1181678/pexels-photo-1181678.jpeg?auto=compress&cs=tinysrgb&w=500" + ], + materials: [ + { + name: "Análisis de Algoritmos", + url: "#", + type: "pdf" + }, + { + name: "Problemas de Práctica", + url: "#", + type: "pdf" + } + ], + topics: ["Complejidad", "Ordenamiento", "Búsqueda", "Optimización"] + } +]; + +export function PreExamsContent() { + return ( +
+ + +
+ {preExams.map((preExam) => ( +
+ {/* Header */} +
+

+ {preExam.title} +

+
+ 📅 Fechas: + {preExam.dates.map((date, index) => ( + + {date} + + ))} +
+
+ + {/* Description */} +
+

+ {preExam.description} +

+ + {/* Topics */} +
+

+ 🎯 Temas Cubiertos +

+
+ {preExam.topics.map((topic, index) => ( + + {topic} + + ))} +
+
+ + {/* Images */} + {preExam.images.length > 0 && ( +
+

+ 📸 Galería +

+
+ {preExam.images.map((image, index) => ( +
+ {`Imagen +
+ + + +
+
+ ))} +
+
+ )} + + {/* Materials */} + +
+
+ ))} +
+ + {/* Call to Action */} +
+

+ ¿Te interesa participar en nuestros próximos preparciales? +

+ +
+
+ ); +} \ No newline at end of file diff --git a/src/components/home/sections/about-us.tsx b/src/components/home/sections/about-us.tsx index 3ccd136..3e77c5b 100644 --- a/src/components/home/sections/about-us.tsx +++ b/src/components/home/sections/about-us.tsx @@ -2,6 +2,7 @@ import React, { useEffect, useState } from "react"; import { Carousel, Card } from "@/components/home/apple-cards-carousel"; import { FocusCards } from "../focus-cards"; +import { PreExamsContent } from "../pre-exams-content"; export function AboutUs() { const cards = carrousel_items.map((card, index) => ( @@ -78,10 +79,10 @@ const carrousel_items = [ content: , }, { - category: "Productivity", - title: "Enhance your productivity.", + category: "Talleres Pre-Parciales", + title: "Refuerza tus conocimientos antes de los parciales con nuestros talleres", src: "https://images.unsplash.com/photo-1531554694128-c4c6665f59c2?q=80&w=3387&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", - content: <>, + content: , }, { category: "Product", From 172192a3cc08df43d1f7784808a31738504c31aa Mon Sep 17 00:00:00 2001 From: Adrian Ruiz Date: Sun, 21 Sep 2025 17:36:42 -0500 Subject: [PATCH 2/4] New: pre-exams card --- src/components/home/pre-exams-content.tsx | 136 +++++++++------------- src/components/home/sections/about-us.tsx | 27 +---- 2 files changed, 57 insertions(+), 106 deletions(-) diff --git a/src/components/home/pre-exams-content.tsx b/src/components/home/pre-exams-content.tsx index 7cef653..0ff4272 100644 --- a/src/components/home/pre-exams-content.tsx +++ b/src/components/home/pre-exams-content.tsx @@ -3,7 +3,6 @@ interface PreExam { title: string; description: string; dates: string[]; - images: string[]; materials: { name: string; url: string; @@ -16,98 +15,90 @@ const preExams: PreExam[] = [ { id: "1", title: "Taller: Introducción a la Programación", - description: "Taller básico para principiantes. Conceptos fundamentales de programación y lógica computacional.", - dates: ["15 de Marzo, 2024", "22 de Marzo, 2024", "5 de Abril, 2024"], - images: [ - "https://images.pexels.com/photos/1181467/pexels-photo-1181467.jpeg?auto=compress&cs=tinysrgb&w=500" - ], + description: "Conceptos fundamentales de programación y lógica computacional.", + dates: ["23 de Agosto, 2023", "8 de Noviembre, 2023", "4 de Marzo, 2025", "7 de Abril, 2025", "19 de Mayo, 2025"], materials: [ { - name: "Presentación del Taller", - url: "#", + name: "Slides - Parcial No. 1", + url: "https://drive.google.com/file/d/1gWnlsfQTYN-qMi2M9cEa5l2Qz2W6dsdv/view?usp=drive_link", type: "ppt" }, { - name: "Ejercicios Prácticos", - url: "#", + name: "Simulacro - Parcial No. 2", + url: "https://drive.google.com/file/d/150yucdufPKI1WpLxzlGUFbTf4tMgzDcX/view?usp=drive_link", + type: "pdf" + }, + { + name: "Simulacro - Parcial No. 3", + url: "https://drive.google.com/file/d/1euu3OwXiu4OtuOYg4N4A9fZDv-IAkui2/view?usp=drive_link", type: "pdf" } ], - topics: ["Variables", "Estructuras de control", "Funciones", "Arrays"] + topics: ["Variables", "Estructuras de control", "Funciones", "Arrays", "C++"] }, { id: "2", title: "Taller: Programación Avanzada", - description: "Técnicas avanzadas de programación y mejores prácticas para desarrollo eficiente.", - dates: ["22 de Marzo, 2024", "29 de Marzo, 2024", "12 de Abril, 2024"], - images: [ - "https://images.pexels.com/photos/1181676/pexels-photo-1181676.jpeg?auto=compress&cs=tinysrgb&w=500" - ], + description: "Técnicas avanzadas de programación e introducción al paradigma orientado a objetos.", + dates: ["8 de Noviembre, 2023", "20 de Marzo, 2025", "19 de Mayo, 2025"], materials: [ { - name: "Guía de Programación Avanzada", - url: "#", + name: "Simulacro - Parcial No. 1", + url: "https://drive.google.com/file/d/1sHX0NrQoqPfqF0VriHFbTZArsQ84DGYz/view?usp=drive_link", type: "pdf" }, { - name: "Código de Ejemplos", - url: "#", - type: "link" + name: "Slides - Parcial No. 2", + url: "https://drive.google.com/file/d/1tkwQnNmzPcSGHb58dqekBJBxaq_7sLm3/view?usp=drive_link", + type: "ppt" + }, + { + name: "Simulacro - Parcial No. 2", + url: "https://drive.google.com/file/d/1oywoalikehnSqVLAYtni-kxqndmZFktM/view?usp=drive_link", + type: "pdf" + }, + { + name: "Slides - Parcial No. 3", + url: "https://drive.google.com/file/d/1fdLJsQBw3hNAATq3Z65aj6MM_R7vg0QY/view?usp=drive_link", + type: "ppt" } ], - topics: ["POO", "Recursión", "Manejo de errores", "Optimización"] + topics: ["POO", "Apuntadores", "Manejo de errores", "Java", "C++"] }, { id: "3", title: "Taller: Estructuras de Datos", description: "Implementación y uso de estructuras de datos fundamentales para resolver problemas complejos.", - dates: ["29 de Marzo, 2024", "5 de Abril, 2024", "19 de Abril, 2024"], - images: [ - "https://images.pexels.com/photos/1181677/pexels-photo-1181677.jpeg?auto=compress&cs=tinysrgb&w=500" - ], + dates: ["29 de Febrero, 2025", "9 de Abril, 2025", "29 de Mayo, 2025"], materials: [ { - name: "Estructuras de Datos - Teoría", - url: "#", + name: "Simulacro - Parcial No. 2", + url: "https://drive.google.com/file/d/1p9_xnDmhrYLXkz-1jybUHx_rgb-dnOMo/view?usp=drive_link", type: "pdf" }, { - name: "Implementaciones", - url: "#", - type: "link" - } - ], - topics: ["Listas", "Pilas y colas", "Árboles", "Grafos"] - }, - { - id: "4", - title: "Taller: Análisis de Algoritmos", - description: "Análisis de complejidad temporal y espacial. Técnicas para optimizar algoritmos.", - dates: ["5 de Abril, 2024", "12 de Abril, 2024", "26 de Abril, 2024"], - images: [ - "https://images.pexels.com/photos/1181678/pexels-photo-1181678.jpeg?auto=compress&cs=tinysrgb&w=500" - ], - materials: [ + name: "Solución Simulacro - Parcial No. 2", + url: "https://drive.google.com/file/d/1Bs1gWolsEWe0zTA4Ecpf3bnHYhfiyUB2/view?usp=drive_link", + type: "pdf" + }, { - name: "Análisis de Algoritmos", - url: "#", + name: "Simulacro (presencial) - Parcial No. 3", + url: "https://drive.google.com/file/d/1gqrUUhCenLDZxbGtxcQ7iheBy5I4BaIg/view?usp=drive_linkk", type: "pdf" }, { - name: "Problemas de Práctica", - url: "#", + name: "Simulacro (virtual) - Parcial No. 3", + url: "https://drive.google.com/file/d/1H3fIQTNZgWYw0DVlFCs-2gOzXJ5yDYdn/view?usp=drive_link", type: "pdf" - } + }, ], - topics: ["Complejidad", "Ordenamiento", "Búsqueda", "Optimización"] + topics: ["STL", "Árboles", "Grafos", "C++"] } ]; export function PreExamsContent() { return ( -
- - +
{preExams.map((preExam) => (
@@ -152,31 +143,6 @@ export function PreExamsContent() {
- {/* Images */} - {preExam.images.length > 0 && ( -
-

- 📸 Galería -

-
- {preExam.images.map((image, index) => ( -
- {`Imagen -
- - - -
-
- ))} -
-
- )} - {/* Materials */} ); diff --git a/src/components/home/sections/about-us.tsx b/src/components/home/sections/about-us.tsx index 37a795d..4b1a3bf 100644 --- a/src/components/home/sections/about-us.tsx +++ b/src/components/home/sections/about-us.tsx @@ -93,32 +93,13 @@ const carrousel_items = [ { category: "Talleres Pre-Parciales", title: "Refuerza tus conocimientos antes de los parciales con nuestros talleres", - src: "https://images.unsplash.com/photo-1531554694128-c4c6665f59c2?q=80&w=3387&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", + src: "https://drive.google.com/uc?export=view&id=1mAWVNMh5wmlaBaciCkSMOV2nQXVYkMAu", content: , }, { - category: "Product", - title: "Launching the new Apple Vision Pro.", - src: "https://images.unsplash.com/photo-1713869791518-a770879e60dc?q=80&w=2333&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", - content: <>, - }, - - { - category: "Product", - title: "Maps for your iPhone 15 Pro Max.", - src: "https://images.unsplash.com/photo-1599202860130-f600f4948364?q=80&w=2515&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", - content: <>, - }, - { - category: "iOS", - title: "Photography just got better.", - src: "https://images.unsplash.com/photo-1602081957921-9137a5d6eaee?q=80&w=2793&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", - content: <>, - }, - { - category: "Hiring", - title: "Hiring for a Staff Software Engineer", - src: "https://images.unsplash.com/photo-1511984804822-e16ba72f5848?q=80&w=2048&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", + category: "Cursos y Talleres", + title: "Aprende nuevas habilidades con nuestros cursos y talleres", + src: "https://drive.google.com/uc?export=view&id=1HH58GMKbAqUc06YbqzhHifatfKGDRpV0", content: <>, }, ]; From c7c88ff4fe88673942783dd05e367f8110b4e063 Mon Sep 17 00:00:00 2001 From: Adrian Ruiz Date: Fri, 3 Oct 2025 08:41:06 -0500 Subject: [PATCH 3/4] Fix: Better title for "About Us" section and unused components removed. --- src/app/page.tsx | 6 +- src/components/home/bento-grid.tsx | 56 --- src/components/home/sections/about-us.tsx | 105 ----- src/components/home/sections/activities.tsx | 422 ++++---------------- src/components/home/ui/table.tsx | 117 ------ 5 files changed, 87 insertions(+), 619 deletions(-) delete mode 100644 src/components/home/bento-grid.tsx delete mode 100644 src/components/home/sections/about-us.tsx delete mode 100644 src/components/home/ui/table.tsx diff --git a/src/app/page.tsx b/src/app/page.tsx index aee5b72..c1261cf 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,5 +1,5 @@ "use client"; -import { AboutUs } from "@/components/home/sections/about-us"; +import { Activities } from "@/components/home/sections/activities"; import { Hero } from "@/components/home/sections/hero"; import { Members } from "@/components/home/sections/members"; import { HeroUIProvider } from "@heroui/react"; @@ -11,7 +11,7 @@ import Contributors from "@/components/home/sections/contributors"; const navLinks = [ { key: "home", label: "Inicio", href: "#home" }, - { key: "about us", label: "Sobre Nosotros", href: "#about-us" }, + { key: "activities", label: "Actividades", href: "#activities" }, { key: "members", label: "Miembros", href: "#members" }, { key: "league", label: "La Liga", href: "/league" }, ]; @@ -25,7 +25,7 @@ export default function HomePage() { - +