Skip to content

Commit

Permalink
Update home.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush-0110 authored Jun 26, 2023
1 parent 74daec8 commit fa482bd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions client/src/components/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { React, useState, useEffect, useCallback } from "react";
import data from "./data";
import axios from "axios";
import { Navigation, Pagination, Scrollbar, A11y } from "swiper";
import { EffectFlip } from "swiper";
import { EffectCards } from "swiper";
import icon from "../images/heart.svg";
import iconfill from "../images/heart-fill.svg";
import image from "../images/user.svg";
import { Swiper, SwiperSlide } from "swiper/react";
//swiper stylesheets
import "swiper/css";
import "swiper/css/effect-flip";
import "swiper/css/effect-cards";
import "swiper/css/navigation";
import "swiper/css/pagination";

Expand Down Expand Up @@ -67,8 +67,8 @@ function Home({ username, email, phone }) {
>
<div style={{ width: "20%" }}>
<Swiper
modules={[Navigation, Pagination, Scrollbar, A11y, EffectFlip]}
effect={"flip"}
modules={[Navigation, Pagination, Scrollbar, A11y, EffectCards]}
effect={"cards"}
// navigation={true}
pagination={{ clickable: true }}
>
Expand All @@ -82,6 +82,7 @@ function Home({ username, email, phone }) {
display: "flex",
flexDirection: "column",
alignItems: "center",
backgroundColor:'white'
}}
>
<div
Expand Down

0 comments on commit fa482bd

Please sign in to comment.