Skip to content

Commit

Permalink
tshirt icon in homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
krithikaa22 committed Feb 7, 2022
1 parent 60aab2c commit 87de473
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintcache

Large diffs are not rendered by default.

18 changes: 15 additions & 3 deletions src/components/pages/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Text, VStack, Code, useColorModeValue, Flex } from "@chakra-ui/react";
import { Text, VStack, Code, useColorModeValue, Flex, Button, Tooltip } from "@chakra-ui/react";
import { ReactComponent as DiceOutlineDarkAnimated } from "./../../images/logo/animated/non-looped/Text_Outline_Dark_animated.svg";
import { ReactComponent as DiceOutlineLightAnimated } from "./../../images/logo/animated/non-looped/Text_Outline_Light_animated.svg";
import "../../styles/Home.css";
Expand All @@ -9,6 +9,7 @@ import {
FaInstagram,
FaYoutubeSquare,
FaYoutube,
FaTshirt
} from "react-icons/fa";
import SwiperCore, { Navigation, Pagination } from "swiper";
import { Swiper, SwiperSlide } from "swiper/react";
Expand All @@ -17,7 +18,7 @@ import "swiper/components/navigation/navigation.min.css";
import "swiper/components/pagination/pagination.min.css";
import "swiper/swiper-bundle";
import "swiper/swiper-bundle.esm.browser";
import { Link,withRouter } from "react-router-dom";
import { Link,useHistory,withRouter } from "react-router-dom";
import prevArrow from "../../images/prevArrow.svg";
import robos1 from "../../images/homepage_illustrations/ROBOS.png";
import robo1 from "../../images/homepage_illustrations/big.png";
Expand Down Expand Up @@ -77,7 +78,7 @@ const Home = (props: Props) => {
DiceOutlineDarkAnimated,
DiceOutlineLightAnimated
);

const history = useHistory()
React.useEffect(()=>{
ReactGA.pageview(window.location.pathname + window.location.search);

Expand Down Expand Up @@ -392,6 +393,17 @@ const Home = (props: Props) => {
for 
</h3> */}
<a href="https://shaastra2022.com">Live Now</a>
<Tooltip label="Workshop Offer">
<Button padding="2vw" marginLeft="3vw" backgroundColor={"transparent"}
onHover={() => {

}}
onClick={(e) => {
e.preventDefault();
history.push('/events/workshops')
}}
><FaTshirt size="3vw"></FaTshirt></Button>
</Tooltip>
</div>
<div className="imgBox">
<img src={robos1} alt="" />
Expand Down

0 comments on commit 87de473

Please sign in to comment.