-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
512 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { classNames } from "../../utils/index"; | ||
import flash from "/static/assets/icons/flash.svg"; | ||
type Props = React.ButtonHTMLAttributes<HTMLButtonElement> & { | ||
prefix: string; | ||
suffix?: string; | ||
subtitle?: string; | ||
used?: boolean; | ||
image?: string; | ||
}; | ||
|
||
export default function FlashList({ | ||
prefix, | ||
suffix, | ||
subtitle, | ||
used = false, | ||
image = flash, | ||
}: Props) { | ||
return ( | ||
<div> | ||
<div | ||
className={classNames( | ||
used | ||
? "flex space-x-2 font-serif font-medium text-xl" | ||
: `flex space-x-2 font-serif font-medium text-lg text-[#3F3F3F] my-5` | ||
)} | ||
> | ||
<span>{prefix}</span> | ||
<img src={image} className="w-6 h" /> | ||
<span>{suffix}</span> | ||
</div> | ||
<div className="my-1"> | ||
<span className="font-serif text-base font-normal text-light-gray-bitcoin2"> | ||
{subtitle} | ||
</span> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { Link } from "react-router-dom"; | ||
import { classNames } from "../../utils/index"; | ||
|
||
type Props = React.ButtonHTMLAttributes<HTMLButtonElement> & { | ||
title: string; | ||
logo: string; | ||
subtitle: string; | ||
to: string; | ||
shadow?: boolean; | ||
}; | ||
export default function OtherCard({ | ||
title, | ||
subtitle, | ||
logo, | ||
to, | ||
shadow = false, | ||
}: Props) { | ||
return ( | ||
<a href={to} target="_blank" rel="noreferrer"> | ||
<div className="bg-white shadow-md flex space-x-3 h-44 px-4 rounded-lg pt-7 hover:bg-gray-50 cursor-pointer w-full "> | ||
<img | ||
src={logo} | ||
alt="image" | ||
className={classNames( | ||
shadow | ||
? "h-14 w-14 rounded-xl shadow-md py-3 px-3" | ||
: `h-14 w-14 rounded-xl` | ||
)} | ||
/> | ||
<div> | ||
<h2 className="font-medium font-serif text-base">{title}</h2> | ||
<p className="font-serif text-sm font-normal text-light-gray-bitcoin2"> | ||
{subtitle} | ||
</p> | ||
</div> | ||
</div> | ||
</a> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
type Props = React.ButtonHTMLAttributes<HTMLButtonElement> & { | ||
logo: string; | ||
title: string; | ||
url: string; | ||
payment: string; | ||
}; | ||
|
||
export default function UsedCard({ logo, title, url, payment }: Props) { | ||
return ( | ||
<div className="bg-white shadow-lg w-full rounded-lg h-28 hover:bg-gray-50 my-3 cursor-pointer"> | ||
<div className="flex px-5 justify-between py-6"> | ||
<div className="flex items-center space-x-2"> | ||
<img src={logo} alt="image" className="w-16 rounded-full" /> | ||
<div> | ||
<h4 className="text-lg text-black font-serif">{title}</h4> | ||
<p className="text-base font-serif text-light-gray-bitcoin2 m-0 p-0"> | ||
{" "} | ||
{url} <span>{payment} payment</span> | ||
</p> | ||
</div> | ||
</div> | ||
<div className=" flex items-center"> | ||
<img src="assets/icons/arrow-right.svg" alt="image" className="w-2" /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.