diff --git a/src/components/Events.css b/src/components/Events.css deleted file mode 100644 index af5dac9..0000000 --- a/src/components/Events.css +++ /dev/null @@ -1,63 +0,0 @@ -* -{ - font-family: "Cousine", monospace; -} -.container { - display: flex; - justify-content: center; - align-items: center; - margin-top: 50px; - gap: 70px; - padding-top: 3rem; - padding-bottom: 3rem; -} - -.events { - display: flex; - align-items: center; - justify-content: center; - flex-direction: column; -} - -.events h2 { - text-transform: uppercase; - font-size: 35px; - color: #035b98; -} - -.events .gray { - color: #868686; - font-size: 30px; -} - -img { - width: 100%; -} - -.swiper { - width: 340px; - height: 420px; - padding: 0% !important; - margin: 0% !important; -} - -.swiper-slide { - display: flex !important; - flex-direction: column; - align-items: center; - justify-content: center; - border-radius: 18px; - color: #fff; -} - -.swiper-slide h1 { - font-size: 22px; -} - -.swiper-slide p { - font-size: 18px; -} - -.swiper-slide { - background-color: #00629b; -} diff --git a/src/components/Events.tsx b/src/components/Events.tsx index 440d955..21fcc3d 100644 --- a/src/components/Events.tsx +++ b/src/components/Events.tsx @@ -1,19 +1,23 @@ -// import Swiper core and required modules import { EffectCards } from "swiper/modules"; import Git from "../../public/Events/Git.jpeg"; import WelcomeBack from "../../public/Events/WelcomeBack.jpeg"; -type Image = { +type Card = { src: string; name: string; description?: string; }; -const images: Image[] = [ +const card: Card[] = [ { src: Git.src, - name: "Git desde Cero", + name: "IEEE - ESTl Student Workshops", + description: "Taller: Git desde Cero", + }, + { + src: WelcomeBack.src, + name: "Welcome Back", description: "", }, { @@ -23,25 +27,44 @@ const images: Image[] = [ }, ]; -import "./Events.css"; +import "./cssEvents/Events.css"; import { Swiper, SwiperSlide } from "swiper/react"; -// Import Swiper styles import "swiper/css"; import "swiper/css/navigation"; import "swiper/css/pagination"; import "swiper/css/scrollbar"; +const buildStyle = ({ animation }: { animation?: string }) => { + let style = { "--animation": animation } as React.CSSProperties; + + return style; +}; + export default function App() { return ( <>
{image.description}
-{Card.description}
+