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

Feat/new issuer page #670

Closed
wants to merge 2 commits into from
Closed
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
15 changes: 7 additions & 8 deletions explorer/src/pages/Issuer/components/Banner/index.tsx
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
import { ArrowUpRight } from "lucide-react";

import issuerBG from "@/assets/backgrounds/issuer-bg.jpeg";
import { Button } from "@/components/Buttons";
import { EButtonType } from "@/components/Buttons/enum";

import { IBannerProps } from "./interface";

export const Banner: React.FC<IBannerProps> = ({ name, CTALink, CTATitle, logo }) => {
const IssuerLogo = logo;

return (
<div className="bg-gray-900 bg-opacity-50 h-[24.125rem] p-4 md:h-[20.4375rem] md:p-8 rounded-[1.375rem] md:rounded-[2.25rem] flex flex-col lg:flex-row justify-end lg:justify-between items-start lg:items-end relative overflow-hidden">
<img src={issuerBG} alt="issuer background" className="absolute -z-[1] top-0 left-0 h-full w-full object-cover" />
<div className="mb-6 lg:mb-0 md:flex md:items-center md:gap-6">
<IssuerLogo className="mb-4 md:mb-0 w-[2.875rem] md:w-16 h-auto" />
<div className="text-[2rem] font-medium md:text-[2.5rem] lg:text-[2.75rem] md:font-semibold text-whiteDefault">
{name}
<div className="flex flex-col lg:flex-row justify-end lg:justify-between items-start lg:items-end relative overflow-hidden">
<div className="flex flex-row items-center gap-[20px]">
<div className="w-[87px] h-[87px] relative">
<div className="absolute w-[87px] h-[87px] bg-[#D9D9D9]"></div>
<IssuerLogo className="absolute w-[25px] h-[15px] left-[31px] top-[36px] font-normal text-[12px] leading-[15px] text-black" />
</div>
<div className="text-[32px] font-normal leading-[39px] text-white">{name}</div>
</div>
{CTALink && (
<Button
name={CTATitle}
handler={() => window.open(CTALink, "_blank")}
buttonType={EButtonType.PRIMARY_WHITE}
iconRight={<ArrowUpRight />}
className="mb-5"
/>
)}
</div>
Expand Down
Loading