react-icons/hi#HiCheckCircle JavaScript Examples

The following examples show how to use react-icons/hi#HiCheckCircle. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.jsx    From minihackathon-2022 with MIT License 5 votes vote down vote up
TimelineComponent = (props) => (
	<VerticalTimelineElement
		className="vertical-timeline-element--work border-none"
		contentStyle={{ color: "#000000" }}
		iconClassName="bg-black text-white mt-3 md:mt-4"
		icon={<HiCheckCircle />}
	>
		<div className="text-xl font-semibold text-black lg:text-4xl md:text-3xl">
			{props.data && props.data.title}
		</div>
		<div className="text-gray-500 font-semibold text-md lg:text-2xl md:text-2xl">
			{props.data && props.data.dateTime}
		</div>
		<div className="text-sm lg:text-xl md:text-lg">
			{props.data && props.data.description}
		</div>
		<div className="mt-5">
			{props.data.id === 1 && (
				<a
					href="/awareness-session/register"
					target="_blank"
					rel="noopener noreferrer"
					className="bg-white text-black border border-black hover:bg-gray-100 rounded lg:text-lg pl-4 pr-4 pt-1 pb-1 transition duration-0 hover:duration-500"
				>
					? Book your tickets now
				</a>
			)}
			{props.data.id === 3 && (
				<a
					href="/team/register"
					target="_blank"
					rel="noopener noreferrer"
					className="bg-white text-black border border-black hover:bg-gray-100 rounded lg:text-lg pl-4 pr-4 pt-1 pb-1 transition duration-0 hover:duration-500"
				>
					✍? Register your team
				</a>
			)}
		</div>
	</VerticalTimelineElement>
)
Example #2
Source File: PersonCard.js    From react-portal with MIT License 4 votes vote down vote up
PersonCard = ({
	member,
	selectedMembers,
	handleSelect,
	selectedHeads
}) => {
	const { Meta } = Card;

	return (
		<>
			<Card
				onClick={() => handleSelect && handleSelect(member._id)}
				hoverable
				bordered={false}
				style={{
					display: "flex",
					justifyContent: "center",
					textAlign: "center",
					backgroundColor: `${
						member.role === "lead"
							? "rgb(219,68,55,.1)"
							: member.role === "core"
							? "	rgb(66, 133, 244,.1)"
							: "rgb(244,180,0,.1)"
					}`,
					height: "100%"
				}}
			>
				<div
					style={{
						backgroundColor: `${
							member.role === "lead"
								? "#DB4437"
								: member.role === "core"
								? "#4285F4"
								: "#F4B400"
						}`,
						position: "absolute",
						height: "38%",
						top: 0,
						left: 0,
						width: "100%"
					}}
				/>

				<div
					className={
						selectedHeads && selectedHeads.includes(member._id)
							? "selected head"
							: selectedMembers &&
							  selectedMembers.includes(member._id)
							? "selected member"
							: "onHover"
					}
				>
					<div>
						{(selectedMembers &&
							selectedMembers.includes(member._id)) ||
						(selectedMembers &&
							selectedHeads.includes(member._id)) ? (
							<HiBadgeCheck
								style={{
									height: "80px",
									width: "80px"
								}}
							/>
						) : (
							<HiCheckCircle
								style={{
									height: "80px",
									width: "80px"
								}}
							/>
						)}
					</div>
					<h2>
						{(selectedMembers &&
							selectedHeads.includes(member._id)) ||
						(selectedMembers &&
							selectedMembers.includes(member._id))
							? "Selected !"
							: "Select"}
					</h2>
				</div>

				<Image src={member.image} alt="" />
				<Meta
					style={{
						paddingTop: "20px",
						paddingBottom: "10px"
					}}
					title={member.name}
					description={member.designation}
				/>
			</Card>
		</>
	);
}