Skip to content

Commit

Permalink
changed the size of Tshirt icon
Browse files Browse the repository at this point in the history
  • Loading branch information
SaiSrinivas321 committed Feb 8, 2022
1 parent 87de473 commit 1fca5f9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
8 changes: 4 additions & 4 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, Button, Tooltip } from "@chakra-ui/react";
import { Text, VStack, Code, useColorModeValue, Flex, Button, Tooltip, Icon } 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 Down Expand Up @@ -393,16 +393,16 @@ 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"}
<Tooltip label="Get a Chance to win free TShirt">
<Button padding="3vw" marginLeft="3vw" backgroundColor={"transparent"}
onHover={() => {

}}
onClick={(e) => {
e.preventDefault();
history.push('/events/workshops')
}}
><FaTshirt size="3vw"></FaTshirt></Button>
><Icon as={FaTshirt} className="rainbow" boxSize={["9vw","9vw","5vw","5vw"]}/></Button>
</Tooltip>
</div>
<div className="imgBox">
Expand Down
21 changes: 21 additions & 0 deletions src/styles/Home.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,27 @@
scroll-snap-align: start;
padding-left: 150px;
}
.rainbow {
animation: colorRotate 2s linear 0s infinite;
}

@keyframes colorRotate {
from {
color: #6666ff;
}
10% {
color: #0099ff;
}
50% {
color: #00ff00;
}
75% {
color: #ff3399;
}
100% {
color: #6666ff;
}
}
@media screen and (max-width: 900px) {
.Home section {
padding-left: 100px;
Expand Down

0 comments on commit 1fca5f9

Please sign in to comment.