Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

work #63

Merged
merged 5 commits into from
Feb 5, 2025
Merged

work #63

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ const Button = ({
link,
borderColor = "grey", //defaults to "grey" border class if no colors provided
bgColor = "grey", //defaults to "grey" bg class if no colors provided
smVariant = "small",
lgVariant = "large",
mdVariant = "medium",
size = "", //defaults to empty string if no size is provided
textSize = "text-xl lg:text-3xl",
}: {
Expand All @@ -15,6 +18,9 @@ const Button = ({
link: string;
borderColor?: "red" | "blue" | "grey";
bgColor?: "red" | "blue" | "grey";
smVariant?: "small";
lgVariant?: "large";
mdVariant?: "medium";
size?: string;
textSize?: string;
}) => {
Expand All @@ -30,15 +36,30 @@ const Button = ({
blue: "border-tkd-blue-300 hover:border-opacity-90",
};

const screenSmVariant = {
small: "sm:border-1 sm:px-1/6 sm:py-1/12 sm:text-xs ",
};

const screenLgVariant = {
large: "lg:px-7 lg:py-7 lg:text-3xl",
};

const screenMdVariant = {
medium: "md:px-5 md:py-5 md:text-2xl md:border-3",
};

//fall back to default colors if no provided colors
const bgClass = bgVariant[bgColor];
const borderClass = borderVariant[borderColor];
const smClass = screenSmVariant[smVariant];
const lgClass = screenLgVariant[lgVariant];
const mdClass = screenMdVariant[mdVariant];

return (
<Link
href={link}
target={target}
className={`box-border flex items-center justify-center border-4 border-solid px-7 py-7 font-inika font-medium ${textSize} ${bgClass} ${borderClass} ${size}`}
className={`box-border flex items-center justify-center border-4 border-solid font-inika text-xl font-medium lg:text-3xl ${bgClass} ${borderClass} ${smClass} ${lgClass} ${mdClass} ${textSize} ${size} `}
>
<div className="relative inline-block whitespace-nowrap">
<span className="flex justify-center text-white opacity-100">
Expand Down
17 changes: 13 additions & 4 deletions src/components/home/SparringGear.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,36 @@ const SparringGear = () => {
alt="sparringGearPhoto"
className="w-screen brightness-50"
/>
<div className="absolute inset-0 flex flex-col items-center justify-center space-y-5 lg:space-y-20">
<div>Need Sparring Gear</div>
<div className="absolute inset-0 flex flex-col items-center justify-center space-y-1 lg:space-y-20">
<div className="text-xl md:text-3xl lg:text-6xl">
Need Sparring Gear
</div>
<div className="">
<Button
txt="Need Sparring Gear"
link=""
bgColor="red"
borderColor="red"
target="_blank"
smVariant="small"
lgVariant="large"
/>
</div>
<br></br>
<div className="absolute -bottom-[-5%] right-5 flex w-1/2 flex-col items-end space-y-4 md:text-2xl lg:right-20 lg:text-4xl">
<div className="mx-10">Want a Jacket?</div>
<br></br>
<div className="absolute -bottom-[-5%] right-5 flex w-1/2 flex-col items-end sm:space-y-2 md:text-2xl lg:right-20 lg:space-y-4 lg:text-4xl">
<div className="sm:mx-5 sm:text-xl md:mx-0 md:text-3xl lg:-mx-8 lg:text-5xl">
Want a Jacket?
</div>
<div>
<Button
txt="Purchase Jacket"
link=""
bgColor="red"
borderColor="red"
target="_blank"
smVariant="small"
lgVariant="large"
/>
</div>
</div>
Expand Down
Loading