Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
texhnologies component added
Browse files Browse the repository at this point in the history
  • Loading branch information
Saksham-Chauhan committed Oct 14, 2022
1 parent a63159b commit ea99354
Show file tree
Hide file tree
Showing 14 changed files with 128 additions and 149 deletions.
12 changes: 6 additions & 6 deletions src/assets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const toolsAndtechLogo = [
{ src: tailwind, x: "left-[45%]", y: "top-[0]" },
{ src: chakra, x: "left-[45%]", y: "top-[0]" },
{ src: next, x: "left-[45%]", y: "top-[0]" },
{ src: express, x: "left-[45%]", y: "top-[0]" },
// { src: express, x: "left-[45%]", y: "top-[0]" },
{ src: react, x: "left-[45%]", y: "top-[0]" },
{ src: html, x: "left-[45%]", y: "top-[0]" },
{ src: css, x: "left-[45%]", y: "top-[0]" },
Expand All @@ -112,23 +112,23 @@ export const toolsAndtechLogo = [
{ src: keras, x: "left-[45%]", y: "top-[0]" },
{ src: flutter, x: "left-[45%]", y: "top-[0]" },
{ src: dart, x: "left-[45%]", y: "top-[0]" },
{ src: ios, x: "left-[45%]", y: "top-[0]" },
{ src: android, x: "left-[45%]", y: "top-[0]" },
// { src: ios, x: "left-[45%]", y: "top-[0]" },
// { src: android, x: "left-[45%]", y: "top-[0]" },
{ src: firebase, x: "left-[45%]", y: "top-[0]" },
{ src: go, x: "left-[45%]", y: "top-[0]" },
// { src: go, x: "left-[45%]", y: "top-[0]" },
{ src: rust, x: "left-[45%]", y: "top-[0]" },
{ src: ruby, x: "left-[45%]", y: "top-[0]" },
{ src: tensorflow, x: "left-[45%]", y: "top-[0]" },
{ src: pytorch, x: "left-[45%]", y: "top-[0]" },
{ src: docker, x: "left-[45%]", y: "top-[0]" },
{ src: rails, x: "left-[45%]", y: "top-[0]" },
// { src: rails, x: "left-[45%]", y: "top-[0]" },
{ src: portainer, x: "left-[45%]", y: "top-[0]" },
{ src: grafana, x: "left-[45%]", y: "top-[0]" },
{ src: teamCity, x: "left-[45%]", y: "top-[0]" },
{ src: redmine, x: "left-[45%]", y: "top-[0]" },
{ src: hasura, x: "left-[45%]", y: "top-[0]" },
{ src: cloud, x: "left-[45%]", y: "top-[0]" },
{ src: stripe, x: "left-[45%]", y: "top-[0]" },
// { src: stripe, x: "left-[45%]", y: "top-[0]" },
{ src: twilio, x: "left-[45%]", y: "top-[0]" },
];

Expand Down
14 changes: 11 additions & 3 deletions src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@ interface Props {
logo?: string;
hoverLogo?: string;
OnClick: () => void;
logoStyle?: string;
}
const Button = ({ className, text, logo, OnClick, hoverLogo }: Props) => {
const Button = ({
className,
text,
logo,
OnClick,
hoverLogo,
logoStyle,
}: Props) => {
const [iconStyle, setIconStyle] = useState("");
return (
<button
Expand All @@ -18,12 +26,12 @@ const Button = ({ className, text, logo, OnClick, hoverLogo }: Props) => {
>
{logo ? (
iconStyle && hoverLogo ? (
<img src={hoverLogo} className={`h-5 mr-2`} alt="icon" />
<img src={hoverLogo} className={`h-5 mr-2 ${logoStyle}`} alt="icon" />
) : (
<img
src={logo}
alt="icon"
className={`h-5 mr-2 hover:brightness-75 ${iconStyle}`}
className={`h-5 mr-2 hover:brightness-75 ${iconStyle} ${logoStyle}`}
/>
)
) : null}
Expand Down
78 changes: 30 additions & 48 deletions src/components/CombCell.tsx
Original file line number Diff line number Diff line change
@@ -1,62 +1,44 @@
import React, { useState } from "react";
import React from "react";

interface Props {
logo: string;
logo?: string;
x?: string;
y?: string;
className?: string;
}

const CombCell = ({ logo, x, y }: Props) => {
const [iconStyle, setIconStyle] = useState(false);
const CombCell = ({ logo, className, x, y }: Props) => {
const [iconStyle, setIconStyle] = React.useState("");
return (
<div className="relative bg-main-teal w-[3.5rem] h-[2rem]">
<div className="h-[2rem] w-[2rem] bg-main-teal rotate-[139deg] translate-x-[11px] translate-y-[-16px] skew-x-[19deg] skew-y-[10deg]"></div>
<div className="h-[2rem] w-[2rem] bg-main-teal rotate-[139deg] translate-x-[11px] translate-y-[-16px] skew-x-[19deg] skew-y-[10deg]"></div>
<div className="absolute left-[0.2rem] top-[0.12rem] bg-gray-500 w-[3.08rem] h-[1.7rem]">
<div className="h-[1.71rem] w-[1.71rem] bg-gray-500 rotate-[139deg] translate-x-[10px] translate-y-[-13px] skew-x-[19deg] skew-y-[10deg]"></div>
<div className="h-[1.71rem] w-[1.71rem] bg-gray-500 rotate-[139deg] translate-x-[10px] translate-y-[-12.9px] skew-x-[19deg] skew-y-[10deg]"></div>
<img
src={logo}
alt=""
className="w-full h-full left-0 top-0 absolute"
/>
<div
className={`absolute ${className}`}
style={{ top: `${x}px`, left: `${y}px` }}
>
<div
className="block my-0 mx-auto relative w-[90px] h-[80px] bg-main-teal box-border rotate-90"
style={{ ...hex }}
>
<div
className="absolute bg-main-secondary top-[4px] left-[4px] w-[82px] h-[72px] hover:bg-white flex justify-center items-center"
style={{ ...hexBg }}
onMouseEnter={() => setIconStyle("invert")}
onMouseLeave={() => setIconStyle("")}
>
<img src={logo} className={"-rotate-90 h-8" + " " + iconStyle} />
</div>
</div>
</div>
);
};

export default CombCell;

// <div
// // className="absolute left-[70%] top-[10%]"
// className={`absolute ${x} ${y}`}
// >
// <div className="relative h-[49px] w-[100px] bg-main-teal flex justify-center items-center">
// <div className="absolute bottom-[-123%] border-b-transparent border-r-transparent border-l-transparent border-t-[30px] border-b-[30px] border-r-[49.5px] border-l-[49.5px] border-t-main-teal"></div>
// <div className="absolute top-[-122%] border-t-transparent border-r-transparent border-l-transparent border-t-[30px] border-b-[30px] border-r-[49.5px] border-l-[49.5px] border-b-main-teal"></div>
// {/* Inner shape */}
// <div
// onMouseEnter={() => setIconStyle(true)}
// onMouseLeave={() => setIconStyle(false)}
// className={`h-[45px] w-[94px] relative z-10 flex items-center justify-center cursor-pointer ${
// iconStyle ? "bg-white" : "bg-main-secondary"
// }`}
// >
// <div
// className={`absolute bottom-[-116%] border-b-transparent border-r-transparent border-l-transparent border-t-[28px] border-b-[24px] border-r-[47px] border-l-[47px] ${
// iconStyle ? "border-t-white" : "border-t-main-secondary"
// }`}
// ></div>
// <div
// className={`absolute top-[-115%] left-[1px] border-t-transparent border-r-transparent border-l-transparent border-t-[24px] border-b-[28px] border-r-[46px] border-l-[46px]
// ${iconStyle ? "border-b-white" : "border-b-main-secondary "}
// `}
// ></div>
// <img
// src={logo}
// alt="tech"
// className={`z-10 h-10 ${iconStyle ? "invert" : ""}`}
// />
// </div>
// </div>
// </div>
const hex: any = {
WebkitClipPath: "polygon(0% 50%,25% 0%,75% 0%,100% 50%,75% 100%,25% 100%)",
};

const hexBg: any = {
WebkitClipPath: "polygon(0% 50%,25% 0%,75% 0%,100% 50%,75% 100%,25% 100%)",
};
// -moz-clip-path: polygon(0% 50%, 25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%);
// -moz-clip-path: "polygon(0% 50%, 25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%)",
7 changes: 6 additions & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ const Footer = () => {
<>
<div className="sm:flex justify-center pl-4 xsm:px-6 sm:px-20 py-10 bg-main-secondary">
<div className="w-full sm:w-1/4 sm:font-miligramMedium font-miligramLight">
<img src={logo} alt="logo" className="h-10" onClick={navToHome} />
<img
src={logo}
alt="logo"
className="h-10 cursor-pointer"
onClick={navToHome}
/>
<div className="flex items-center my-3">
{[linkedin, github, twitter, discord].map((item, i) => (
<img
Expand Down
8 changes: 4 additions & 4 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Navbar = () => {
navigate("/");
}
return (
<div className="z-50 flex w-full bg-main-black-700 px-8 justify-between align-middle md:px-10 text-white py-6 fixed top-0 backdrop-blur-md">
<div className="z-50 flex h-[10vh] w-full bg-main-black-700 px-8 justify-between items-center md:px-10 text-white py-6 fixed top-0 backdrop-blur-md">
<div className="w-fit">
<img
src={logo}
Expand Down Expand Up @@ -40,20 +40,20 @@ const Navbar = () => {
/>
</div>
)}
<div className="flex justify-end align-middle w-fit">
<div className="flex justify-end items-center w-fit">
<Button
OnClick={() => {}}
logo={discordSvg}
hoverLogo={discordWhite}
text="Join Discord"
className="hidden sm:flex font-miligramMedium mr-6 border-2 bg-main-blueOpt-200 border-main-blueOpt-1000 text-main-blueOpt-1000 px-5 rounded-lg hover:bg-main-blueOpt-1000 hover:text-white"
className="hidden sm:flex font-miligramMedium mr-6 border-2 bg-main-blueOpt-200 border-main-blueOpt-1000 text-main-blueOpt-1000 px-5 py-2 rounded-lg hover:bg-main-blueOpt-1000 hover:text-white"
/>
<Button
OnClick={() => {
navigate("start-project");
}}
text="Get Started"
className="font-miligramMedium bg-main-greenOpt-200 border-2 border-main-greenOpt-1000 text-main-greenOpt-1000 px-3 sm:px-10 rounded-lg hover:bg-main-greenOpt-1000 hover:text-white"
className="font-miligramMedium bg-main-greenOpt-200 border-2 border-main-greenOpt-1000 text-main-greenOpt-1000 px-3 py-2 sm:px-10 rounded-lg hover:bg-main-greenOpt-1000 hover:text-white"
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const MainCard = () => {
<div className="w-full lg:w-[60%] py-2">
<img src={blogMain} alt="blogMain" className="w-full h-full" />
</div>
<div className="w-full lg:w-[40%]">
<div className="w-full lg:w-[40%] mt-2 sm:mt-0">
<h1
className="text-white text-[20px] cursor-pointer font-miligrambold"
onClick={() => navigate(`${currentPath}/read-more`)}
Expand Down
4 changes: 2 additions & 2 deletions src/components/section-comonents/why-koders/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ const Info = ({
className="text-[10rem] text-center leading-[135px] bg-gradient-to-r from-white via-main-lightTeal to-main-teal font-battambangMedium"
text={stat}
/>
<p className="text-center text-white text-[15px] lg:text-[22px] my-1 font-battambangMedium">
<p className="text-center text-white text-[15px] lg:text-[22px] my-1 lg:mt-8 font-battambangMedium">
{title}
</p>
<div dangerouslySetInnerHTML={{ __html: html }}></div>
<div className="mt-2" dangerouslySetInnerHTML={{ __html: html }}></div>
</div>
);
};
Expand Down
6 changes: 6 additions & 0 deletions src/helper/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,9 @@ export const handleSlider = (
yDown = null;
}
};

export function getRandomInt(min: number, max: number) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min;
}
1 change: 1 addition & 0 deletions src/pages/ReadMoreBlog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const ReadMoreBlog = () => {
OnClick={() => {}}
logo={backAero}
text="Back"
logoStyle="h-3"
className="text-white"
/>
<Divider className="mt-6" />
Expand Down
4 changes: 2 additions & 2 deletions src/sections/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ const Hero = () => {
alt=""
className="absolute -bottom-10 right-0 h-96"
/>
<h1 className="leading-[38px] sm:leading-[30px] text-[1.5rem] xsm:text-[2.5rem] sm:text-[4rem] text-white text-center m-0 p-0 font-medium font-miligrambold">
<h1 className="leading-[38px] sm:leading-[60px] text-[1.5rem] xsm:text-[2.5rem] sm:text-[4rem] text-white text-center m-0 p-0 font-medium font-miligrambold">
Infrastructure for
</h1>
<GradientText
className="leading-[28px] xsm:leading-[38px] sm:leading-[70px] sm:mt-3 w-[95%] mx-auto text-[1.5rem] xsm:text-[2.5rem] sm:text-[4rem] text-center bg-gradient-to-r from-white via-main-lightTeal to-main-teal font-miligrambold"
className="leading-[28px] w-fit xsm:leading-[38px] sm:leading-[70px] sm:mt-3 mx-auto text-[1.5rem] xsm:text-[2.5rem] sm:text-[4rem] text-center bg-gradient-to-r from-white via-main-lightTeal to-main-teal font-miligrambold"
text="High Quality Applications"
/>
<p className="w-[90%] sm:w-fit mx-auto text-center text-[0.8rem] sm:text-[1.5rem] text-main-light_white pt-6 pb-28 font-miligramLight">
Expand Down
5 changes: 3 additions & 2 deletions src/sections/Pricing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const Pricing = () => {
</span>
</div>
<Divider className="h-16" />
<div className="hidden md:flex gap-3 lg:gap-8 w-[96%] lg:w-[90%] mx-auto">
<div className="hidden justify-center items-center md:flex gap-3 lg:gap-8 w-[96%] lg:w-[90%] mx-auto">
{pricingCardData.map((item, i) => (
<PricingCard key={i} {...item} />
))}
Expand Down Expand Up @@ -110,9 +110,10 @@ const Pricing = () => {
/>
))}
<div className="flex justify-center items-center absolute bottom-0 gap-2">
{translatePosition.map((item) => {
{translatePosition.map((item, i) => {
return (
<div
key={i}
className={`rounded-full w-2 h-2 ${
item === 0 ? "bg-white" : "bg-main-light_white"
}`}
Expand Down
Loading

0 comments on commit ea99354

Please sign in to comment.