Skip to content

Commit

Permalink
updateSoon
Browse files Browse the repository at this point in the history
  • Loading branch information
EricV29 committed Mar 22, 2024
1 parent de3e959 commit 4a926e2
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 101 deletions.
98 changes: 0 additions & 98 deletions src/components/Soon.astro

This file was deleted.

75 changes: 75 additions & 0 deletions src/components/Soon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import { Swiper, SwiperSlide } from "swiper/react";
import "swiper/css";
import "swiper/css/effect-coverflow";
import "swiper/css/pagination";
import "./cssSoon/soon.css";
import { EffectCoverflow, Pagination } from "swiper/modules";
import cw from "../../public/SoonEvents/cw.jpeg";
import w1 from "../../public/SoonEvents/weekend1.jpeg";
import w2 from "../../public/SoonEvents/weekend2.jpeg";
import w3 from "../../public/SoonEvents/weekend3.jpeg";
import w4 from "../../public/SoonEvents/weekend4.jpeg";
import w5 from "../../public/SoonEvents/weekend5.jpeg";
import w6 from "../../public/SoonEvents/weekend6.jpeg";
import w7 from "../../public/SoonEvents/weekend7.jpeg";

type Card = {
src: string;
};

const card: Card[] = [
{
src: cw.src,
},
{
src: w1.src,
},
{
src: w2.src,
},
{
src: w3.src,
},
{
src: w4.src,
},
{
src: w5.src,
},
{
src: w6.src,
},
{
src: w7.src,
},
];

export default function App() {
return (
<>
{" "}
<Swiper
effect={"coverflow"}
grabCursor={true}
centeredSlides={true}
slidesPerView={"auto"}
coverflowEffect={{
rotate: 50,
stretch: 0,
depth: 100,
modifier: 1,
slideShadows: true,
}}
pagination={true}
modules={[EffectCoverflow, Pagination]}
className="mySwiper1"
>
{card.map((Card, index) => (
<SwiperSlide key={index}>
<img src={Card.src} />
</SwiperSlide>
))}
</Swiper>
</>
);
}
18 changes: 18 additions & 0 deletions src/components/cssSoon/soon.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.swiper.mySwiper1 {
width: 100%;
padding-top: 50px;
padding-bottom: 50px;
height: 600px;
}

.swiper.mySwiper1 .swiper-slide {
background-position: center;
background-size: cover;
width: 500px;
height: 500px;
}

.swiper.mySwiper1 .swiper-slide img {
display: block;
width: 100%;
}
6 changes: 3 additions & 3 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Layout from "../layouts/Layout.astro";
import Events from "@components/Events";
import Unete from "../components/Unete.astro";
import Soon from "../components/Soon.astro";
import Soon from "../components/Soon";
import "../components/cssInicio/variables.css";
import "../components/cssInicio/fondo.css";
import "../components/cssInicio/navInicio.css";
Expand All @@ -17,9 +17,9 @@ import Titulos from "../components/Titulos.astro";
<Titulos titulo="Evéntos" />
<Events client:load />
<Titulos titulo="Próximo" />
<Soon />
<Soon client:load />
<Titulos titulo="Únete" />
<Unete />
<Titulos titulo="FAQ" />
<Footer />
</Layout>
</Layout>

0 comments on commit 4a926e2

Please sign in to comment.